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 TagsEntryLocalService {
58 public com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
59 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
63 long entryId);
64
65 public void deleteTagsEntry(long entryId)
66 throws com.liferay.portal.SystemException,
67 com.liferay.portal.PortalException;
68
69 public void deleteTagsEntry(
70 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
94 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
98 com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
99 throws com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
102 java.lang.String parentEntryName, java.lang.String name,
103 java.lang.String vocabularyName, java.lang.String[] properties,
104 com.liferay.portal.service.ServiceContext serviceContext)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 public void addEntryResources(
109 com.liferay.portlet.tags.model.TagsEntry entry,
110 boolean addCommunityPermissions, boolean addGuestPermissions)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113
114 public void addEntryResources(
115 com.liferay.portlet.tags.model.TagsEntry entry,
116 java.lang.String[] communityPermissions,
117 java.lang.String[] guestPermissions)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException;
120
121 public void checkEntries(long userId, long groupId, java.lang.String[] names)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public void deleteEntry(long entryId)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public void deleteVocabularyEntries(long vocabularyId)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public boolean hasEntry(long groupId, java.lang.String name,
139 boolean folksonomy)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
145 long assetId, boolean folksonomy)
146 throws com.liferay.portal.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
150 throws com.liferay.portal.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
154 boolean folksonomy) throws com.liferay.portal.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
158 java.lang.String className, long classPK)
159 throws com.liferay.portal.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
163 long classNameId, long classPK)
164 throws com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
168 java.lang.String className, long classPK, boolean folksonomy)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
173 long classNameId, long classPK, boolean folksonomy)
174 throws com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
178 long groupId, long classNameId, java.lang.String name)
179 throws com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
183 long groupId, long classNameId, java.lang.String name, int start,
184 int end) throws com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public int getEntriesSize(long groupId, long classNameId,
188 java.lang.String name) throws com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portlet.tags.model.TagsEntry getEntry(long groupId,
197 java.lang.String name)
198 throws com.liferay.portal.PortalException,
199 com.liferay.portal.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portlet.tags.model.TagsEntry getEntry(long groupId,
203 java.lang.String name, boolean folksonomy)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public long[] getEntryIds(long groupId, java.lang.String[] names)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public long[] getEntryIds(long groupId, java.lang.String[] names,
214 boolean folksonomy)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public java.lang.String[] getEntryNames()
220 throws com.liferay.portal.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public java.lang.String[] getEntryNames(java.lang.String className,
224 long classPK) throws com.liferay.portal.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public java.lang.String[] getEntryNames(long classNameId, long classPK)
228 throws com.liferay.portal.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public java.lang.String[] getEntryNames(boolean folksonomy)
232 throws com.liferay.portal.SystemException;
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public java.lang.String[] getEntryNames(java.lang.String className,
236 long classPK, boolean folksonomy)
237 throws com.liferay.portal.SystemException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public java.lang.String[] getEntryNames(long classNameId, long classPK,
241 boolean folksonomy) throws com.liferay.portal.SystemException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
245 long groupId, java.lang.String vocabularyName)
246 throws com.liferay.portal.PortalException,
247 com.liferay.portal.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
251 long groupId, java.lang.String parentEntryName,
252 java.lang.String vocabularyName)
253 throws com.liferay.portal.PortalException,
254 com.liferay.portal.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
258 long groupId, java.lang.String vocabularyName)
259 throws com.liferay.portal.PortalException,
260 com.liferay.portal.SystemException;
261
262 public void mergeEntries(long fromEntryId, long toEntryId)
263 throws com.liferay.portal.PortalException,
264 com.liferay.portal.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
268 java.lang.String name, java.lang.String[] properties, int start, int end)
269 throws com.liferay.portal.SystemException;
270
271 public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
272 long entryId, java.lang.String parentEntryName, java.lang.String name,
273 java.lang.String vocabularyName, java.lang.String[] properties)
274 throws com.liferay.portal.PortalException,
275 com.liferay.portal.SystemException;
276 }