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