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.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface AssetCategoryService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.asset.model.AssetCategory addCategory(
063 long parentCategoryId,
064 java.util.Map<java.util.Locale, java.lang.String> titleMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 long vocabularyId, java.lang.String[] categoryProperties,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071
075 public void deleteCategories(long[] categoryIds)
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
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
119 long groupId, java.lang.String keywords, long vocabularyId, int start,
120 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
136 long vocabularyId, int start, int end,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
143 long groupId, java.lang.String name, long vocabularyId, int start,
144 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
150 long vocabularyId, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
157 long parentCategoryId, long vocabularyId, int start, int end,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
164 long groupId, java.lang.String name, long vocabularyId, int start,
165 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
170 throws com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public int getVocabularyCategoriesCount(long groupId,
174 java.lang.String name, long vocabularyId)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
183 long vocabularyId, int start, int end,
184 com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
190 long groupId, long vocabularyId, int start, int end,
191 com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
199 long categoryId, long parentCategoryId, long vocabularyId,
200 com.liferay.portal.service.ServiceContext serviceContext)
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> search(
206 long groupId, java.lang.String keywords, long vocabularyId, int start,
207 int end, 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 com.liferay.portal.kernel.json.JSONArray search(long groupId,
212 java.lang.String name, java.lang.String[] categoryProperties,
213 int start, int end)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
219 java.lang.String name, long[] vocabularyIds, int start, int end)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
224 long categoryId, long parentCategoryId,
225 java.util.Map<java.util.Locale, java.lang.String> titleMap,
226 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
227 long vocabularyId, java.lang.String[] categoryProperties,
228 com.liferay.portal.service.ServiceContext serviceContext)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231 }