001    /**
002     * Copyright (c) 2000-present 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.asset.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.asset.kernel.model.AssetCategoryProperty;
020    
021    import com.liferay.portal.kernel.exception.PortalException;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
024    import com.liferay.portal.kernel.security.access.control.AccessControlled;
025    import com.liferay.portal.kernel.service.BaseService;
026    import com.liferay.portal.kernel.transaction.Isolation;
027    import com.liferay.portal.kernel.transaction.Propagation;
028    import com.liferay.portal.kernel.transaction.Transactional;
029    
030    import java.util.List;
031    
032    /**
033     * Provides the remote service interface for AssetCategoryProperty. Methods of this
034     * service are expected to have security checks based on the propagated JAAS
035     * credentials because this service can be accessed remotely.
036     *
037     * @author Brian Wing Shun Chan
038     * @see AssetCategoryPropertyServiceUtil
039     * @see com.liferay.portlet.asset.service.base.AssetCategoryPropertyServiceBaseImpl
040     * @see com.liferay.portlet.asset.service.impl.AssetCategoryPropertyServiceImpl
041     * @generated
042     */
043    @AccessControlled
044    @JSONWebService
045    @ProviderType
046    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
047            PortalException.class, SystemException.class})
048    public interface AssetCategoryPropertyService extends BaseService {
049            /*
050             * NOTE FOR DEVELOPERS:
051             *
052             * Never modify or reference this interface directly. Always use {@link AssetCategoryPropertyServiceUtil} to access the asset category property remote service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetCategoryPropertyServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
053             */
054            public AssetCategoryProperty addCategoryProperty(long entryId,
055                    java.lang.String key, java.lang.String value) throws PortalException;
056    
057            public void deleteCategoryProperty(long categoryPropertyId)
058                    throws PortalException;
059    
060            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061            public List<AssetCategoryProperty> getCategoryProperties(long entryId);
062    
063            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064            public List<AssetCategoryProperty> getCategoryPropertyValues(
065                    long companyId, java.lang.String key);
066    
067            /**
068            * Returns the OSGi service identifier.
069            *
070            * @return the OSGi service identifier
071            */
072            public java.lang.String getOSGiServiceIdentifier();
073    
074            public AssetCategoryProperty updateCategoryProperty(
075                    long categoryPropertyId, java.lang.String key, java.lang.String value)
076                    throws PortalException;
077    
078            public AssetCategoryProperty updateCategoryProperty(long userId,
079                    long categoryPropertyId, java.lang.String key, java.lang.String value)
080                    throws PortalException;
081    }