001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class AssetTagPropertyServiceUtil {
035
040 public static com.liferay.portlet.asset.model.AssetTagProperty addTagProperty(
041 long tagId, java.lang.String key, java.lang.String value)
042 throws com.liferay.portal.kernel.exception.PortalException,
043 com.liferay.portal.kernel.exception.SystemException {
044 return getService().addTagProperty(tagId, key, value);
045 }
046
047 public static void deleteTagProperty(long tagPropertyId)
048 throws com.liferay.portal.kernel.exception.PortalException,
049 com.liferay.portal.kernel.exception.SystemException {
050 getService().deleteTagProperty(tagPropertyId);
051 }
052
053 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties(
054 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
055 return getService().getTagProperties(tagId);
056 }
057
058 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues(
059 long companyId, java.lang.String key)
060 throws com.liferay.portal.kernel.exception.SystemException {
061 return getService().getTagPropertyValues(companyId, key);
062 }
063
064 public static com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty(
065 long tagPropertyId, java.lang.String key, java.lang.String value)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService().updateTagProperty(tagPropertyId, key, value);
069 }
070
071 public static AssetTagPropertyService getService() {
072 if (_service == null) {
073 _service = (AssetTagPropertyService)PortalBeanLocatorUtil.locate(AssetTagPropertyService.class.getName());
074
075 ReferenceRegistry.registerReference(AssetTagPropertyServiceUtil.class,
076 "_service");
077 MethodCache.remove(AssetTagPropertyService.class);
078 }
079
080 return _service;
081 }
082
083 public void setService(AssetTagPropertyService service) {
084 MethodCache.remove(AssetTagPropertyService.class);
085
086 _service = service;
087
088 ReferenceRegistry.registerReference(AssetTagPropertyServiceUtil.class,
089 "_service");
090 MethodCache.remove(AssetTagPropertyService.class);
091 }
092
093 private static AssetTagPropertyService _service;
094 }