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