1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class TagsVocabularyLocalServiceUtil {
40 public static com.liferay.portlet.tags.model.TagsVocabulary addTagsVocabulary(
41 com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
42 throws com.liferay.portal.SystemException {
43 return getService().addTagsVocabulary(tagsVocabulary);
44 }
45
46 public static com.liferay.portlet.tags.model.TagsVocabulary createTagsVocabulary(
47 long vocabularyId) {
48 return getService().createTagsVocabulary(vocabularyId);
49 }
50
51 public static void deleteTagsVocabulary(long vocabularyId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteTagsVocabulary(vocabularyId);
55 }
56
57 public static void deleteTagsVocabulary(
58 com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
59 throws com.liferay.portal.SystemException {
60 getService().deleteTagsVocabulary(tagsVocabulary);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.tags.model.TagsVocabulary getTagsVocabulary(
91 long vocabularyId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getTagsVocabulary(vocabularyId);
95 }
96
97 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> getTagsVocabularies(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getTagsVocabularies(start, end);
100 }
101
102 public static int getTagsVocabulariesCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getTagsVocabulariesCount();
105 }
106
107 public static com.liferay.portlet.tags.model.TagsVocabulary updateTagsVocabulary(
108 com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
109 throws com.liferay.portal.SystemException {
110 return getService().updateTagsVocabulary(tagsVocabulary);
111 }
112
113 public static com.liferay.portlet.tags.model.TagsVocabulary updateTagsVocabulary(
114 com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
115 boolean merge) throws com.liferay.portal.SystemException {
116 return getService().updateTagsVocabulary(tagsVocabulary, merge);
117 }
118
119 public static com.liferay.portlet.tags.model.TagsVocabulary addVocabulary(
120 long userId, java.lang.String name, boolean folksonomy,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 return getService()
125 .addVocabulary(userId, name, folksonomy, serviceContext);
126 }
127
128 public static void addVocabularyResources(
129 com.liferay.portlet.tags.model.TagsVocabulary vocabulary,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException {
133 getService()
134 .addVocabularyResources(vocabulary, addCommunityPermissions,
135 addGuestPermissions);
136 }
137
138 public static void addVocabularyResources(
139 com.liferay.portlet.tags.model.TagsVocabulary vocabulary,
140 java.lang.String[] communityPermissions,
141 java.lang.String[] guestPermissions)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException {
144 getService()
145 .addVocabularyResources(vocabulary, communityPermissions,
146 guestPermissions);
147 }
148
149 public static void deleteVocabulary(long vocabularyId)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException {
152 getService().deleteVocabulary(vocabularyId);
153 }
154
155 public static void deleteVocabulary(
156 com.liferay.portlet.tags.model.TagsVocabulary vocabulary)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 getService().deleteVocabulary(vocabulary);
160 }
161
162 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> getCompanyVocabularies(
163 long companyId, boolean folksonomy)
164 throws com.liferay.portal.SystemException {
165 return getService().getCompanyVocabularies(companyId, folksonomy);
166 }
167
168 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> getGroupVocabularies(
169 long groupId, boolean folksonomy)
170 throws com.liferay.portal.SystemException {
171 return getService().getGroupVocabularies(groupId, folksonomy);
172 }
173
174 public static com.liferay.portlet.tags.model.TagsVocabulary getGroupVocabulary(
175 long groupId, java.lang.String name)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException {
178 return getService().getGroupVocabulary(groupId, name);
179 }
180
181 public static com.liferay.portlet.tags.model.TagsVocabulary getVocabulary(
182 long vocabularyId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 return getService().getVocabulary(vocabularyId);
186 }
187
188 public static com.liferay.portlet.tags.model.TagsVocabulary updateVocabulary(
189 long vocabularyId, java.lang.String name, boolean folksonomy)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 return getService().updateVocabulary(vocabularyId, name, folksonomy);
193 }
194
195 public static TagsVocabularyLocalService getService() {
196 if (_service == null) {
197 _service = (TagsVocabularyLocalService)PortalBeanLocatorUtil.locate(TagsVocabularyLocalService.class.getName());
198 }
199
200 return _service;
201 }
202
203 public void setService(TagsVocabularyLocalService service) {
204 _service = service;
205 }
206
207 private static TagsVocabularyLocalService _service;
208 }