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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
082 java.lang.String className, long classPK) throws PortalException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public com.liferay.portlet.asset.model.AssetCategory getCategory(
086 long categoryId) throws PortalException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public java.lang.String getCategoryPath(long categoryId)
090 throws PortalException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
094 long parentCategoryId) throws PortalException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
098 long parentCategoryId, int start, int end,
099 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
100 throws PortalException;
101
102
107 public java.lang.String getOSGiServiceIdentifier();
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
111 long groupId, java.lang.String name, long vocabularyId, int start,
112 int end,
113 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
117 long groupId, long parentCategoryId, long vocabularyId, int start,
118 int end,
119 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
123 long parentCategoryId, long vocabularyId, int start, int end,
124 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
125 throws PortalException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
129 long vocabularyId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
131 throws PortalException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public int getVocabularyCategoriesCount(long groupId,
135 java.lang.String name, long vocabularyId);
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public int getVocabularyCategoriesCount(long groupId, long parentCategory,
139 long vocabularyId);
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public int getVocabularyCategoriesCount(long groupId, long vocabularyId);
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
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 throws PortalException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
153 long vocabularyId, int start, int end,
154 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
155 throws PortalException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
159 long groupId, long vocabularyId, int start, int end,
160 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public int getVocabularyRootCategoriesCount(long groupId, long vocabularyId);
164
165 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
166 long categoryId, long parentCategoryId, long vocabularyId,
167 com.liferay.portal.service.ServiceContext serviceContext)
168 throws PortalException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
172 long groupId, java.lang.String keywords, long vocabularyId, int start,
173 int end,
174 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
178 java.lang.String name, java.lang.String[] categoryProperties,
179 int start, int end) throws PortalException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
183 java.lang.String name, long[] vocabularyIds, int start, int end)
184 throws PortalException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
188 long groupId, java.lang.String title, long parentCategoryId,
189 long vocabularyId, int start, int end) throws PortalException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
193 long groupId, java.lang.String title, long vocabularyId,
194 long parentCategoryId, int start, int end,
195 com.liferay.portal.kernel.search.Sort sort) throws PortalException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
199 long groupId, java.lang.String title, long vocabularyId, int start,
200 int end) throws PortalException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
204 long[] groupIds, java.lang.String title, long[] parentCategoryIds,
205 long[] vocabularyIds, int start, int end) throws PortalException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
209 long[] groupIds, java.lang.String title, long[] vocabularyIds,
210 long[] parentCategoryIds, int start, int end,
211 com.liferay.portal.kernel.search.Sort sort) throws PortalException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
215 long[] groupIds, java.lang.String title, long[] vocabularyIds,
216 int start, int end) throws PortalException;
217
218 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
219 long categoryId, long parentCategoryId,
220 java.util.Map<java.util.Locale, java.lang.String> titleMap,
221 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
222 long vocabularyId, java.lang.String[] categoryProperties,
223 com.liferay.portal.service.ServiceContext serviceContext)
224 throws PortalException;
225 }