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 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
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 void 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
297 public java.lang.String getBeanIdentifier();
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
301 long companyId);
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
305 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
309 long groupId) throws PortalException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
313 long groupId, boolean addDefaultVocabulary) throws PortalException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
317 long groupId, java.lang.String name, int start, int end,
318 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
322 long[] groupIds);
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int getGroupVocabulariesCount(long[] groupIds);
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
329 long groupId, java.lang.String name) throws PortalException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
333 long[] groupIds);
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
337 long[] groupIds, java.lang.String className);
338
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
341 long[] groupIds, java.lang.String className, long classTypePK);
342
343 @Override
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public com.liferay.portal.model.PersistedModel getPersistedModel(
346 java.io.Serializable primaryKeyObj) throws PortalException;
347
348 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
350 com.liferay.portal.kernel.search.Hits hits) throws PortalException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
354 long[] vocabularyIds) throws PortalException;
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
358 long vocabularyId) throws PortalException;
359
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
362 long companyId, long groupId, java.lang.String title, int start, int end)
363 throws PortalException;
364
365
370 public void setBeanIdentifier(java.lang.String beanIdentifier);
371
372
378 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
379 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
380 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
381
382 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
383 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
384 long vocabularyId, java.lang.String title,
385 java.util.Map<java.util.Locale, java.lang.String> titleMap,
386 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
387 java.lang.String settings,
388 com.liferay.portal.service.ServiceContext serviceContext)
389 throws PortalException;
390 }