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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.security.ac.AccessControlled;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for AssetVocabulary. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see AssetVocabularyServiceUtil
035     * @see com.liferay.portlet.asset.service.base.AssetVocabularyServiceBaseImpl
036     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl
037     * @generated
038     */
039    @ProviderType
040    @AccessControlled
041    @JSONWebService
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface AssetVocabularyService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * 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.
049             */
050    
051            /**
052            * Returns the Spring bean ID for this bean.
053            *
054            * @return the Spring bean ID for this bean
055            */
056            public java.lang.String getBeanIdentifier();
057    
058            /**
059            * Sets the Spring bean ID for this bean.
060            *
061            * @param beanIdentifier the Spring bean ID for this bean
062            */
063            public void setBeanIdentifier(java.lang.String beanIdentifier);
064    
065            /**
066            * @deprecated As of 6.1.0 {@link #addVocabulary(String, Map, Map, String,
067            ServiceContext)}
068            */
069            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
070                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
071                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
072                    java.lang.String settings,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
078                    java.lang.String title,
079                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
080                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
081                    java.lang.String settings,
082                    com.liferay.portal.service.ServiceContext serviceContext)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
087                    java.lang.String title,
088                    com.liferay.portal.service.ServiceContext serviceContext)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            /**
093            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
094            ServiceContext)}
095            */
096            public void deleteVocabularies(long[] vocabularyIds)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
101                    long[] vocabularyIds,
102                    com.liferay.portal.service.ServiceContext serviceContext)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException;
105    
106            public void deleteVocabulary(long vocabularyId)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
112                    long companyId)
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.AssetVocabulary> getGroupsVocabularies(
118                    long[] groupIds)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
124                    long[] groupIds, java.lang.String className)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
130                    long groupId)
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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
136                    long groupId, boolean createDefaultVocabulary)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
142                    long groupId, int start, int end,
143                    com.liferay.portal.kernel.util.OrderByComparator obc)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
148                    long groupId, java.lang.String name, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator obc)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153            public int getGroupVocabulariesCount(long groupId)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public int getGroupVocabulariesCount(long groupId, java.lang.String name)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
162                    long groupId, java.lang.String title, int start, int end,
163                    boolean addDefaultVocabulary,
164                    com.liferay.portal.kernel.util.OrderByComparator obc)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException;
167    
168            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
170                    long groupId, java.lang.String name, int start, int end,
171                    com.liferay.portal.kernel.util.OrderByComparator obc)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            /**
176            * @deprecated As of 6.2.0, with no direct replacement
177            */
178            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
180                    long groupId, java.lang.String name, 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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
187                    long[] vocabularyIds)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException;
190    
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
193                    long vocabularyId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException;
196    
197            /**
198            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
199            String, ServiceContext)}
200            */
201            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
202                    long vocabularyId,
203                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
204                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
205                    java.lang.String settings,
206                    com.liferay.portal.service.ServiceContext serviceContext)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException;
209    
210            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
211                    long vocabularyId, java.lang.String title,
212                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
213                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
214                    java.lang.String settings,
215                    com.liferay.portal.service.ServiceContext serviceContext)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException;
218    }