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