001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    import com.liferay.portal.service.BaseService;
024    
025    /**
026     * The interface for the asset vocabulary remote service.
027     *
028     * <p>
029     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see AssetVocabularyServiceUtil
034     * @see com.liferay.portlet.asset.service.base.AssetVocabularyServiceBaseImpl
035     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl
036     * @generated
037     */
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface AssetVocabularyService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * 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.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public void setBeanIdentifier(java.lang.String beanIdentifier);
061    
062            /**
063            * @deprecated As of 6.1.0 {@link #addVocabulary(String, Map, Map, String,
064            ServiceContext)}
065            */
066            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
067                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
068                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
069                    java.lang.String settings,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
075                    java.lang.String title,
076                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
077                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
078                    java.lang.String settings,
079                    com.liferay.portal.service.ServiceContext serviceContext)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
085            ServiceContext)}
086            */
087            public void deleteVocabularies(long[] vocabularyIds)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
092                    long[] vocabularyIds,
093                    com.liferay.portal.service.ServiceContext serviceContext)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public void deleteVocabulary(long vocabularyId)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
103                    long companyId)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    
107            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
109                    long[] groupIds)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
115                    long[] groupIds, java.lang.String className)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
121                    long groupId)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
127                    long groupId, boolean createDefaultVocabulary)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
133                    long groupId, int start, int end,
134                    com.liferay.portal.kernel.util.OrderByComparator obc)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
139                    long groupId, java.lang.String name, int start, int end,
140                    com.liferay.portal.kernel.util.OrderByComparator obc)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144            public int getGroupVocabulariesCount(long groupId)
145                    throws com.liferay.portal.kernel.exception.SystemException;
146    
147            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148            public int getGroupVocabulariesCount(long groupId, java.lang.String name)
149                    throws com.liferay.portal.kernel.exception.SystemException;
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 obc)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
161                    long groupId, java.lang.String name, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator obc)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167            public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabulariesDisplay(
168                    long groupId, java.lang.String name, int start, int end,
169                    boolean addDefaultVocabulary,
170                    com.liferay.portal.kernel.util.OrderByComparator obc)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException;
173    
174            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
176                    long[] vocabularyIds)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException;
179    
180            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
182                    long vocabularyId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException;
185    
186            /**
187            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
188            String, ServiceContext)}
189            */
190            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
191                    long vocabularyId,
192                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
193                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
194                    java.lang.String settings,
195                    com.liferay.portal.service.ServiceContext serviceContext)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException;
198    
199            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
200                    long vocabularyId, java.lang.String title,
201                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
202                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
203                    java.lang.String settings,
204                    com.liferay.portal.service.ServiceContext serviceContext)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException;
207    }