001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class AssetVocabularyServiceUtil {
038
043 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
044 java.lang.String title,
045 com.liferay.portal.service.ServiceContext serviceContext)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService().addVocabulary(title, serviceContext);
048 }
049
050 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
051 java.lang.String title,
052 java.util.Map<java.util.Locale, java.lang.String> titleMap,
053 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
054 java.lang.String settings,
055 com.liferay.portal.service.ServiceContext serviceContext)
056 throws com.liferay.portal.kernel.exception.PortalException {
057 return getService()
058 .addVocabulary(title, titleMap, descriptionMap, settings,
059 serviceContext);
060 }
061
062
066 @Deprecated
067 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
068 java.util.Map<java.util.Locale, java.lang.String> titleMap,
069 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
070 java.lang.String settings,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws com.liferay.portal.kernel.exception.PortalException {
073 return getService()
074 .addVocabulary(titleMap, descriptionMap, settings,
075 serviceContext);
076 }
077
078
082 @Deprecated
083 public static void deleteVocabularies(long[] vocabularyIds)
084 throws com.liferay.portal.kernel.exception.PortalException {
085 getService().deleteVocabularies(vocabularyIds);
086 }
087
088 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
089 long[] vocabularyIds,
090 com.liferay.portal.service.ServiceContext serviceContext)
091 throws com.liferay.portal.kernel.exception.PortalException {
092 return getService().deleteVocabularies(vocabularyIds, serviceContext);
093 }
094
095 public static void deleteVocabulary(long vocabularyId)
096 throws com.liferay.portal.kernel.exception.PortalException {
097 getService().deleteVocabulary(vocabularyId);
098 }
099
100 public static com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
101 long vocabularyId)
102 throws com.liferay.portal.kernel.exception.PortalException {
103 return getService().fetchVocabulary(vocabularyId);
104 }
105
106
111 public static java.lang.String getBeanIdentifier() {
112 return getService().getBeanIdentifier();
113 }
114
115
118 @Deprecated
119 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
120 long companyId)
121 throws com.liferay.portal.kernel.exception.PortalException {
122 return getService().getCompanyVocabularies(companyId);
123 }
124
125 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
126 long groupId)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 return getService().getGroupVocabularies(groupId);
129 }
130
131 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
132 long groupId, boolean createDefaultVocabulary)
133 throws com.liferay.portal.kernel.exception.PortalException {
134 return getService()
135 .getGroupVocabularies(groupId, createDefaultVocabulary);
136 }
137
138 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
139 long groupId, boolean createDefaultVocabulary, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
141 throws com.liferay.portal.kernel.exception.PortalException {
142 return getService()
143 .getGroupVocabularies(groupId, createDefaultVocabulary,
144 start, end, obc);
145 }
146
147 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
148 long groupId, java.lang.String name, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
150 return getService().getGroupVocabularies(groupId, name, start, end, obc);
151 }
152
153 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
154 long groupId, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
156 return getService().getGroupVocabularies(groupId, start, end, obc);
157 }
158
159 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
160 long[] groupIds) {
161 return getService().getGroupVocabularies(groupIds);
162 }
163
164 public static int getGroupVocabulariesCount(long groupId) {
165 return getService().getGroupVocabulariesCount(groupId);
166 }
167
168 public static int getGroupVocabulariesCount(long groupId,
169 java.lang.String name) {
170 return getService().getGroupVocabulariesCount(groupId, name);
171 }
172
173 public static int getGroupVocabulariesCount(long[] groupIds) {
174 return getService().getGroupVocabulariesCount(groupIds);
175 }
176
177 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
178 long groupId, java.lang.String name, int start, int end,
179 boolean addDefaultVocabulary,
180 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
181 throws com.liferay.portal.kernel.exception.PortalException {
182 return getService()
183 .getGroupVocabulariesDisplay(groupId, name, start, end,
184 addDefaultVocabulary, obc);
185 }
186
187 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
188 long groupId, java.lang.String name, int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
190 throws com.liferay.portal.kernel.exception.PortalException {
191 return getService()
192 .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
193 }
194
195 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
196 long[] groupIds) {
197 return getService().getGroupsVocabularies(groupIds);
198 }
199
200 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
201 long[] groupIds, java.lang.String className) {
202 return getService().getGroupsVocabularies(groupIds, className);
203 }
204
205 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
206 long[] groupIds, java.lang.String className, long classTypePK) {
207 return getService()
208 .getGroupsVocabularies(groupIds, className, classTypePK);
209 }
210
211
214 @Deprecated
215 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
216 long groupId, java.lang.String name, int start, int end,
217 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
218 throws com.liferay.portal.kernel.exception.PortalException {
219 return getService()
220 .getJSONGroupVocabularies(groupId, name, start, end, obc);
221 }
222
223
227 @Deprecated
228 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
229 long[] vocabularyIds)
230 throws com.liferay.portal.kernel.exception.PortalException {
231 return getService().getVocabularies(vocabularyIds);
232 }
233
234 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
235 long vocabularyId)
236 throws com.liferay.portal.kernel.exception.PortalException {
237 return getService().getVocabulary(vocabularyId);
238 }
239
240 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
241 long groupId, java.lang.String title, int start, int end,
242 boolean addDefaultVocabulary)
243 throws com.liferay.portal.kernel.exception.PortalException {
244 return getService()
245 .searchVocabulariesDisplay(groupId, title, start, end,
246 addDefaultVocabulary);
247 }
248
249
254 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
255 getService().setBeanIdentifier(beanIdentifier);
256 }
257
258 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
259 long vocabularyId, java.lang.String title,
260 java.util.Map<java.util.Locale, java.lang.String> titleMap,
261 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
262 java.lang.String settings,
263 com.liferay.portal.service.ServiceContext serviceContext)
264 throws com.liferay.portal.kernel.exception.PortalException {
265 return getService()
266 .updateVocabulary(vocabularyId, title, titleMap,
267 descriptionMap, settings, serviceContext);
268 }
269
270
274 @Deprecated
275 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
276 long vocabularyId,
277 java.util.Map<java.util.Locale, java.lang.String> titleMap,
278 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
279 java.lang.String settings,
280 com.liferay.portal.service.ServiceContext serviceContext)
281 throws com.liferay.portal.kernel.exception.PortalException {
282 return getService()
283 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
284 settings, serviceContext);
285 }
286
287 public static AssetVocabularyService getService() {
288 if (_service == null) {
289 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
290
291 ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
292 "_service");
293 }
294
295 return _service;
296 }
297
298
301 @Deprecated
302 public void setService(AssetVocabularyService service) {
303 }
304
305 private static AssetVocabularyService _service;
306 }