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 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.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.security.ac.AccessControlled;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for AssetTag. 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 AssetTagServiceUtil
035     * @see com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
036     * @see com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
037     * @generated
038     */
039    @ProviderType
040    @AccessControlled
041    @JSONWebService
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface AssetTagService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * 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.
049             */
050    
051            /**
052            * Returns the Spring bean ID for this bean.
053            *
054            * @return the Spring bean ID for this bean
055            */
056            public java.lang.String getBeanIdentifier();
057    
058            /**
059            * Sets the Spring bean ID for this bean.
060            *
061            * @param beanIdentifier the Spring bean ID for this bean
062            */
063            public void setBeanIdentifier(java.lang.String beanIdentifier);
064    
065            public com.liferay.portlet.asset.model.AssetTag addTag(
066                    java.lang.String name, java.lang.String[] tagProperties,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            public void deleteTag(long tagId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            public void deleteTags(long[] tagIds)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
081                    long[] groupIds)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
086                    long groupId)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
091                    long groupId, int start, int end,
092                    com.liferay.portal.kernel.util.OrderByComparator obc)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public int getGroupTagsCount(long groupId)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
101                    long groupId, java.lang.String name, int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * @deprecated As of 6.2.0, replaced by {@link #getGroupTagsDisplay(long,
106            String, int, int)}
107            */
108            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109            public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
110                    long groupId, java.lang.String name, int start, int end)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
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.AssetTag> getTags(
121                    long groupId, long classNameId, java.lang.String name)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
126                    long groupId, long classNameId, java.lang.String name, int start,
127                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
132                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
133                    int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
138                    long[] groupIds, java.lang.String name,
139                    java.lang.String[] tagProperties, int start, int end)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
144                    java.lang.String className, long classPK)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException;
147    
148            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149            public int getTagsCount(long groupId, long classNameId,
150                    java.lang.String name)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public int getTagsCount(long groupId, java.lang.String name)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public int getTagsCount(long groupId, java.lang.String name,
159                    java.lang.String[] tagProperties)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public void mergeTags(long fromTagId, long toTagId,
163                    boolean overrideProperties)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            public void mergeTags(long[] fromTagIds, long toTagId,
168                    boolean overrideProperties)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
174                    java.lang.String name, java.lang.String[] tagProperties, int start,
175                    int end) throws com.liferay.portal.kernel.exception.SystemException;
176    
177            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
179                    java.lang.String name, java.lang.String[] tagProperties, int start,
180                    int end) throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
183                    java.lang.String name, java.lang.String[] tagProperties,
184                    com.liferay.portal.service.ServiceContext serviceContext)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    }