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.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface AssetVocabularyLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
060 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
061
062 public com.liferay.portlet.asset.model.AssetVocabulary addDefaultVocabulary(
063 long groupId)
064 throws com.liferay.portal.kernel.exception.PortalException;
065
066 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
067 long userId, java.lang.String title,
068 com.liferay.portal.service.ServiceContext serviceContext)
069 throws com.liferay.portal.kernel.exception.PortalException;
070
071 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
072 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
073 long userId, java.lang.String title,
074 java.util.Map<java.util.Locale, java.lang.String> titleMap,
075 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
076 java.lang.String settings,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws com.liferay.portal.kernel.exception.PortalException;
079
080
083 @java.lang.Deprecated
084 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
085 long userId,
086 java.util.Map<java.util.Locale, java.lang.String> titleMap,
087 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
088 java.lang.String settings,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException;
091
092 public void addVocabularyResources(
093 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
094 boolean addGroupPermissions, boolean addGuestPermissions)
095 throws com.liferay.portal.kernel.exception.PortalException;
096
097 public void addVocabularyResources(
098 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
099 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
100 throws com.liferay.portal.kernel.exception.PortalException;
101
102
108 public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
109 long vocabularyId);
110
111
117 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
118 public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
119 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
120
121
128 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
129 public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
130 long vocabularyId)
131 throws com.liferay.portal.kernel.exception.PortalException;
132
133
136 @Override
137 public com.liferay.portal.model.PersistedModel deletePersistedModel(
138 com.liferay.portal.model.PersistedModel persistedModel)
139 throws com.liferay.portal.kernel.exception.PortalException;
140
141 public void deleteVocabularies(long groupId)
142 throws com.liferay.portal.kernel.exception.PortalException;
143
144 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
145 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
146 public void deleteVocabulary(
147 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
148 throws com.liferay.portal.kernel.exception.PortalException;
149
150 public void deleteVocabulary(long vocabularyId)
151 throws com.liferay.portal.kernel.exception.PortalException;
152
153 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
154
155
161 public <T> java.util.List<T> dynamicQuery(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
163
164
176 public <T> java.util.List<T> dynamicQuery(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
178 int end);
179
180
193 public <T> java.util.List<T> dynamicQuery(
194 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
195 int end,
196 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
197
198
204 public long dynamicQueryCount(
205 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
206
207
214 public long dynamicQueryCount(
215 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
216 com.liferay.portal.kernel.dao.orm.Projection projection);
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
220 long vocabularyId);
221
222
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
231 java.lang.String uuid, long groupId);
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
235
236
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
249 int start, int end);
250
251
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
260 java.lang.String uuid, long companyId);
261
262
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
274 java.lang.String uuid, long companyId, int start, int end,
275 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
276
277
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getAssetVocabulariesCount();
284
285
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
294 long vocabularyId)
295 throws com.liferay.portal.kernel.exception.PortalException;
296
297
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
307 java.lang.String uuid, long groupId)
308 throws com.liferay.portal.kernel.exception.PortalException;
309
310
315 public java.lang.String getBeanIdentifier();
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
319 long companyId);
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
323 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
327 long groupId)
328 throws com.liferay.portal.kernel.exception.PortalException;
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
332 long groupId, boolean addDefaultVocabulary)
333 throws com.liferay.portal.kernel.exception.PortalException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
337 long groupId, java.lang.String name, int start, int end,
338 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
342 long[] groupIds);
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public int getGroupVocabulariesCount(long[] groupIds);
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
349 long groupId, java.lang.String name)
350 throws com.liferay.portal.kernel.exception.PortalException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
354 long[] groupIds);
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
358 long[] groupIds, java.lang.String className);
359
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
362 long[] groupIds, java.lang.String className, long classTypePK);
363
364 @Override
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public com.liferay.portal.model.PersistedModel getPersistedModel(
367 java.io.Serializable primaryKeyObj)
368 throws com.liferay.portal.kernel.exception.PortalException;
369
370 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
372 long[] vocabularyIds)
373 throws com.liferay.portal.kernel.exception.PortalException;
374
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
377 long vocabularyId)
378 throws com.liferay.portal.kernel.exception.PortalException;
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
382 long companyId, long groupId, java.lang.String title, int start, int end)
383 throws com.liferay.portal.kernel.exception.PortalException;
384
385
390 public void setBeanIdentifier(java.lang.String beanIdentifier);
391
392
398 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
399 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
400 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
401
402 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
403 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
404 long vocabularyId, java.lang.String title,
405 java.util.Map<java.util.Locale, java.lang.String> titleMap,
406 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
407 java.lang.String settings,
408 com.liferay.portal.service.ServiceContext serviceContext)
409 throws com.liferay.portal.kernel.exception.PortalException;
410
411
414 @java.lang.Deprecated
415 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
416 long vocabularyId,
417 java.util.Map<java.util.Locale, java.lang.String> titleMap,
418 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
419 java.lang.String settings,
420 com.liferay.portal.service.ServiceContext serviceContext)
421 throws com.liferay.portal.kernel.exception.PortalException;
422 }