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 tag 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 AssetTagServiceUtil
034     * @see com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
035     * @see com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
036     * @generated
037     */
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.portal.kernel.json.JSONObject getJSONGroupTags(
098                    long groupId, java.lang.String name, int start, int end)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
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.AssetTag> getTags(
109                    long groupId, long classNameId, java.lang.String name)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
114                    long groupId, long classNameId, java.lang.String name, int start,
115                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
116                    throws 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, java.lang.String name, java.lang.String[] tagProperties,
121                    int start, int end)
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[] groupIds, java.lang.String name,
127                    java.lang.String[] tagProperties, int start, int end)
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                    java.lang.String className, long classPK)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137            public int getTagsCount(long groupId, long classNameId,
138                    java.lang.String name)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142            public int getTagsCount(long groupId, java.lang.String name)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146            public int getTagsCount(long groupId, java.lang.String name,
147                    java.lang.String[] tagProperties)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            public void mergeTags(long fromTagId, long toTagId,
151                    boolean overrideProperties)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException;
154    
155            public void mergeTags(long[] fromTagIds, long toTagId,
156                    boolean overrideProperties)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
162                    java.lang.String name, java.lang.String[] tagProperties, int start,
163                    int end) throws com.liferay.portal.kernel.exception.SystemException;
164    
165            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
167                    java.lang.String name, java.lang.String[] tagProperties, int start,
168                    int end) throws com.liferay.portal.kernel.exception.SystemException;
169    
170            public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
171                    java.lang.String name, java.lang.String[] tagProperties,
172                    com.liferay.portal.service.ServiceContext serviceContext)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException;
175    }