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 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    /**
027     * The interface for the asset category remote service.
028     *
029     * <p>
030     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
031     * </p>
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    @AccessControlled
040    @JSONWebService
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface AssetCategoryService extends BaseService {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * 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.
048             */
049    
050            /**
051            * Returns the Spring bean ID for this bean.
052            *
053            * @return the Spring bean ID for this bean
054            */
055            public java.lang.String getBeanIdentifier();
056    
057            /**
058            * Sets the Spring bean ID for this bean.
059            *
060            * @param beanIdentifier the Spring bean ID for this bean
061            */
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            /**
115            * @deprecated As of 6.2.0, replaced by {@link #search(long[], String,
116            long[], int, int)}
117            */
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            /**
126            * @deprecated As of 6.2.0, replaced by {@link
127            #getVocabularyCategoriesDisplay(long, int, int,
128            OrderByComparator)}
129            */
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            /**
138            * @deprecated As of 6.2.0, replaced by {@link
139            #getVocabularyCategoriesDisplay(long, String, long, int, int,
140            OrderByComparator)}
141            */
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            /**
193            * @deprecated As of 6.2.0, replaced by {@link #
194            getVocabularyRootCategories(long, long, int, int,
195            OrderByComparator)}
196            */
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    }