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