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