001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
029     * Provides the remote service interface for AssetCategory. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see AssetCategoryServiceUtil
035     * @see com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
036     * @see com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
037     * @generated
038     */
039    @ProviderType
040    @AccessControlled
041    @JSONWebService
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface AssetCategoryService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. Always use {@link AssetCategoryServiceUtil} to access the asset category remote service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
049             */
050    
051            /**
052            * Returns the Spring bean ID for this bean.
053            *
054            * @return the Spring bean ID for this bean
055            */
056            public java.lang.String getBeanIdentifier();
057    
058            /**
059            * Sets the Spring bean ID for this bean.
060            *
061            * @param beanIdentifier the Spring bean ID for this bean
062            */
063            public void setBeanIdentifier(java.lang.String beanIdentifier);
064    
065            public com.liferay.portlet.asset.model.AssetCategory addCategory(
066                    long parentCategoryId,
067                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
068                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
069                    long vocabularyId, java.lang.String[] categoryProperties,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portlet.asset.model.AssetCategory addCategory(
075                    java.lang.String title, long vocabularyId,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * @deprecated As of 6.2.0, Replaced by {@link #deleteCategories(long[],
082            ServiceContext)}
083            */
084            public void deleteCategories(long[] categoryIds)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
089                    long[] categoryIds,
090                    com.liferay.portal.service.ServiceContext serviceContext)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            public void deleteCategory(long categoryId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException;
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
100                    java.lang.String className, long classPK)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105            public com.liferay.portlet.asset.model.AssetCategory getCategory(
106                    long categoryId)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
112                    long parentCategoryId)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
118                    long parentCategoryId, int start, int end,
119                    com.liferay.portal.kernel.util.OrderByComparator obc)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException;
122    
123            /**
124            * @deprecated As of 6.2.0, replaced by {@link #search(long[], String,
125            long[], int, int)}
126            */
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            /**
135            * @deprecated As of 6.2.0, replaced by {@link
136            #getVocabularyCategoriesDisplay(long, int, int,
137            OrderByComparator)}
138            */
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 obc)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * @deprecated As of 6.2.0, replaced by {@link
148            #getVocabularyCategoriesDisplay(long, String, long, int, int,
149            OrderByComparator)}
150            */
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
153                    long groupId, java.lang.String title, long vocabularyId, int start,
154                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException;
157    
158            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
160                    long vocabularyId, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator obc)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException;
164    
165            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
167                    long parentCategoryId, long vocabularyId, int start, int end,
168                    com.liferay.portal.kernel.util.OrderByComparator obc)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
174                    long groupId, java.lang.String name, long vocabularyId, int start,
175                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179            public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183            public int getVocabularyCategoriesCount(long groupId,
184                    java.lang.String name, long vocabularyId)
185                    throws com.liferay.portal.kernel.exception.SystemException;
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 obc)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195            public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
196                    long groupId, java.lang.String name, long vocabularyId, int start,
197                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
198                    throws com.liferay.portal.kernel.exception.PortalException,
199                            com.liferay.portal.kernel.exception.SystemException;
200    
201            /**
202            * @deprecated As of 6.2.0, replaced by {@link
203            #getVocabularyRootCategories(long, long, int, int,
204            OrderByComparator)}
205            */
206            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
208                    long vocabularyId, int start, int end,
209                    com.liferay.portal.kernel.util.OrderByComparator obc)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException;
212    
213            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
215                    long groupId, long vocabularyId, int start, int end,
216                    com.liferay.portal.kernel.util.OrderByComparator obc)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220            public int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
224                    long categoryId, long parentCategoryId, long vocabularyId,
225                    com.liferay.portal.service.ServiceContext serviceContext)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException;
228    
229            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
231                    long groupId, java.lang.String keywords, long vocabularyId, int start,
232                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
237                    java.lang.String name, java.lang.String[] categoryProperties,
238                    int start, int end)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
244                    java.lang.String title, long[] vocabularyIds, int start, int end)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException;
247    
248            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
249                    long categoryId, long parentCategoryId,
250                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
251                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
252                    long vocabularyId, java.lang.String[] categoryProperties,
253                    com.liferay.portal.service.ServiceContext serviceContext)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException;
256    }