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