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 category property remote service. This utility wraps {@link com.liferay.portlet.asset.service.impl.AssetCategoryPropertyServiceImpl} 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 AssetCategoryPropertyService
029     * @see com.liferay.portlet.asset.service.base.AssetCategoryPropertyServiceBaseImpl
030     * @see com.liferay.portlet.asset.service.impl.AssetCategoryPropertyServiceImpl
031     * @generated
032     */
033    public class AssetCategoryPropertyServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetCategoryPropertyServiceImpl} 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            public static com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
059                    long entryId, 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().addCategoryProperty(entryId, key, value);
063            }
064    
065            public static void deleteCategoryProperty(long categoryPropertyId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    getService().deleteCategoryProperty(categoryPropertyId);
069            }
070    
071            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
072                    long entryId)
073                    throws com.liferay.portal.kernel.exception.SystemException {
074                    return getService().getCategoryProperties(entryId);
075            }
076    
077            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
078                    long companyId, java.lang.String key)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    return getService().getCategoryPropertyValues(companyId, key);
081            }
082    
083            public static com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
084                    long categoryPropertyId, java.lang.String key, java.lang.String value)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return getService()
088                                       .updateCategoryProperty(categoryPropertyId, key, value);
089            }
090    
091            public static AssetCategoryPropertyService getService() {
092                    if (_service == null) {
093                            _service = (AssetCategoryPropertyService)PortalBeanLocatorUtil.locate(AssetCategoryPropertyService.class.getName());
094    
095                            ReferenceRegistry.registerReference(AssetCategoryPropertyServiceUtil.class,
096                                    "_service");
097                    }
098    
099                    return _service;
100            }
101    
102            /**
103             * @deprecated
104             */
105            public void setService(AssetCategoryPropertyService service) {
106            }
107    
108            private static AssetCategoryPropertyService _service;
109    }