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