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