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.asset.kernel.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.asset.kernel.model.AssetTag addTag(long groupId,
044                    java.lang.String name,
045                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService().addTag(groupId, name, 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            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(
061                    long groupId) {
062                    return getService().getGroupTags(groupId);
063            }
064    
065            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(
066                    long groupId, int start, int end,
067                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> obc) {
068                    return getService().getGroupTags(groupId, start, end, obc);
069            }
070    
071            public static int getGroupTagsCount(long groupId) {
072                    return getService().getGroupTagsCount(groupId);
073            }
074    
075            public static com.liferay.asset.kernel.model.AssetTagDisplay getGroupTagsDisplay(
076                    long groupId, java.lang.String name, int start, int end) {
077                    return getService().getGroupTagsDisplay(groupId, name, start, end);
078            }
079    
080            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupsTags(
081                    long[] groupIds) {
082                    return getService().getGroupsTags(groupIds);
083            }
084    
085            /**
086            * Returns the OSGi service identifier.
087            *
088            * @return the OSGi service identifier
089            */
090            public static java.lang.String getOSGiServiceIdentifier() {
091                    return getService().getOSGiServiceIdentifier();
092            }
093    
094            public static com.liferay.asset.kernel.model.AssetTag getTag(long tagId)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    return getService().getTag(tagId);
097            }
098    
099            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
100                    java.lang.String className, long classPK) {
101                    return getService().getTags(className, classPK);
102            }
103    
104            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
105                    long groupId, long classNameId, java.lang.String name) {
106                    return getService().getTags(groupId, classNameId, name);
107            }
108    
109            public static java.util.List<com.liferay.asset.kernel.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.asset.kernel.model.AssetTag> obc) {
113                    return getService().getTags(groupId, classNameId, name, start, end, obc);
114            }
115    
116            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
117                    long groupId, java.lang.String name, int start, int end) {
118                    return getService().getTags(groupId, name, start, end);
119            }
120    
121            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
122                    long groupId, java.lang.String name, int start, int end,
123                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> obc) {
124                    return getService().getTags(groupId, name, start, end, obc);
125            }
126    
127            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
128                    long[] groupIds, java.lang.String name, int start, int end) {
129                    return getService().getTags(groupIds, name, start, end);
130            }
131    
132            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
133                    long[] groupIds, java.lang.String name, int start, int end,
134                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> obc) {
135                    return getService().getTags(groupIds, name, start, end, obc);
136            }
137    
138            public static int getTagsCount(long groupId, java.lang.String name) {
139                    return getService().getTagsCount(groupId, name);
140            }
141    
142            public static int getVisibleAssetsTagsCount(long groupId, long classNameId,
143                    java.lang.String name) {
144                    return getService().getVisibleAssetsTagsCount(groupId, classNameId, name);
145            }
146    
147            public static int getVisibleAssetsTagsCount(long groupId,
148                    java.lang.String name) {
149                    return getService().getVisibleAssetsTagsCount(groupId, name);
150            }
151    
152            public static void mergeTags(long fromTagId, long toTagId)
153                    throws com.liferay.portal.kernel.exception.PortalException {
154                    getService().mergeTags(fromTagId, toTagId);
155            }
156    
157            public static void mergeTags(long[] fromTagIds, long toTagId)
158                    throws com.liferay.portal.kernel.exception.PortalException {
159                    getService().mergeTags(fromTagIds, toTagId);
160            }
161    
162            public static com.liferay.portal.kernel.json.JSONArray search(
163                    long groupId, java.lang.String name, int start, int end) {
164                    return getService().search(groupId, name, start, end);
165            }
166    
167            public static com.liferay.portal.kernel.json.JSONArray search(
168                    long[] groupIds, java.lang.String name, int start, int end) {
169                    return getService().search(groupIds, name, start, end);
170            }
171    
172            public static com.liferay.asset.kernel.model.AssetTag updateTag(
173                    long tagId, java.lang.String name,
174                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
175                    throws com.liferay.portal.kernel.exception.PortalException {
176                    return getService().updateTag(tagId, name, serviceContext);
177            }
178    
179            public static AssetTagService getService() {
180                    if (_service == null) {
181                            _service = (AssetTagService)PortalBeanLocatorUtil.locate(AssetTagService.class.getName());
182    
183                            ReferenceRegistry.registerReference(AssetTagServiceUtil.class,
184                                    "_service");
185                    }
186    
187                    return _service;
188            }
189    
190            private static AssetTagService _service;
191    }