001    /**
002     * Copyright (c) 2000-2012 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    
024    /**
025     * The interface for the asset category remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see AssetCategoryServiceUtil
033     * @see com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
034     * @see com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface AssetCategoryService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
046            public com.liferay.portlet.asset.model.AssetCategory addCategory(
047                    long parentCategoryId,
048                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
049                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
050                    long vocabularyId, java.lang.String[] categoryProperties,
051                    com.liferay.portal.service.ServiceContext serviceContext)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException;
054    
055            public void deleteCategories(long[] categoryIds)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException;
058    
059            public void deleteCategory(long categoryId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
065                    java.lang.String className, long classPK)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException;
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public com.liferay.portlet.asset.model.AssetCategory getCategory(
071                    long categoryId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
077                    long parentCategoryId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
083                    long parentCategoryId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator obc)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089            public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
090                    long groupId, java.lang.String keywords, long vocabularyId, int start,
091                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
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.portal.kernel.json.JSONObject getJSONVocabularyCategories(
097                    long groupId, java.lang.String name, long vocabularyId, int start,
098                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
104                    long vocabularyId, int start, int end,
105                    com.liferay.portal.kernel.util.OrderByComparator obc)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
111                    long parentCategoryId, long vocabularyId, int start, int end,
112                    com.liferay.portal.kernel.util.OrderByComparator obc)
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> getVocabularyCategories(
118                    long groupId, java.lang.String name, long vocabularyId, int start,
119                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127            public int getVocabularyCategoriesCount(long groupId,
128                    java.lang.String name, long vocabularyId)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
133                    long vocabularyId, int start, int end,
134                    com.liferay.portal.kernel.util.OrderByComparator obc)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    
138            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
139                    long categoryId, long parentCategoryId, long vocabularyId,
140                    com.liferay.portal.service.ServiceContext serviceContext)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
146                    long groupId, java.lang.String keywords, long vocabularyId, int start,
147                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException;
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
153                    java.lang.String name, java.lang.String[] categoryProperties,
154                    int start, int end)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException;
157    
158            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
159                    long categoryId, long parentCategoryId,
160                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
161                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
162                    long vocabularyId, java.lang.String[] categoryProperties,
163                    com.liferay.portal.service.ServiceContext serviceContext)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    }