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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
093                    long vocabularyId)
094                    throws com.liferay.portal.kernel.exception.PortalException;
095    
096            /**
097            * Returns the Spring bean ID for this bean.
098            *
099            * @return the Spring bean ID for this bean
100            */
101            public java.lang.String getBeanIdentifier();
102    
103            /**
104            * @deprecated As of 7.0.0, with no direct replacement
105            */
106            @java.lang.Deprecated
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    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
114                    long groupId)
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)
120                    throws com.liferay.portal.kernel.exception.PortalException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
124                    long groupId, boolean createDefaultVocabulary, int start, int end,
125                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
126                    throws com.liferay.portal.kernel.exception.PortalException;
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
130                    long groupId, java.lang.String name, 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 groupId, int start, int end,
136                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
137    
138            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
140                    long[] groupIds);
141    
142            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143            public int getGroupVocabulariesCount(long groupId);
144    
145            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146            public int getGroupVocabulariesCount(long groupId, java.lang.String name);
147    
148            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149            public int getGroupVocabulariesCount(long[] groupIds);
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
153                    long groupId, java.lang.String name, int start, int end,
154                    boolean addDefaultVocabulary,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
156                    throws com.liferay.portal.kernel.exception.PortalException;
157    
158            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
160                    long groupId, java.lang.String name, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
162                    throws com.liferay.portal.kernel.exception.PortalException;
163    
164            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
166                    long[] groupIds);
167    
168            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
170                    long[] groupIds, java.lang.String className);
171    
172            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
174                    long[] groupIds, java.lang.String className, long classTypePK);
175    
176            /**
177            * @deprecated As of 6.2.0, with no direct replacement
178            */
179            @java.lang.Deprecated
180            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
182                    long groupId, java.lang.String name, int start, int end,
183                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
184                    throws com.liferay.portal.kernel.exception.PortalException;
185    
186            /**
187            * @deprecated As of 7.0.0, replaced by {@link
188            #AssetUtil.filterVocabularyIds(PermissionChecker, long[])}
189            */
190            @java.lang.Deprecated
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
193                    long[] vocabularyIds)
194                    throws com.liferay.portal.kernel.exception.PortalException;
195    
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
198                    long vocabularyId)
199                    throws com.liferay.portal.kernel.exception.PortalException;
200    
201            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202            public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
203                    long groupId, java.lang.String title, int start, int end,
204                    boolean addDefaultVocabulary)
205                    throws com.liferay.portal.kernel.exception.PortalException;
206    
207            /**
208            * Sets the Spring bean ID for this bean.
209            *
210            * @param beanIdentifier the Spring bean ID for this bean
211            */
212            public void setBeanIdentifier(java.lang.String beanIdentifier);
213    
214            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
215                    long vocabularyId, java.lang.String title,
216                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
217                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
218                    java.lang.String settings,
219                    com.liferay.portal.service.ServiceContext serviceContext)
220                    throws com.liferay.portal.kernel.exception.PortalException;
221    
222            /**
223            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
224            String, ServiceContext)}
225            */
226            @java.lang.Deprecated
227            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
228                    long vocabularyId,
229                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
230                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
231                    java.lang.String settings,
232                    com.liferay.portal.service.ServiceContext serviceContext)
233                    throws com.liferay.portal.kernel.exception.PortalException;
234    }