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