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.jsonwebservice.JSONWebService;
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.security.ac.AccessControlled;
026 import com.liferay.portal.service.BaseService;
027
028
039 @ProviderType
040 @AccessControlled
041 @JSONWebService
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface AssetCategoryService extends BaseService {
045
050
051
056 public java.lang.String getBeanIdentifier();
057
058
063 public void setBeanIdentifier(java.lang.String beanIdentifier);
064
065 public com.liferay.portlet.asset.model.AssetCategory addCategory(
066 long parentCategoryId,
067 java.util.Map<java.util.Locale, java.lang.String> titleMap,
068 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
069 long vocabularyId, java.lang.String[] categoryProperties,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 public com.liferay.portlet.asset.model.AssetCategory addCategory(
075 java.lang.String title, long vocabularyId,
076 com.liferay.portal.service.ServiceContext serviceContext)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080
084 public void deleteCategories(long[] categoryIds)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
089 long[] categoryIds,
090 com.liferay.portal.service.ServiceContext serviceContext)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException;
093
094 public void deleteCategory(long categoryId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
100 java.lang.String className, long classPK)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public com.liferay.portlet.asset.model.AssetCategory getCategory(
106 long categoryId)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
112 long parentCategoryId)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
118 long parentCategoryId, int start, int end,
119 com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException;
122
123
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
129 long groupId, java.lang.String name, long[] vocabularyIds, int start,
130 int end)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
141 long vocabularyId, int start, int end,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
153 long groupId, java.lang.String title, long vocabularyId, int start,
154 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
160 long vocabularyId, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
167 long parentCategoryId, long vocabularyId, int start, int end,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
174 long groupId, java.lang.String name, long vocabularyId, int start,
175 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public int getVocabularyCategoriesCount(long groupId,
184 java.lang.String name, long vocabularyId)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
189 long vocabularyId, int start, int end,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
196 long groupId, java.lang.String name, long vocabularyId, int start,
197 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException;
200
201
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
208 long vocabularyId, int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
215 long groupId, long vocabularyId, int start, int end,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
224 long categoryId, long parentCategoryId, long vocabularyId,
225 com.liferay.portal.service.ServiceContext serviceContext)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
231 long groupId, java.lang.String keywords, long vocabularyId, int start,
232 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
237 java.lang.String name, java.lang.String[] categoryProperties,
238 int start, int end)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
244 java.lang.String title, long[] vocabularyIds, int start, int end)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
249 long categoryId, long parentCategoryId,
250 java.util.Map<java.util.Locale, java.lang.String> titleMap,
251 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
252 long vocabularyId, java.lang.String[] categoryProperties,
253 com.liferay.portal.service.ServiceContext serviceContext)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256 }