001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetCategoryLocalService {
043
050 public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
051 com.liferay.portlet.asset.model.AssetCategory assetCategory)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
061 long categoryId);
062
063
070 public void deleteAssetCategory(long categoryId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteAssetCategory(
081 com.liferay.portlet.asset.model.AssetCategory assetCategory)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
156 long categoryId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getAssetCategoriesCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
210 com.liferay.portlet.asset.model.AssetCategory assetCategory)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
222 com.liferay.portlet.asset.model.AssetCategory assetCategory,
223 boolean merge)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public com.liferay.portlet.asset.model.AssetCategory addCategory(
227 long userId, long parentCategoryId,
228 java.util.Map<java.util.Locale, java.lang.String> titleMap,
229 long vocabularyId, java.lang.String[] categoryProperties,
230 com.liferay.portal.service.ServiceContext serviceContext)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException;
233
234 public void addCategoryResources(
235 com.liferay.portlet.asset.model.AssetCategory category,
236 boolean addCommunityPermissions, boolean addGuestPermissions)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException;
239
240 public void addCategoryResources(
241 com.liferay.portlet.asset.model.AssetCategory category,
242 java.lang.String[] communityPermissions,
243 java.lang.String[] guestPermissions)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public void deleteCategory(
248 com.liferay.portlet.asset.model.AssetCategory category)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void deleteCategory(long categoryId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void deleteVocabularyCategories(long vocabularyId)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public java.lang.String[] getCategoryNames()
262 throws com.liferay.portal.kernel.exception.SystemException;
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.lang.String[] getCategoryNames(long classNameId, long classPK)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.lang.String[] getCategoryNames(java.lang.String className,
270 long classPK)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
279 long classNameId, long classPK)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
284 java.lang.String className, long classPK)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portlet.asset.model.AssetCategory getCategory(
289 long categoryId)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public long[] getCategoryIds(java.lang.String className, 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> getChildCategories(
299 long parentCategoryId)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
304 long parentCategoryId, int start, int end,
305 com.liferay.portal.kernel.util.OrderByComparator obc)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public int getChildCategoriesCount(long parentCategoryId)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
314 long entryId)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
319 long vocabularyId, int start, int end,
320 com.liferay.portal.kernel.util.OrderByComparator obc)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
325 long parentCategoryId, long vocabularyId, int start, int end,
326 com.liferay.portal.kernel.util.OrderByComparator obc)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
331 long vocabularyId, int start, int end,
332 com.liferay.portal.kernel.util.OrderByComparator obc)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335 public void mergeCategories(long fromCategoryId, long toCategoryId)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
341 long groupId, java.lang.String name,
342 java.lang.String[] categoryProperties, int start, int end)
343 throws com.liferay.portal.kernel.exception.SystemException;
344
345 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
346 long userId, long categoryId, long parentCategoryId,
347 java.util.Map<java.util.Locale, java.lang.String> titleMap,
348 long vocabularyId, java.lang.String[] categoryProperties,
349 com.liferay.portal.service.ServiceContext serviceContext)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException;
352 }