1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class TagsPropertyServiceUtil {
42 public static com.liferay.portlet.tags.model.TagsProperty addProperty(
43 long entryId, java.lang.String key, java.lang.String value)
44 throws com.liferay.portal.PortalException,
45 com.liferay.portal.SystemException {
46 return getService().addProperty(entryId, key, value);
47 }
48
49 public static void deleteProperty(long propertyId)
50 throws com.liferay.portal.PortalException,
51 com.liferay.portal.SystemException {
52 getService().deleteProperty(propertyId);
53 }
54
55 public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getProperties(
56 long entryId) throws com.liferay.portal.SystemException {
57 return getService().getProperties(entryId);
58 }
59
60 public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getPropertyValues(
61 long companyId, java.lang.String key)
62 throws com.liferay.portal.SystemException {
63 return getService().getPropertyValues(companyId, key);
64 }
65
66 public static com.liferay.portlet.tags.model.TagsProperty updateProperty(
67 long propertyId, java.lang.String key, java.lang.String value)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException {
70 return getService().updateProperty(propertyId, key, value);
71 }
72
73 public static TagsPropertyService getService() {
74 if (_service == null) {
75 _service = (TagsPropertyService)PortalBeanLocatorUtil.locate(TagsPropertyService.class.getName());
76
77 ReferenceRegistry.registerReference(TagsPropertyServiceUtil.class,
78 "_service");
79 MethodCache.remove(TagsPropertyService.class);
80 }
81
82 return _service;
83 }
84
85 public void setService(TagsPropertyService service) {
86 MethodCache.remove(TagsPropertyService.class);
87
88 _service = service;
89
90 ReferenceRegistry.registerReference(TagsPropertyServiceUtil.class,
91 "_service");
92 MethodCache.remove(TagsPropertyService.class);
93 }
94
95 private static TagsPropertyService _service;
96 }