001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetVocabularyService {
043 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
044 java.util.Map<java.util.Locale, java.lang.String> titleMap,
045 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
046 java.lang.String settings,
047 com.liferay.portal.service.ServiceContext serviceContext)
048 throws com.liferay.portal.kernel.exception.PortalException,
049 com.liferay.portal.kernel.exception.SystemException;
050
051 public void deleteVocabulary(long vocabularyId)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException;
054
055 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
056 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
057 long companyId)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException;
060
061 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
063 long[] groupIds)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
068 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
069 long groupId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
075 long vocabularyId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
080 long vocabularyId,
081 java.util.Map<java.util.Locale, java.lang.String> titleMap,
082 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
083 java.lang.String settings,
084 com.liferay.portal.service.ServiceContext serviceContext)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087 }