1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class TagsEntryServiceUtil {
40 public static com.liferay.portlet.tags.model.TagsEntry addEntry(
41 java.lang.String parentEntryName, java.lang.String name,
42 java.lang.String vocabularyName, java.lang.String[] properties,
43 com.liferay.portal.service.ServiceContext serviceContext)
44 throws com.liferay.portal.PortalException,
45 com.liferay.portal.SystemException {
46 return getService()
47 .addEntry(parentEntryName, name, vocabularyName, properties,
48 serviceContext);
49 }
50
51 public static void deleteEntry(long entryId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteEntry(entryId);
55 }
56
57 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
58 long groupId, long classNameId, java.lang.String name)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 return getService().getEntries(groupId, classNameId, name);
62 }
63
64 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
65 java.lang.String className, long classPK)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException {
68 return getService().getEntries(className, classPK);
69 }
70
71 public static com.liferay.portlet.tags.model.TagsEntry getEntry(
72 long entryId)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException {
75 return getService().getEntry(entryId);
76 }
77
78 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
79 long groupId, java.lang.String vocabularyName)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return getService().getGroupVocabularyEntries(groupId, vocabularyName);
83 }
84
85 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
86 long groupId, java.lang.String parentEntryName,
87 java.lang.String vocabularyName)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException {
90 return getService()
91 .getGroupVocabularyEntries(groupId, parentEntryName,
92 vocabularyName);
93 }
94
95 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
96 long groupId, java.lang.String vocabularyName)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService()
100 .getGroupVocabularyRootEntries(groupId, vocabularyName);
101 }
102
103 public static void mergeEntries(long fromEntryId, long toEntryId)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 getService().mergeEntries(fromEntryId, toEntryId);
107 }
108
109 public static com.liferay.portal.kernel.json.JSONArray search(
110 long groupId, java.lang.String name, java.lang.String[] properties,
111 int start, int end) throws com.liferay.portal.SystemException {
112 return getService().search(groupId, name, properties, start, end);
113 }
114
115 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
116 long entryId, java.lang.String parentEntryName, java.lang.String name,
117 java.lang.String vocabularyName, java.lang.String[] properties)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException {
120 return getService()
121 .updateEntry(entryId, parentEntryName, name, vocabularyName,
122 properties);
123 }
124
125 public static TagsEntryService getService() {
126 if (_service == null) {
127 _service = (TagsEntryService)PortalBeanLocatorUtil.locate(TagsEntryService.class.getName());
128 }
129
130 return _service;
131 }
132
133 public void setService(TagsEntryService service) {
134 _service = service;
135 }
136
137 private static TagsEntryService _service;
138 }