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) throws PortalException;
064
065 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
066 long userId, long groupId, java.lang.String title,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws PortalException;
069
070 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
071 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
072 long userId, long groupId, java.lang.String title,
073 java.util.Map<java.util.Locale, java.lang.String> titleMap,
074 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
075 java.lang.String settings,
076 com.liferay.portal.service.ServiceContext serviceContext)
077 throws PortalException;
078
079 public void addVocabularyResources(
080 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
081 boolean addGroupPermissions, boolean addGuestPermissions)
082 throws PortalException;
083
084 public void addVocabularyResources(
085 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
086 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
087 throws PortalException;
088
089
095 public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
096 long vocabularyId);
097
098
104 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
105 public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
106 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
107
108
115 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
116 public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
117 long vocabularyId) throws PortalException;
118
119
122 @Override
123 public com.liferay.portal.model.PersistedModel deletePersistedModel(
124 com.liferay.portal.model.PersistedModel persistedModel)
125 throws PortalException;
126
127 public void deleteVocabularies(long groupId) throws PortalException;
128
129 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
130 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
131 public com.liferay.portlet.asset.model.AssetVocabulary deleteVocabulary(
132 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
133 throws PortalException;
134
135 public void deleteVocabulary(long vocabularyId) throws PortalException;
136
137 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
138
139
145 public <T> java.util.List<T> dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
147
148
160 public <T> java.util.List<T> dynamicQuery(
161 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
162 int end);
163
164
177 public <T> java.util.List<T> dynamicQuery(
178 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
179 int end,
180 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
181
182
188 public long dynamicQueryCount(
189 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
190
191
198 public long dynamicQueryCount(
199 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
200 com.liferay.portal.kernel.dao.orm.Projection projection);
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
204 long vocabularyId);
205
206
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
215 java.lang.String uuid, long groupId);
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
219
220
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
233 int start, int end);
234
235
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
244 java.lang.String uuid, long companyId);
245
246
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
258 java.lang.String uuid, long companyId, int start, int end,
259 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
260
261
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public int getAssetVocabulariesCount();
268
269
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
278 long vocabularyId) throws PortalException;
279
280
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
290 java.lang.String uuid, long groupId) throws PortalException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
294 long companyId);
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
298 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
302 long groupId) throws PortalException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
306 long groupId, boolean addDefaultVocabulary) throws PortalException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
310 long groupId, java.lang.String name, int start, int end,
311 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
315 long[] groupIds);
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public int getGroupVocabulariesCount(long[] groupIds);
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
322 long groupId, java.lang.String name) throws PortalException;
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
326 long[] groupIds);
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
330 long[] groupIds, java.lang.String className);
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
334 long[] groupIds, java.lang.String className, long classTypePK);
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
338
339
344 public java.lang.String getOSGiServiceIdentifier();
345
346 @Override
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public com.liferay.portal.model.PersistedModel getPersistedModel(
349 java.io.Serializable primaryKeyObj) throws PortalException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
353 com.liferay.portal.kernel.search.Hits hits) throws PortalException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
357 long[] vocabularyIds) throws PortalException;
358
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
361 long vocabularyId) throws PortalException;
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
365 long companyId, long groupId, java.lang.String title, int start, int end)
366 throws PortalException;
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
370 long companyId, long groupId, java.lang.String title, int start,
371 int end, com.liferay.portal.kernel.search.Sort sort)
372 throws PortalException;
373
374
380 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
381 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
382 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
383
384 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
385 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
386 long vocabularyId, java.lang.String title,
387 java.util.Map<java.util.Locale, java.lang.String> titleMap,
388 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
389 java.lang.String settings,
390 com.liferay.portal.service.ServiceContext serviceContext)
391 throws PortalException;
392 }