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 vocabulary 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 AssetVocabularyServiceUtil
033     * @see com.liferay.portlet.asset.service.base.AssetVocabularyServiceBaseImpl
034     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface AssetVocabularyService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link AssetVocabularyServiceUtil} to access the asset vocabulary remote service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046    
047            /**
048            * @deprecated
049            */
050            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
051                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
052                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
053                    java.lang.String settings,
054                    com.liferay.portal.service.ServiceContext serviceContext)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException;
057    
058            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
059                    java.lang.String title,
060                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    java.lang.String settings,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public void deleteVocabularies(long[] vocabularyIds)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            public void deleteVocabulary(long vocabularyId)
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.AssetVocabulary> getCompanyVocabularies(
077                    long companyId)
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.AssetVocabulary> getGroupsVocabularies(
083                    long[] groupIds)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
089                    long[] groupIds, java.lang.String className)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
095                    long groupId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
101                    long groupId, int start, int end,
102                    com.liferay.portal.kernel.util.OrderByComparator obc)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
107                    long groupId, java.lang.String name, int start, int end,
108                    com.liferay.portal.kernel.util.OrderByComparator obc)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112            public int getGroupVocabulariesCount(long groupId)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116            public int getGroupVocabulariesCount(long groupId, java.lang.String name)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
121                    long groupId, java.lang.String name, int start, int end,
122                    com.liferay.portal.kernel.util.OrderByComparator obc)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
128                    long[] vocabularyIds)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException;
131    
132            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
134                    long vocabularyId)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    
138            /**
139            * @deprecated
140            */
141            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
142                    long vocabularyId,
143                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
144                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
145                    java.lang.String settings,
146                    com.liferay.portal.service.ServiceContext serviceContext)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException;
149    
150            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
151                    long vocabularyId, java.lang.String title,
152                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
153                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
154                    java.lang.String settings,
155                    com.liferay.portal.service.ServiceContext serviceContext)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    }