001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface AssetCategoryLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
054 com.liferay.portlet.asset.model.AssetCategory assetCategory)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
064 long categoryId);
065
066
073 public void deleteAssetCategory(long categoryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteAssetCategory(
084 com.liferay.portlet.asset.model.AssetCategory assetCategory)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
159 long categoryId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
180 java.lang.String uuid, long groupId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
198 int start, int end)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public int getAssetCategoriesCount()
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211
218 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
219 com.liferay.portlet.asset.model.AssetCategory assetCategory)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222
230 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
231 com.liferay.portlet.asset.model.AssetCategory assetCategory,
232 boolean merge)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235
240 public java.lang.String getBeanIdentifier();
241
242
247 public void setBeanIdentifier(java.lang.String beanIdentifier);
248
249 public com.liferay.portlet.asset.model.AssetCategory addCategory(
250 long userId, long parentCategoryId,
251 java.util.Map<java.util.Locale, java.lang.String> titleMap,
252 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
253 long vocabularyId, java.lang.String[] categoryProperties,
254 com.liferay.portal.service.ServiceContext serviceContext)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258 public void addCategoryResources(
259 com.liferay.portlet.asset.model.AssetCategory category,
260 boolean addGroupPermissions, boolean addGuestPermissions)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 public void addCategoryResources(
265 com.liferay.portlet.asset.model.AssetCategory category,
266 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 public void deleteCategory(
271 com.liferay.portlet.asset.model.AssetCategory category)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public void deleteCategory(long categoryId)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public void deleteVocabularyCategories(long vocabularyId)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public com.liferay.portlet.asset.model.AssetCategory fetchCategory(
285 long categoryId)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
294 long classNameId, long classPK)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
299 java.lang.String className, long classPK)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public com.liferay.portlet.asset.model.AssetCategory getCategory(
304 long categoryId)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public long[] getCategoryIds(java.lang.String className, long classPK)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.lang.String[] getCategoryNames()
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public java.lang.String[] getCategoryNames(long classNameId, long classPK)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.lang.String[] getCategoryNames(java.lang.String className,
322 long classPK)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
327 long parentCategoryId)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
332 long parentCategoryId, int start, int end,
333 com.liferay.portal.kernel.util.OrderByComparator obc)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public int getChildCategoriesCount(long parentCategoryId)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
342 long entryId)
343 throws com.liferay.portal.kernel.exception.SystemException;
344
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
347 long vocabularyId, int start, int end,
348 com.liferay.portal.kernel.util.OrderByComparator obc)
349 throws com.liferay.portal.kernel.exception.SystemException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
353 long parentCategoryId, long vocabularyId, int start, int end,
354 com.liferay.portal.kernel.util.OrderByComparator obc)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public int getVocabularyCategoriesCount(long vocabularyId)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
363 long vocabularyId, int start, int end,
364 com.liferay.portal.kernel.util.OrderByComparator obc)
365 throws com.liferay.portal.kernel.exception.SystemException;
366
367 public void mergeCategories(long fromCategoryId, long toCategoryId)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370
371 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
372 long categoryId, long parentCategoryId, long vocabularyId,
373 com.liferay.portal.service.ServiceContext serviceContext)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException;
376
377 public void rebuildTree(long groupId, boolean force)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
382 long groupId, java.lang.String name,
383 java.lang.String[] categoryProperties, int start, int end)
384 throws com.liferay.portal.kernel.exception.SystemException;
385
386 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
387 long userId, long categoryId, long parentCategoryId,
388 java.util.Map<java.util.Locale, java.lang.String> titleMap,
389 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
390 long vocabularyId, java.lang.String[] categoryProperties,
391 com.liferay.portal.service.ServiceContext serviceContext)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException;
394 }