001
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
043 @AccessControlled
044 @JSONWebService
045 @ProviderType
046 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
047 PortalException.class, SystemException.class})
048 public interface AssetCategoryPropertyService extends BaseService {
049
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
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 }