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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
061                    long groupId);
062    
063            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
065                    long groupId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
067    
068            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069            public int getGroupTagsCount(long groupId);
070    
071            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072            public com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
073                    long groupId, java.lang.String name, int start, int end);
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
077                    long[] groupIds);
078    
079            /**
080            * @deprecated As of 6.2.0, replaced by {@link #getGroupTagsDisplay(long,
081            String, int, int)}
082            */
083            @java.lang.Deprecated
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
086                    long groupId, java.lang.String name, int start, int end)
087                    throws PortalException;
088    
089            /**
090            * Returns the OSGi service identifier.
091            *
092            * @return the OSGi service identifier
093            */
094            public java.lang.String getOSGiServiceIdentifier();
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 groupId, java.lang.String name, int start, int end,
121                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
122    
123            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
125                    long[] groupIds, java.lang.String name, int start, int end);
126    
127            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
129                    long[] groupIds, java.lang.String name, int start, int end,
130                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
131    
132            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133            public int getTagsCount(long groupId, java.lang.String name);
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public int getVisibleAssetsTagsCount(long groupId, long classNameId,
137                    java.lang.String name);
138    
139            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140            public int getVisibleAssetsTagsCount(long groupId, java.lang.String name);
141    
142            public void mergeTags(long fromTagId, long toTagId)
143                    throws PortalException;
144    
145            public void mergeTags(long[] fromTagIds, long toTagId)
146                    throws PortalException;
147    
148            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
150                    java.lang.String name, int start, int end);
151    
152            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
154                    java.lang.String name, int start, int end);
155    
156            public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
157                    java.lang.String name,
158                    com.liferay.portal.service.ServiceContext serviceContext)
159                    throws PortalException;
160    }