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     * Provides the remote service interface for AssetVocabulary. Methods of this
028     * service are expected to have security checks based on the propagated JAAS
029     * credentials because this service can be accessed remotely.
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    @AccessControlled
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface AssetVocabularyService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * 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.
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            /**
063            * @deprecated As of 6.1.0 {@link #addVocabulary(String, Map, Map, String,
064            ServiceContext)}
065            */
066            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
067                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
068                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
069                    java.lang.String settings,
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.AssetVocabulary addVocabulary(
075                    java.lang.String title,
076                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
077                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
078                    java.lang.String settings,
079                    com.liferay.portal.service.ServiceContext serviceContext)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
084                    java.lang.String title,
085                    com.liferay.portal.service.ServiceContext serviceContext)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            /**
090            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
091            ServiceContext)}
092            */
093            public void deleteVocabularies(long[] vocabularyIds)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
098                    long[] vocabularyIds,
099                    com.liferay.portal.service.ServiceContext serviceContext)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            public void deleteVocabulary(long vocabularyId)
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.AssetVocabulary> getCompanyVocabularies(
109                    long companyId)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
115                    long[] groupIds)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
121                    long[] groupIds, java.lang.String className)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
127                    long groupId)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
133                    long groupId, boolean createDefaultVocabulary)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
139                    long groupId, int start, int end,
140                    com.liferay.portal.kernel.util.OrderByComparator obc)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
145                    long groupId, java.lang.String name, int start, int end,
146                    com.liferay.portal.kernel.util.OrderByComparator obc)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150            public int getGroupVocabulariesCount(long groupId)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public int getGroupVocabulariesCount(long groupId, java.lang.String name)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
159                    long groupId, java.lang.String name, int start, int end,
160                    boolean addDefaultVocabulary,
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 com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
167                    long groupId, java.lang.String name, 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            /**
173            * @deprecated As of 6.2.0, with no direct replacement
174            */
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
177                    long groupId, java.lang.String name, int start, int end,
178                    com.liferay.portal.kernel.util.OrderByComparator obc)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException;
181    
182            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
184                    long[] vocabularyIds)
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 com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
190                    long vocabularyId)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
196            String, ServiceContext)}
197            */
198            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
199                    long vocabularyId,
200                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
201                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
202                    java.lang.String settings,
203                    com.liferay.portal.service.ServiceContext serviceContext)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException;
206    
207            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
208                    long vocabularyId, java.lang.String title,
209                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
210                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
211                    java.lang.String settings,
212                    com.liferay.portal.service.ServiceContext serviceContext)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException;
215    }