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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
253 java.lang.String uuid, long companyId);
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
257 java.lang.String uuid, long companyId, int start, int end,
258 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
259
260
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public int getAssetVocabulariesCount();
267
268
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
277 long vocabularyId)
278 throws com.liferay.portal.kernel.exception.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)
291 throws com.liferay.portal.kernel.exception.PortalException;
292
293
298 public java.lang.String getBeanIdentifier();
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
302 long companyId);
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
306 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
310 long groupId)
311 throws com.liferay.portal.kernel.exception.PortalException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
315 long groupId, boolean addDefaultVocabulary)
316 throws com.liferay.portal.kernel.exception.PortalException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
320 long groupId, java.lang.String name, int start, int end,
321 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
325 long[] groupIds);
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public int getGroupVocabulariesCount(long[] groupIds);
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
332 long groupId, java.lang.String name)
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> getGroupsVocabularies(
337 long[] groupIds);
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);
342
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
345 long[] groupIds, java.lang.String className, long classTypePK);
346
347 @Override
348 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349 public com.liferay.portal.model.PersistedModel getPersistedModel(
350 java.io.Serializable primaryKeyObj)
351 throws com.liferay.portal.kernel.exception.PortalException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
355 long[] vocabularyIds)
356 throws com.liferay.portal.kernel.exception.PortalException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
360 long vocabularyId)
361 throws com.liferay.portal.kernel.exception.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 com.liferay.portal.kernel.exception.PortalException;
367
368
373 public void setBeanIdentifier(java.lang.String beanIdentifier);
374
375
381 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
382 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
383 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
384
385 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
386 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
387 long vocabularyId, java.lang.String title,
388 java.util.Map<java.util.Locale, java.lang.String> titleMap,
389 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
390 java.lang.String settings,
391 com.liferay.portal.service.ServiceContext serviceContext)
392 throws com.liferay.portal.kernel.exception.PortalException;
393
394
397 @java.lang.Deprecated
398 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
399 long vocabularyId,
400 java.util.Map<java.util.Locale, java.lang.String> titleMap,
401 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
402 java.lang.String settings,
403 com.liferay.portal.service.ServiceContext serviceContext)
404 throws com.liferay.portal.kernel.exception.PortalException;
405 }