001    /**
002     * Copyright (c) 2000-2012 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    
024    /**
025     * The interface for the asset tag remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
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    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface AssetTagService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
046            public com.liferay.portlet.asset.model.AssetTag addTag(
047                    java.lang.String name, java.lang.String[] tagProperties,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            public void deleteTag(long tagId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException;
055    
056            public void deleteTags(long[] tagIds)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException;
059    
060            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
062                    long[] groupIds)
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
067                    long groupId)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
072                    long groupId, int start, int end,
073                    com.liferay.portal.kernel.util.OrderByComparator obc)
074                    throws com.liferay.portal.kernel.exception.SystemException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public int getGroupTagsCount(long groupId)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081            public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
082                    long groupId, java.lang.String name, int start, int end)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
093                    long groupId, long classNameId, java.lang.String name)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
098                    long groupId, long classNameId, java.lang.String name, int start,
099                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
104                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
105                    int start, int end)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
110                    java.lang.String className, long classPK)
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 int getTagsCount(long groupId, long classNameId,
116                    java.lang.String name)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public int getTagsCount(long groupId, java.lang.String name)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124            public int getTagsCount(long groupId, java.lang.String name,
125                    java.lang.String[] tagProperties)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public void mergeTags(long fromTagId, long toTagId,
129                    boolean overrideProperties)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException;
132    
133            public void mergeTags(long[] fromTagIds, long toTagId,
134                    boolean overrideProperties)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    
138            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
140                    java.lang.String name, java.lang.String[] tagProperties, int start,
141                    int end) throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
144                    java.lang.String name, java.lang.String[] tagProperties,
145                    com.liferay.portal.service.ServiceContext serviceContext)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException;
148    }