001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AssetCategoryPropertyServiceUtil {
033 public static com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
034 long entryId, java.lang.String key, java.lang.String value)
035 throws com.liferay.portal.kernel.exception.PortalException,
036 com.liferay.portal.kernel.exception.SystemException {
037 return getService().addCategoryProperty(entryId, key, value);
038 }
039
040 public static void deleteCategoryProperty(long categoryPropertyId)
041 throws com.liferay.portal.kernel.exception.PortalException,
042 com.liferay.portal.kernel.exception.SystemException {
043 getService().deleteCategoryProperty(categoryPropertyId);
044 }
045
046 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
047 long entryId)
048 throws com.liferay.portal.kernel.exception.SystemException {
049 return getService().getCategoryProperties(entryId);
050 }
051
052 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
053 long companyId, java.lang.String key)
054 throws com.liferay.portal.kernel.exception.SystemException {
055 return getService().getCategoryPropertyValues(companyId, key);
056 }
057
058 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
059 long categoryPropertyId, java.lang.String key, java.lang.String value)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 return getService()
063 .updateCategoryProperty(categoryPropertyId, key, value);
064 }
065
066 public static AssetCategoryPropertyService getService() {
067 if (_service == null) {
068 _service = (AssetCategoryPropertyService)PortalBeanLocatorUtil.locate(AssetCategoryPropertyService.class.getName());
069 }
070
071 return _service;
072 }
073
074 public void setService(AssetCategoryPropertyService service) {
075 _service = service;
076 }
077
078 private static AssetCategoryPropertyService _service;
079 }