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.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
262 throws com.liferay.portal.kernel.exception.SystemException;
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
266 long classNameId, long classPK)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
271 java.lang.String className, long classPK)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public com.liferay.portlet.asset.model.AssetCategory getCategory(
276 long categoryId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public long[] getCategoryIds(java.lang.String className, long classPK)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
286 long parentCategoryId, int start, int end,
287 com.liferay.portal.kernel.util.OrderByComparator obc)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public int getChildCategoriesCount(long parentCategoryId)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
296 long entryId)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
301 long vocabularyId, int start, int end,
302 com.liferay.portal.kernel.util.OrderByComparator obc)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
307 long parentCategoryId, long vocabularyId, int start, int end,
308 com.liferay.portal.kernel.util.OrderByComparator obc)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
313 long vocabularyId, int start, int end,
314 com.liferay.portal.kernel.util.OrderByComparator obc)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 public void mergeCategories(long fromCategoryId, long toCategoryId)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
323 java.lang.String name, java.lang.String[] categoryProperties,
324 int start, int end)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
328 long userId, long categoryId, long parentCategoryId,
329 java.util.Map<java.util.Locale, java.lang.String> titleMap,
330 long vocabularyId, java.lang.String[] categoryProperties,
331 com.liferay.portal.service.ServiceContext serviceContext)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334 }