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.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for AssetTag. This utility wraps
024     * {@link com.liferay.portlet.asset.service.impl.AssetTagServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetTagService
032     * @see com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class AssetTagServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.asset.model.AssetTag addTag(
044                    java.lang.String name, java.lang.String[] tagProperties,
045                    com.liferay.portal.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService().addTag(name, tagProperties, serviceContext);
048            }
049    
050            public static void deleteTag(long tagId)
051                    throws com.liferay.portal.kernel.exception.PortalException {
052                    getService().deleteTag(tagId);
053            }
054    
055            public static void deleteTags(long[] tagIds)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    getService().deleteTags(tagIds);
058            }
059    
060            /**
061            * Returns the Spring bean ID for this bean.
062            *
063            * @return the Spring bean ID for this bean
064            */
065            public static java.lang.String getBeanIdentifier() {
066                    return getService().getBeanIdentifier();
067            }
068    
069            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
070                    long groupId) {
071                    return getService().getGroupTags(groupId);
072            }
073    
074            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
075                    long groupId, int start, int end,
076                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
077                    return getService().getGroupTags(groupId, start, end, obc);
078            }
079    
080            public static int getGroupTagsCount(long groupId) {
081                    return getService().getGroupTagsCount(groupId);
082            }
083    
084            public static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
085                    long groupId, java.lang.String name, int start, int end) {
086                    return getService().getGroupTagsDisplay(groupId, name, start, end);
087            }
088    
089            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
090                    long[] groupIds) {
091                    return getService().getGroupsTags(groupIds);
092            }
093    
094            /**
095            * @deprecated As of 6.2.0, replaced by {@link #getGroupTagsDisplay(long,
096            String, int, int)}
097            */
098            @Deprecated
099            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
100                    long groupId, java.lang.String name, int start, int end)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return getService().getJSONGroupTags(groupId, name, start, end);
103            }
104    
105            public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    return getService().getTag(tagId);
108            }
109    
110            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
111                    java.lang.String className, long classPK)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    return getService().getTags(className, classPK);
114            }
115    
116            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
117                    long groupId, long classNameId, java.lang.String name) {
118                    return getService().getTags(groupId, classNameId, name);
119            }
120    
121            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
122                    long groupId, long classNameId, java.lang.String name, int start,
123                    int end,
124                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
125                    return getService().getTags(groupId, classNameId, name, start, end, obc);
126            }
127    
128            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
129                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
130                    int start, int end) {
131                    return getService().getTags(groupId, name, tagProperties, start, end);
132            }
133    
134            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
135                    long[] groupIds, java.lang.String name,
136                    java.lang.String[] tagProperties, int start, int end) {
137                    return getService().getTags(groupIds, name, tagProperties, start, end);
138            }
139    
140            public static int getTagsCount(long groupId, long classNameId,
141                    java.lang.String name) {
142                    return getService().getTagsCount(groupId, classNameId, name);
143            }
144    
145            public static int getTagsCount(long groupId, java.lang.String name) {
146                    return getService().getTagsCount(groupId, name);
147            }
148    
149            public static int getTagsCount(long groupId, java.lang.String name,
150                    java.lang.String[] tagProperties) {
151                    return getService().getTagsCount(groupId, name, tagProperties);
152            }
153    
154            public static void mergeTags(long fromTagId, long toTagId,
155                    boolean overrideProperties)
156                    throws com.liferay.portal.kernel.exception.PortalException {
157                    getService().mergeTags(fromTagId, toTagId, overrideProperties);
158            }
159    
160            public static void mergeTags(long[] fromTagIds, long toTagId,
161                    boolean overrideProperties)
162                    throws com.liferay.portal.kernel.exception.PortalException {
163                    getService().mergeTags(fromTagIds, toTagId, overrideProperties);
164            }
165    
166            public static com.liferay.portal.kernel.json.JSONArray search(
167                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
168                    int start, int end) {
169                    return getService().search(groupId, name, tagProperties, start, end);
170            }
171    
172            public static com.liferay.portal.kernel.json.JSONArray search(
173                    long[] groupIds, java.lang.String name,
174                    java.lang.String[] tagProperties, int start, int end) {
175                    return getService().search(groupIds, name, tagProperties, start, end);
176            }
177    
178            /**
179            * Sets the Spring bean ID for this bean.
180            *
181            * @param beanIdentifier the Spring bean ID for this bean
182            */
183            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
184                    getService().setBeanIdentifier(beanIdentifier);
185            }
186    
187            public static com.liferay.portlet.asset.model.AssetTag updateTag(
188                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
189                    com.liferay.portal.service.ServiceContext serviceContext)
190                    throws com.liferay.portal.kernel.exception.PortalException {
191                    return getService().updateTag(tagId, name, tagProperties, serviceContext);
192            }
193    
194            public static AssetTagService getService() {
195                    if (_service == null) {
196                            _service = (AssetTagService)PortalBeanLocatorUtil.locate(AssetTagService.class.getName());
197    
198                            ReferenceRegistry.registerReference(AssetTagServiceUtil.class,
199                                    "_service");
200                    }
201    
202                    return _service;
203            }
204    
205            /**
206             * @deprecated As of 6.2.0
207             */
208            @Deprecated
209            public void setService(AssetTagService service) {
210            }
211    
212            private static AssetTagService _service;
213    }