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 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 AssetTagProperty. This utility wraps
024     * {@link com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl} 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 AssetTagPropertyService
032     * @see com.liferay.portlet.asset.service.base.AssetTagPropertyServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class AssetTagPropertyServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            /**
063            * Adds an asset tag property.
064            *
065            * @param tagId the primary key of the tag
066            * @param key the key to be associated to the value
067            * @param value the value to which the key will refer
068            * @return the created asset tag property
069            * @throws PortalException if the user did not have permission to update the
070            asset tag, or if the key or value were invalid
071            * @throws SystemException if a system exception occurred
072            */
073            public static com.liferay.portlet.asset.model.AssetTagProperty addTagProperty(
074                    long tagId, java.lang.String key, java.lang.String value)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().addTagProperty(tagId, key, value);
078            }
079    
080            /**
081            * Deletes the asset tag property with the specified ID.
082            *
083            * @param tagPropertyId the primary key of the asset tag property instance
084            * @throws PortalException if an asset tag property with the primary key
085            could not be found or if the user did not have permission to
086            update the asset tag property
087            * @throws SystemException if a system exception occurred
088            */
089            public static void deleteTagProperty(long tagPropertyId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    getService().deleteTagProperty(tagPropertyId);
093            }
094    
095            /**
096            * Returns all the asset tag property instances with the specified tag ID.
097            *
098            * @param tagId the primary key of the tag
099            * @return the matching asset tag properties
100            * @throws SystemException if a system exception occurred
101            */
102            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties(
103                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
104                    return getService().getTagProperties(tagId);
105            }
106    
107            /**
108            * Returns asset tag properties with the specified group and key.
109            *
110            * @param companyId the primary key of the company
111            * @param key the key that refers to some value
112            * @return the matching asset tag properties
113            * @throws SystemException if a system exception occurred
114            */
115            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues(
116                    long companyId, java.lang.String key)
117                    throws com.liferay.portal.kernel.exception.SystemException {
118                    return getService().getTagPropertyValues(companyId, key);
119            }
120    
121            /**
122            * Updates the asset tag property.
123            *
124            * @param tagPropertyId the primary key of the asset tag property
125            * @param key the new key to be associated to the value
126            * @param value the new value to which the key will refer
127            * @return the updated asset tag property
128            * @throws PortalException if an asset tag property with the primary key
129            could not be found, if the user did not have permission to update
130            the asset tag, or if the key or value were invalid
131            * @throws SystemException if a system exception occurred
132            */
133            public static com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty(
134                    long tagPropertyId, java.lang.String key, java.lang.String value)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException {
137                    return getService().updateTagProperty(tagPropertyId, key, value);
138            }
139    
140            public static AssetTagPropertyService getService() {
141                    if (_service == null) {
142                            _service = (AssetTagPropertyService)PortalBeanLocatorUtil.locate(AssetTagPropertyService.class.getName());
143    
144                            ReferenceRegistry.registerReference(AssetTagPropertyServiceUtil.class,
145                                    "_service");
146                    }
147    
148                    return _service;
149            }
150    
151            /**
152             * @deprecated As of 6.2.0
153             */
154            public void setService(AssetTagPropertyService service) {
155            }
156    
157            private static AssetTagPropertyService _service;
158    }