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.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface AssetCategoryService {
041
046 public com.liferay.portlet.asset.model.AssetCategory addCategory(
047 long parentCategoryId,
048 java.util.Map<java.util.Locale, java.lang.String> titleMap,
049 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
050 long vocabularyId, java.lang.String[] categoryProperties,
051 com.liferay.portal.service.ServiceContext serviceContext)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException;
054
055 public void deleteCategories(long[] categoryIds)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException;
058
059 public void deleteCategory(long categoryId)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException;
062
063 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
065 java.lang.String className, long classPK)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070 public com.liferay.portlet.asset.model.AssetCategory getCategory(
071 long categoryId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
077 long parentCategoryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
083 long parentCategoryId, int start, int end,
084 com.liferay.portal.kernel.util.OrderByComparator obc)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
090 long groupId, java.lang.String name, long vocabularyId, int start,
091 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
097 long vocabularyId, int start, int end,
098 com.liferay.portal.kernel.util.OrderByComparator obc)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
104 long parentCategoryId, long vocabularyId, int start, int end,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
111 long groupId, java.lang.String name, long vocabularyId, int start,
112 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public int getVocabularyCategoriesCount(long groupId,
121 java.lang.String name, long vocabularyId)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
126 long vocabularyId, int start, int end,
127 com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
132 long categoryId, long parentCategoryId, long vocabularyId,
133 com.liferay.portal.service.ServiceContext serviceContext)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
139 long groupId, java.lang.String keywords, long vocabularyId, int start,
140 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
146 java.lang.String name, java.lang.String[] categoryProperties,
147 int start, int end)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
152 long categoryId, long parentCategoryId,
153 java.util.Map<java.util.Locale, java.lang.String> titleMap,
154 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
155 long vocabularyId, java.lang.String[] categoryProperties,
156 com.liferay.portal.service.ServiceContext serviceContext)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159 }