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.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
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 groupId, 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 PortalException;
057
058 public com.liferay.portlet.asset.model.AssetCategory addCategory(
059 long groupId, java.lang.String title, long vocabularyId,
060 com.liferay.portal.service.ServiceContext serviceContext)
061 throws PortalException;
062
063 public void deleteCategories(long[] categoryIds) throws PortalException;
064
065
068 @java.lang.Deprecated
069 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
070 long[] categoryIds,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws PortalException;
073
074 public void deleteCategory(long categoryId) throws PortalException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public com.liferay.portlet.asset.model.AssetCategory fetchCategory(
078 long categoryId) throws PortalException;
079
080
085 public java.lang.String getBeanIdentifier();
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
089 java.lang.String className, long classPK) throws PortalException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public com.liferay.portlet.asset.model.AssetCategory getCategory(
093 long categoryId) throws PortalException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public java.lang.String getCategoryPath(long categoryId)
097 throws PortalException;
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
101 long parentCategoryId) throws PortalException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
105 long parentCategoryId, int start, int end,
106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
107 throws PortalException;
108
109
113 @java.lang.Deprecated
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
116 long groupId, java.lang.String name, long[] vocabularyIds, int start,
117 int end) throws PortalException;
118
119
124 @java.lang.Deprecated
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
127 long groupId, java.lang.String name, long vocabularyId, int start,
128 int end,
129 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
130 throws PortalException;
131
132
137 @java.lang.Deprecated
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
140 long vocabularyId, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
142 throws PortalException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
146 long groupId, java.lang.String name, long vocabularyId, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
152 long groupId, long parentCategoryId, long vocabularyId, int start,
153 int end,
154 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
158 long parentCategoryId, long vocabularyId, int start, int end,
159 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
160 throws PortalException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
164 long vocabularyId, int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
166 throws PortalException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public int getVocabularyCategoriesCount(long groupId,
170 java.lang.String name, long vocabularyId);
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public int getVocabularyCategoriesCount(long groupId, long parentCategory,
174 long vocabularyId);
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public int getVocabularyCategoriesCount(long groupId, long vocabularyId);
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
181 long groupId, java.lang.String name, long vocabularyId, int start,
182 int end,
183 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
184 throws PortalException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
188 long vocabularyId, int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
190 throws PortalException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
194 long groupId, long vocabularyId, int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
196
197
202 @java.lang.Deprecated
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
205 long vocabularyId, int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
207 throws PortalException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public int getVocabularyRootCategoriesCount(long groupId, long vocabularyId);
211
212 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
213 long categoryId, long parentCategoryId, long vocabularyId,
214 com.liferay.portal.service.ServiceContext serviceContext)
215 throws PortalException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
219 long groupId, java.lang.String keywords, long vocabularyId, int start,
220 int end,
221 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
225 java.lang.String name, java.lang.String[] categoryProperties,
226 int start, int end) throws PortalException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
230 java.lang.String name, long[] vocabularyIds, int start, int end)
231 throws PortalException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
235 long groupId, java.lang.String title, long parentCategoryId,
236 long vocabularyId, int start, int end) throws PortalException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
240 long groupId, java.lang.String title, long vocabularyId, int start,
241 int end) throws PortalException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
245 long[] groupIds, java.lang.String title, long[] parentCategoryIds,
246 long[] vocabularyIds, int start, int end) throws PortalException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
250 long[] groupIds, java.lang.String title, long[] vocabularyIds,
251 int start, int end) throws PortalException;
252
253
258 public void setBeanIdentifier(java.lang.String beanIdentifier);
259
260 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
261 long categoryId, long parentCategoryId,
262 java.util.Map<java.util.Locale, java.lang.String> titleMap,
263 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
264 long vocabularyId, java.lang.String[] categoryProperties,
265 com.liferay.portal.service.ServiceContext serviceContext)
266 throws PortalException;
267 }