1
22
23 package com.liferay.portlet.tags.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface TagsEntryService {
58 public com.liferay.portlet.tags.model.TagsEntry addEntry(
59 java.lang.String parentEntryName, java.lang.String name,
60 java.lang.String vocabularyName, java.lang.String[] properties,
61 com.liferay.portal.service.ServiceContext serviceContext)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException;
64
65 public void deleteEntry(long entryId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
70 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
71 java.lang.String className, long classPK)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
77 long groupId, long classNameId, java.lang.String name)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
88 long groupId, java.lang.String vocabularyName)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
94 long groupId, java.lang.String parentEntryName,
95 java.lang.String vocabularyName)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException;
98
99 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
101 long groupId, java.lang.String vocabularyName)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException;
104
105 public void mergeEntries(long fromEntryId, long toEntryId)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
111 java.lang.String name, java.lang.String[] properties, int start, int end)
112 throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.tags.model.TagsEntry updateEntry(long entryId,
115 java.lang.String parentEntryName, java.lang.String name,
116 java.lang.String vocabularyName, java.lang.String[] properties)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException;
119 }