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