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.service.BaseService;
024    
025    /**
026     * The interface for the asset category remote service.
027     *
028     * <p>
029     * 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.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see AssetCategoryServiceUtil
034     * @see com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
035     * @see com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
036     * @generated
037     */
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface AssetCategoryService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * 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.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
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            /**
072            * @deprecated As of 6.2.0, Replaced by {@link #deleteCategories(long[],
073            ServiceContext)}
074            */
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            /**
115            * @deprecated
116            */
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            /**
125            * @deprecated {@link #search(long[], String, 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            @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            /**
178            * @deprecated replaced by {@link #getVocabularyRootCategories(long, long,
179            int, int, OrderByComparator)}
180            */
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    }