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            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
064                    long[] vocabularyIds,
065                    com.liferay.portal.service.ServiceContext serviceContext)
066                    throws PortalException;
067    
068            public void deleteVocabulary(long vocabularyId) throws PortalException;
069    
070            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071            public com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
072                    long vocabularyId) throws PortalException;
073    
074            /**
075            * @deprecated As of 7.0.0, with no direct replacement
076            */
077            @java.lang.Deprecated
078            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
080                    long companyId) throws PortalException;
081    
082            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
084                    long groupId) throws PortalException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
088                    long groupId, boolean createDefaultVocabulary)
089                    throws PortalException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
093                    long groupId, boolean createDefaultVocabulary, int start, int end,
094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
095                    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, java.lang.String name, int start, int end,
100                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
104                    long groupId, int start, int end,
105                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
106    
107            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
109                    long[] groupIds);
110    
111            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112            public int getGroupVocabulariesCount(long groupId);
113    
114            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115            public int getGroupVocabulariesCount(long groupId, java.lang.String name);
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public int getGroupVocabulariesCount(long[] groupIds);
119    
120            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
122                    long groupId, java.lang.String name, int start, int end,
123                    boolean addDefaultVocabulary,
124                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
125                    throws PortalException;
126    
127            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128            public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
129                    long groupId, java.lang.String name, int start, int end,
130                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
131                    throws PortalException;
132    
133            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
135                    long[] groupIds);
136    
137            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
139                    long[] groupIds, java.lang.String className);
140    
141            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
143                    long[] groupIds, java.lang.String className, long classTypePK);
144    
145            /**
146            * Returns the OSGi service identifier.
147            *
148            * @return the OSGi service identifier
149            */
150            public java.lang.String getOSGiServiceIdentifier();
151    
152            /**
153            * @deprecated As of 7.0.0, replaced by {@link
154            AssetUtil#filterVocabularyIds(PermissionChecker, long[])}
155            */
156            @java.lang.Deprecated
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
159                    long[] vocabularyIds) throws PortalException;
160    
161            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
163                    long vocabularyId) throws PortalException;
164    
165            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166            public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
167                    long groupId, java.lang.String title, boolean addDefaultVocabulary,
168                    int start, int end) throws PortalException;
169    
170            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171            public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
172                    long groupId, java.lang.String title, boolean addDefaultVocabulary,
173                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
174                    throws PortalException;
175    
176            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
177                    long vocabularyId, java.lang.String title,
178                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
179                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
180                    java.lang.String settings,
181                    com.liferay.portal.service.ServiceContext serviceContext)
182                    throws PortalException;
183    }