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.security.access.control.AccessControlled;
023    import com.liferay.portal.kernel.transaction.Isolation;
024    import com.liferay.portal.kernel.transaction.Propagation;
025    import com.liferay.portal.kernel.transaction.Transactional;
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                    long groupId, java.lang.String title,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws PortalException;
054    
055            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
056                    long groupId, 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 PortalException;
062    
063            /**
064            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
065            ServiceContext)}
066            */
067            @java.lang.Deprecated
068            public void deleteVocabularies(long[] vocabularyIds)
069                    throws PortalException;
070    
071            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
072                    long[] vocabularyIds,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws PortalException;
075    
076            public void deleteVocabulary(long vocabularyId) throws PortalException;
077    
078            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079            public com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
080                    long vocabularyId) throws PortalException;
081    
082            /**
083            * Returns the Spring bean ID for this bean.
084            *
085            * @return the Spring bean ID for this bean
086            */
087            public java.lang.String getBeanIdentifier();
088    
089            /**
090            * @deprecated As of 7.0.0, with no direct replacement
091            */
092            @java.lang.Deprecated
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
095                    long companyId) throws PortalException;
096    
097            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
099                    long groupId) throws PortalException;
100    
101            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
103                    long groupId, boolean createDefaultVocabulary)
104                    throws PortalException;
105    
106            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
108                    long groupId, boolean createDefaultVocabulary, int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
110                    throws PortalException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
114                    long groupId, java.lang.String name, int start, int end,
115                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
119                    long groupId, int start, int end,
120                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
124                    long[] groupIds);
125    
126            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127            public int getGroupVocabulariesCount(long groupId);
128    
129            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130            public int getGroupVocabulariesCount(long groupId, java.lang.String name);
131    
132            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133            public int getGroupVocabulariesCount(long[] groupIds);
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
137                    long groupId, java.lang.String name, int start, int end,
138                    boolean addDefaultVocabulary,
139                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
140                    throws PortalException;
141    
142            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
144                    long groupId, java.lang.String name, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
146                    throws PortalException;
147    
148            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
150                    long[] groupIds);
151    
152            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
154                    long[] groupIds, java.lang.String className);
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
158                    long[] groupIds, java.lang.String className, long classTypePK);
159    
160            /**
161            * @deprecated As of 6.2.0, with no direct replacement
162            */
163            @java.lang.Deprecated
164            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
166                    long groupId, java.lang.String name, int start, int end,
167                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
168                    throws PortalException;
169    
170            /**
171            * @deprecated As of 7.0.0, replaced by {@link
172            AssetUtil#filterVocabularyIds(PermissionChecker, long[])}
173            */
174            @java.lang.Deprecated
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
177                    long[] vocabularyIds) throws PortalException;
178    
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
181                    long vocabularyId) throws PortalException;
182    
183            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184            public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
185                    long groupId, java.lang.String title, int start, int end,
186                    boolean addDefaultVocabulary) throws PortalException;
187    
188            /**
189            * Sets the Spring bean ID for this bean.
190            *
191            * @param beanIdentifier the Spring bean ID for this bean
192            */
193            public void setBeanIdentifier(java.lang.String beanIdentifier);
194    
195            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
196                    long vocabularyId, java.lang.String title,
197                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
198                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
199                    java.lang.String settings,
200                    com.liferay.portal.service.ServiceContext serviceContext)
201                    throws PortalException;
202    }