1
14
15 package com.liferay.portlet.asset.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface AssetVocabularyService {
50 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
51 java.util.Map<java.util.Locale, String> titleMap,
52 java.util.Map<java.util.Locale, String> descriptionMap,
53 java.lang.String settings,
54 com.liferay.portal.service.ServiceContext serviceContext)
55 throws com.liferay.portal.kernel.exception.PortalException,
56 com.liferay.portal.kernel.exception.SystemException;
57
58 public void deleteVocabulary(long vocabularyId)
59 throws com.liferay.portal.kernel.exception.PortalException,
60 com.liferay.portal.kernel.exception.SystemException;
61
62 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
63 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
64 long companyId)
65 throws com.liferay.portal.kernel.exception.PortalException,
66 com.liferay.portal.kernel.exception.SystemException;
67
68 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
69 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
70 long[] groupIds)
71 throws com.liferay.portal.kernel.exception.PortalException,
72 com.liferay.portal.kernel.exception.SystemException;
73
74 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
75 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
76 long groupId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
82 long vocabularyId)
83 throws com.liferay.portal.kernel.exception.PortalException,
84 com.liferay.portal.kernel.exception.SystemException;
85
86 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
87 long vocabularyId, java.util.Map<java.util.Locale, String> titleMap,
88 java.util.Map<java.util.Locale, String> descriptionMap,
89 java.lang.String settings,
90 com.liferay.portal.service.ServiceContext serviceContext)
91 throws com.liferay.portal.kernel.exception.PortalException,
92 com.liferay.portal.kernel.exception.SystemException;
93 }