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 AssetCategoryPropertyService} 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       AssetCategoryPropertyService
030     * @generated
031     */
032    public class AssetCategoryPropertyServiceUtil {
033            public static com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
034                    long entryId, 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().addCategoryProperty(entryId, key, value);
038            }
039    
040            public static void deleteCategoryProperty(long categoryPropertyId)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    getService().deleteCategoryProperty(categoryPropertyId);
044            }
045    
046            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
047                    long entryId)
048                    throws com.liferay.portal.kernel.exception.SystemException {
049                    return getService().getCategoryProperties(entryId);
050            }
051    
052            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
053                    long companyId, java.lang.String key)
054                    throws com.liferay.portal.kernel.exception.SystemException {
055                    return getService().getCategoryPropertyValues(companyId, key);
056            }
057    
058            public static com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
059                    long categoryPropertyId, java.lang.String key, java.lang.String value)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return getService()
063                                       .updateCategoryProperty(categoryPropertyId, key, value);
064            }
065    
066            public static AssetCategoryPropertyService getService() {
067                    if (_service == null) {
068                            _service = (AssetCategoryPropertyService)PortalBeanLocatorUtil.locate(AssetCategoryPropertyService.class.getName());
069                    }
070    
071                    return _service;
072            }
073    
074            public void setService(AssetCategoryPropertyService service) {
075                    _service = service;
076            }
077    
078            private static AssetCategoryPropertyService _service;
079    }