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 AssetCategoryProperty updateCategoryProperty(
058 long categoryPropertyId, java.lang.String key, java.lang.String value)
059 throws PortalException;
060
061 public AssetCategoryProperty updateCategoryProperty(long userId,
062 long categoryPropertyId, java.lang.String key, java.lang.String value)
063 throws PortalException;
064
065
070 public java.lang.String getOSGiServiceIdentifier();
071
072 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073 public List<AssetCategoryProperty> getCategoryProperties(long entryId);
074
075 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076 public List<AssetCategoryProperty> getCategoryPropertyValues(
077 long companyId, java.lang.String key);
078
079 public void deleteCategoryProperty(long categoryPropertyId)
080 throws PortalException;
081 }