1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface TagsVocabularyService {
50 public com.liferay.portlet.tags.model.TagsVocabulary addVocabulary(
51 java.lang.String name, boolean folksonomy,
52 com.liferay.portal.service.ServiceContext serviceContext)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException;
55
56 public void deleteVocabulary(long vocabularyId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException;
59
60 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
61 public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> getCompanyVocabularies(
62 long companyId, boolean folksonomy)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException;
65
66 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
67 public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> getGroupVocabularies(
68 long groupId, boolean folksonomy)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
73 public com.liferay.portlet.tags.model.TagsVocabulary getVocabulary(
74 long vocabularyId)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77
78 public com.liferay.portlet.tags.model.TagsVocabulary updateVocabulary(
79 long vocabularyId, java.lang.String name, boolean folksonomy)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException;
82 }