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.security.ac.AccessControlled;
024    import com.liferay.portal.service.BaseService;
025    
026    /**
027     * Provides the remote service interface for AssetTag. Methods of this
028     * service are expected to have security checks based on the propagated JAAS
029     * credentials because this service can be accessed remotely.
030     *
031     * @author Brian Wing Shun Chan
032     * @see AssetTagServiceUtil
033     * @see com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
034     * @see com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
035     * @generated
036     */
037    @AccessControlled
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface AssetTagService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link AssetTagServiceUtil} to access the asset tag remote service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagServiceImpl} 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            public com.liferay.portlet.asset.model.AssetTag addTag(
063                    java.lang.String name, java.lang.String[] tagProperties,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException;
067    
068            public void deleteTag(long tagId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            public void deleteTags(long[] tagIds)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
078                    long[] groupIds)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
083                    long groupId)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
088                    long groupId, int start, int end,
089                    com.liferay.portal.kernel.util.OrderByComparator obc)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093            public int getGroupTagsCount(long groupId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
098                    long groupId, java.lang.String name, int start, int end)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * @deprecated As of 6.2.0, replaced by {@link #getGroupTagsDisplay(long,
103            String, int, int)}
104            */
105            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106            public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
107                    long groupId, java.lang.String name, int start, int end)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    
111            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
118                    long groupId, long classNameId, java.lang.String name)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
123                    long groupId, long classNameId, java.lang.String name, int start,
124                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    
127            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
129                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
130                    int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
135                    long[] groupIds, java.lang.String name,
136                    java.lang.String[] tagProperties, int start, int end)
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
141                    java.lang.String className, long classPK)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException;
144    
145            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146            public int getTagsCount(long groupId, long classNameId,
147                    java.lang.String name)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151            public int getTagsCount(long groupId, java.lang.String name)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155            public int getTagsCount(long groupId, java.lang.String name,
156                    java.lang.String[] tagProperties)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public void mergeTags(long fromTagId, long toTagId,
160                    boolean overrideProperties)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException;
163    
164            public void mergeTags(long[] fromTagIds, long toTagId,
165                    boolean overrideProperties)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
171                    java.lang.String name, java.lang.String[] tagProperties, int start,
172                    int end) throws com.liferay.portal.kernel.exception.SystemException;
173    
174            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
176                    java.lang.String name, java.lang.String[] tagProperties, int start,
177                    int end) throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
180                    java.lang.String name, java.lang.String[] tagProperties,
181                    com.liferay.portal.service.ServiceContext serviceContext)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException;
184    }