001    /**
002     * Copyright (c) 2000-present 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    @AccessControlled
040    @JSONWebService
041    @ProviderType
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            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
051                    java.lang.String title,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException;
054    
055            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
056                    java.lang.String title,
057                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
058                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059                    java.lang.String settings,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException;
062    
063            /**
064            * @deprecated As of 6.1.0 {@link #addVocabulary(String, Map, Map, String,
065            ServiceContext)}
066            */
067            @java.lang.Deprecated
068            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
069                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
070                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
071                    java.lang.String settings,
072                    com.liferay.portal.service.ServiceContext serviceContext)
073                    throws com.liferay.portal.kernel.exception.PortalException;
074    
075            /**
076            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
077            ServiceContext)}
078            */
079            @java.lang.Deprecated
080            public void deleteVocabularies(long[] vocabularyIds)
081                    throws com.liferay.portal.kernel.exception.PortalException;
082    
083            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
084                    long[] vocabularyIds,
085                    com.liferay.portal.service.ServiceContext serviceContext)
086                    throws com.liferay.portal.kernel.exception.PortalException;
087    
088            public void deleteVocabulary(long vocabularyId)
089                    throws com.liferay.portal.kernel.exception.PortalException;
090    
091            /**
092            * Returns the Spring bean ID for this bean.
093            *
094            * @return the Spring bean ID for this bean
095            */
096            public java.lang.String getBeanIdentifier();
097    
098            /**
099            * @deprecated As of 7.0.0, with no direct replacement
100            */
101            @java.lang.Deprecated
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
104                    long companyId)
105                    throws com.liferay.portal.kernel.exception.PortalException;
106    
107            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
109                    long groupId)
110                    throws com.liferay.portal.kernel.exception.PortalException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
114                    long groupId, boolean createDefaultVocabulary)
115                    throws com.liferay.portal.kernel.exception.PortalException;
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
119                    long groupId, boolean createDefaultVocabulary, int start, int end,
120                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
121                    throws com.liferay.portal.kernel.exception.PortalException;
122    
123            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
125                    long groupId, java.lang.String name, int start, int end,
126                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
130                    long groupId, int start, int end,
131                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
132    
133            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
135                    long[] groupIds);
136    
137            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138            public int getGroupVocabulariesCount(long groupId);
139    
140            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141            public int getGroupVocabulariesCount(long groupId, java.lang.String name);
142    
143            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144            public int getGroupVocabulariesCount(long[] groupIds);
145    
146            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
148                    long groupId, java.lang.String name, int start, int end,
149                    boolean addDefaultVocabulary,
150                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
151                    throws com.liferay.portal.kernel.exception.PortalException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
155                    long groupId, java.lang.String name, int start, int end,
156                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
157                    throws com.liferay.portal.kernel.exception.PortalException;
158    
159            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
161                    long[] groupIds);
162    
163            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
165                    long[] groupIds, java.lang.String className);
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
169                    long[] groupIds, java.lang.String className, long classTypePK);
170    
171            /**
172            * @deprecated As of 6.2.0, with no direct replacement
173            */
174            @java.lang.Deprecated
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<com.liferay.portlet.asset.model.AssetVocabulary> obc)
179                    throws com.liferay.portal.kernel.exception.PortalException;
180    
181            /**
182            * @deprecated As of 7.0.0, replaced by {@link
183            #AssetUtil.filterVocabularyIds(PermissionChecker, long[])}
184            */
185            @java.lang.Deprecated
186            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
188                    long[] vocabularyIds)
189                    throws com.liferay.portal.kernel.exception.PortalException;
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    
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
198                    long groupId, java.lang.String title, int start, int end,
199                    boolean addDefaultVocabulary)
200                    throws com.liferay.portal.kernel.exception.PortalException;
201    
202            /**
203            * Sets the Spring bean ID for this bean.
204            *
205            * @param beanIdentifier the Spring bean ID for this bean
206            */
207            public void setBeanIdentifier(java.lang.String beanIdentifier);
208    
209            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
210                    long vocabularyId, java.lang.String title,
211                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
212                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
213                    java.lang.String settings,
214                    com.liferay.portal.service.ServiceContext serviceContext)
215                    throws com.liferay.portal.kernel.exception.PortalException;
216    
217            /**
218            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
219            String, ServiceContext)}
220            */
221            @java.lang.Deprecated
222            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
223                    long vocabularyId,
224                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
225                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
226                    java.lang.String settings,
227                    com.liferay.portal.service.ServiceContext serviceContext)
228                    throws com.liferay.portal.kernel.exception.PortalException;
229    }