001    /**
002     * Copyright (c) 2000-2011 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.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * 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.
023     *
024     * <p>
025     * 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.
026     * </p>
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            public static com.liferay.portlet.asset.model.AssetTagProperty addTagProperty(
041                    long tagId, java.lang.String key, java.lang.String value)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    return getService().addTagProperty(tagId, key, value);
045            }
046    
047            public static void deleteTagProperty(long tagPropertyId)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException {
050                    getService().deleteTagProperty(tagPropertyId);
051            }
052    
053            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties(
054                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
055                    return getService().getTagProperties(tagId);
056            }
057    
058            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues(
059                    long companyId, java.lang.String key)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return getService().getTagPropertyValues(companyId, key);
062            }
063    
064            public static com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty(
065                    long tagPropertyId, java.lang.String key, java.lang.String value)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return getService().updateTagProperty(tagPropertyId, key, value);
069            }
070    
071            public static AssetTagPropertyService getService() {
072                    if (_service == null) {
073                            _service = (AssetTagPropertyService)PortalBeanLocatorUtil.locate(AssetTagPropertyService.class.getName());
074    
075                            ReferenceRegistry.registerReference(AssetTagPropertyServiceUtil.class,
076                                    "_service");
077                            MethodCache.remove(AssetTagPropertyService.class);
078                    }
079    
080                    return _service;
081            }
082    
083            public void setService(AssetTagPropertyService service) {
084                    MethodCache.remove(AssetTagPropertyService.class);
085    
086                    _service = service;
087    
088                    ReferenceRegistry.registerReference(AssetTagPropertyServiceUtil.class,
089                            "_service");
090                    MethodCache.remove(AssetTagPropertyService.class);
091            }
092    
093            private static AssetTagPropertyService _service;
094    }