001    /**
002     * Copyright (c) 2000-present 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    @AccessControlled
040    @JSONWebService
041    @ProviderType
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            public com.liferay.portlet.asset.model.AssetTag addTag(
051                    java.lang.String name, java.lang.String[] tagProperties,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException;
054    
055            public void deleteTag(long tagId)
056                    throws com.liferay.portal.kernel.exception.PortalException;
057    
058            public void deleteTags(long[] tagIds)
059                    throws com.liferay.portal.kernel.exception.PortalException;
060    
061            /**
062            * Returns the Spring bean ID for this bean.
063            *
064            * @return the Spring bean ID for this bean
065            */
066            public java.lang.String getBeanIdentifier();
067    
068            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
070                    long groupId);
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
074                    long groupId, int start, int end,
075                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public int getGroupTagsCount(long groupId);
079    
080            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081            public com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
082                    long groupId, java.lang.String name, int start, int end);
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
086                    long[] groupIds);
087    
088            /**
089            * @deprecated As of 6.2.0, replaced by {@link #getGroupTagsDisplay(long,
090            String, int, int)}
091            */
092            @java.lang.Deprecated
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
095                    long groupId, java.lang.String name, int start, int end)
096                    throws com.liferay.portal.kernel.exception.PortalException;
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
100                    throws com.liferay.portal.kernel.exception.PortalException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
104                    java.lang.String className, long classPK)
105                    throws com.liferay.portal.kernel.exception.PortalException;
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    
111            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
113                    long groupId, long classNameId, java.lang.String name, int start,
114                    int end,
115                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
119                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
120                    int start, int end);
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
124                    long[] groupIds, java.lang.String name,
125                    java.lang.String[] tagProperties, int start, int end);
126    
127            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128            public int getTagsCount(long groupId, long classNameId,
129                    java.lang.String name);
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public int getTagsCount(long groupId, java.lang.String name);
133    
134            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135            public int getTagsCount(long groupId, java.lang.String name,
136                    java.lang.String[] tagProperties);
137    
138            public void mergeTags(long fromTagId, long toTagId,
139                    boolean overrideProperties)
140                    throws com.liferay.portal.kernel.exception.PortalException;
141    
142            public void mergeTags(long[] fromTagIds, long toTagId,
143                    boolean overrideProperties)
144                    throws com.liferay.portal.kernel.exception.PortalException;
145    
146            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
148                    java.lang.String name, java.lang.String[] tagProperties, int start,
149                    int end);
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
153                    java.lang.String name, java.lang.String[] tagProperties, int start,
154                    int end);
155    
156            /**
157            * Sets the Spring bean ID for this bean.
158            *
159            * @param beanIdentifier the Spring bean ID for this bean
160            */
161            public void setBeanIdentifier(java.lang.String beanIdentifier);
162    
163            public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
164                    java.lang.String name, java.lang.String[] tagProperties,
165                    com.liferay.portal.service.ServiceContext serviceContext)
166                    throws com.liferay.portal.kernel.exception.PortalException;
167    }