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     * <p>
021     * This class provides static methods for the
022     * {@link AssetTagPropertyService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       AssetTagPropertyService
030     * @generated
031     */
032    public class AssetTagPropertyServiceUtil {
033            public static com.liferay.portlet.asset.model.AssetTagProperty addTagProperty(
034                    long tagId, java.lang.String key, java.lang.String value)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    return getService().addTagProperty(tagId, key, value);
038            }
039    
040            public static void deleteTagProperty(long tagPropertyId)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    getService().deleteTagProperty(tagPropertyId);
044            }
045    
046            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties(
047                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
048                    return getService().getTagProperties(tagId);
049            }
050    
051            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues(
052                    long companyId, java.lang.String key)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getService().getTagPropertyValues(companyId, key);
055            }
056    
057            public static com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty(
058                    long tagPropertyId, java.lang.String key, java.lang.String value)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return getService().updateTagProperty(tagPropertyId, key, value);
062            }
063    
064            public static AssetTagPropertyService getService() {
065                    if (_service == null) {
066                            _service = (AssetTagPropertyService)PortalBeanLocatorUtil.locate(AssetTagPropertyService.class.getName());
067                    }
068    
069                    return _service;
070            }
071    
072            public void setService(AssetTagPropertyService service) {
073                    _service = service;
074            }
075    
076            private static AssetTagPropertyService _service;
077    }