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            * @deprecated As of 7.0.0, with no direct replacement
084            */
085            @java.lang.Deprecated
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
088                    long companyId) throws PortalException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
092                    long groupId) throws PortalException;
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
096                    long groupId, boolean createDefaultVocabulary)
097                    throws PortalException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
101                    long groupId, boolean createDefaultVocabulary, int start, int end,
102                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
103                    throws PortalException;
104    
105            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
107                    long groupId, java.lang.String name, int start, int end,
108                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
109    
110            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
112                    long groupId, int start, int end,
113                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
114    
115            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
117                    long[] groupIds);
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public int getGroupVocabulariesCount(long groupId);
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public int getGroupVocabulariesCount(long groupId, java.lang.String name);
124    
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public int getGroupVocabulariesCount(long[] groupIds);
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
130                    long groupId, java.lang.String name, int start, int end,
131                    boolean addDefaultVocabulary,
132                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
133                    throws PortalException;
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                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
139                    throws PortalException;
140    
141            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
143                    long[] groupIds);
144    
145            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
147                    long[] groupIds, java.lang.String className);
148    
149            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
151                    long[] groupIds, java.lang.String className, long classTypePK);
152    
153            /**
154            * @deprecated As of 6.2.0, with no direct replacement
155            */
156            @java.lang.Deprecated
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
159                    long groupId, java.lang.String name, int start, int end,
160                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
161                    throws PortalException;
162    
163            /**
164            * Returns the OSGi service identifier.
165            *
166            * @return the OSGi service identifier
167            */
168            public java.lang.String getOSGiServiceIdentifier();
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, boolean addDefaultVocabulary,
186                    int start, int end) throws PortalException;
187    
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
190                    long groupId, java.lang.String title, boolean addDefaultVocabulary,
191                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
192                    throws PortalException;
193    
194            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
195                    long vocabularyId, java.lang.String title,
196                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
197                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
198                    java.lang.String settings,
199                    com.liferay.portal.service.ServiceContext serviceContext)
200                    throws PortalException;
201    }