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
105 public static java.lang.String getBeanIdentifier() {
106 return getService().getBeanIdentifier();
107 }
108
109
112 @Deprecated
113 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
114 long companyId)
115 throws com.liferay.portal.kernel.exception.PortalException {
116 return getService().getCompanyVocabularies(companyId);
117 }
118
119 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
120 long groupId)
121 throws com.liferay.portal.kernel.exception.PortalException {
122 return getService().getGroupVocabularies(groupId);
123 }
124
125 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
126 long groupId, boolean createDefaultVocabulary)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 return getService()
129 .getGroupVocabularies(groupId, createDefaultVocabulary);
130 }
131
132 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
133 long groupId, boolean createDefaultVocabulary, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
135 throws com.liferay.portal.kernel.exception.PortalException {
136 return getService()
137 .getGroupVocabularies(groupId, createDefaultVocabulary,
138 start, end, obc);
139 }
140
141 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
142 long groupId, java.lang.String name, int start, int end,
143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
144 return getService().getGroupVocabularies(groupId, name, start, end, obc);
145 }
146
147 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
148 long groupId, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
150 return getService().getGroupVocabularies(groupId, start, end, obc);
151 }
152
153 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
154 long[] groupIds) {
155 return getService().getGroupVocabularies(groupIds);
156 }
157
158 public static int getGroupVocabulariesCount(long groupId) {
159 return getService().getGroupVocabulariesCount(groupId);
160 }
161
162 public static int getGroupVocabulariesCount(long groupId,
163 java.lang.String name) {
164 return getService().getGroupVocabulariesCount(groupId, name);
165 }
166
167 public static int getGroupVocabulariesCount(long[] groupIds) {
168 return getService().getGroupVocabulariesCount(groupIds);
169 }
170
171 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
172 long groupId, java.lang.String name, int start, int end,
173 boolean addDefaultVocabulary,
174 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
175 throws com.liferay.portal.kernel.exception.PortalException {
176 return getService()
177 .getGroupVocabulariesDisplay(groupId, name, start, end,
178 addDefaultVocabulary, obc);
179 }
180
181 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
182 long groupId, java.lang.String name, int start, int end,
183 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
184 throws com.liferay.portal.kernel.exception.PortalException {
185 return getService()
186 .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
187 }
188
189 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
190 long[] groupIds) {
191 return getService().getGroupsVocabularies(groupIds);
192 }
193
194 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
195 long[] groupIds, java.lang.String className) {
196 return getService().getGroupsVocabularies(groupIds, className);
197 }
198
199 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
200 long[] groupIds, java.lang.String className, long classTypePK) {
201 return getService()
202 .getGroupsVocabularies(groupIds, className, classTypePK);
203 }
204
205
208 @Deprecated
209 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
210 long groupId, java.lang.String name, int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
212 throws com.liferay.portal.kernel.exception.PortalException {
213 return getService()
214 .getJSONGroupVocabularies(groupId, name, start, end, obc);
215 }
216
217
221 @Deprecated
222 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
223 long[] vocabularyIds)
224 throws com.liferay.portal.kernel.exception.PortalException {
225 return getService().getVocabularies(vocabularyIds);
226 }
227
228 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
229 long vocabularyId)
230 throws com.liferay.portal.kernel.exception.PortalException {
231 return getService().getVocabulary(vocabularyId);
232 }
233
234 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
235 long groupId, java.lang.String title, int start, int end,
236 boolean addDefaultVocabulary)
237 throws com.liferay.portal.kernel.exception.PortalException {
238 return getService()
239 .searchVocabulariesDisplay(groupId, title, start, end,
240 addDefaultVocabulary);
241 }
242
243
248 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
249 getService().setBeanIdentifier(beanIdentifier);
250 }
251
252 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
253 long vocabularyId, java.lang.String title,
254 java.util.Map<java.util.Locale, java.lang.String> titleMap,
255 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
256 java.lang.String settings,
257 com.liferay.portal.service.ServiceContext serviceContext)
258 throws com.liferay.portal.kernel.exception.PortalException {
259 return getService()
260 .updateVocabulary(vocabularyId, title, titleMap,
261 descriptionMap, settings, serviceContext);
262 }
263
264
268 @Deprecated
269 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
270 long vocabularyId,
271 java.util.Map<java.util.Locale, java.lang.String> titleMap,
272 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
273 java.lang.String settings,
274 com.liferay.portal.service.ServiceContext serviceContext)
275 throws com.liferay.portal.kernel.exception.PortalException {
276 return getService()
277 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
278 settings, serviceContext);
279 }
280
281 public static AssetVocabularyService getService() {
282 if (_service == null) {
283 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
284
285 ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
286 "_service");
287 }
288
289 return _service;
290 }
291
292
295 @Deprecated
296 public void setService(AssetVocabularyService service) {
297 }
298
299 private static AssetVocabularyService _service;
300 }