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