001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetVocabularyLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
058 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
068 long vocabularyId);
069
070
078 public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
079 long vocabularyId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
090 public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
091 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095
096
103 @SuppressWarnings("rawtypes")
104 public java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
121 @SuppressWarnings("rawtypes")
122 public java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException;
125
126
140 @SuppressWarnings("rawtypes")
141 public java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
154 public long dynamicQueryCount(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 public long dynamicQueryCount(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168 com.liferay.portal.kernel.dao.orm.Projection projection)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
173 long vocabularyId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndCompanyId(
186 java.lang.String uuid, long companyId)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
212 long vocabularyId)
213 throws com.liferay.portal.kernel.exception.PortalException,
214 com.liferay.portal.kernel.exception.SystemException;
215
216 @Override
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.model.PersistedModel getPersistedModel(
219 java.io.Serializable primaryKeyObj)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndCompanyId(
234 java.lang.String uuid, long companyId)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
249 java.lang.String uuid, long groupId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
267 int start, int end)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public int getAssetVocabulariesCount()
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280
287 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
288 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291
296 public java.lang.String getBeanIdentifier();
297
298
303 public void setBeanIdentifier(java.lang.String beanIdentifier);
304
305 public com.liferay.portlet.asset.model.AssetVocabulary addDefaultVocabulary(
306 long groupId)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException;
309
310
313 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
314 long userId,
315 java.util.Map<java.util.Locale, java.lang.String> titleMap,
316 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
317 java.lang.String settings,
318 com.liferay.portal.service.ServiceContext serviceContext)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
323 long userId, java.lang.String title,
324 java.util.Map<java.util.Locale, java.lang.String> titleMap,
325 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
326 java.lang.String settings,
327 com.liferay.portal.service.ServiceContext serviceContext)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
332 long userId, java.lang.String title,
333 com.liferay.portal.service.ServiceContext serviceContext)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336
337 public void addVocabularyResources(
338 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
339 boolean addGroupPermissions, boolean addGuestPermissions)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException;
342
343 public void addVocabularyResources(
344 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
345 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 public void deleteVocabularies(long groupId)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException;
352
353 public void deleteVocabulary(
354 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException;
357
358 public void deleteVocabulary(long vocabularyId)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException;
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
364 long companyId)
365 throws com.liferay.portal.kernel.exception.SystemException;
366
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
369 long[] groupIds)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
375 long[] groupIds, java.lang.String className)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
381 long groupId)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException;
384
385 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
387 long groupId, boolean addDefaultVocabulary)
388 throws com.liferay.portal.kernel.exception.PortalException,
389 com.liferay.portal.kernel.exception.SystemException;
390
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
393 long groupId, java.lang.String name, int start, int end,
394 com.liferay.portal.kernel.util.OrderByComparator obc)
395 throws com.liferay.portal.kernel.exception.SystemException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
399 long groupId, java.lang.String name)
400 throws com.liferay.portal.kernel.exception.PortalException,
401 com.liferay.portal.kernel.exception.SystemException;
402
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
405 long[] vocabularyIds)
406 throws com.liferay.portal.kernel.exception.PortalException,
407 com.liferay.portal.kernel.exception.SystemException;
408
409 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
411 long vocabularyId)
412 throws com.liferay.portal.kernel.exception.PortalException,
413 com.liferay.portal.kernel.exception.SystemException;
414
415
418 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
419 long vocabularyId,
420 java.util.Map<java.util.Locale, java.lang.String> titleMap,
421 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
422 java.lang.String settings,
423 com.liferay.portal.service.ServiceContext serviceContext)
424 throws com.liferay.portal.kernel.exception.PortalException,
425 com.liferay.portal.kernel.exception.SystemException;
426
427 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
428 long vocabularyId, java.lang.String title,
429 java.util.Map<java.util.Locale, java.lang.String> titleMap,
430 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
431 java.lang.String settings,
432 com.liferay.portal.service.ServiceContext serviceContext)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException;
435 }