1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  /**
24   * <a href="TagsEntryLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       TagsEntryLocalServiceUtil
45   * @generated
46   */
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      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
90          int start, int end) throws com.liferay.portal.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
96          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
100         com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
104         java.lang.String parentEntryName, java.lang.String name,
105         java.lang.String vocabularyName, java.lang.String[] properties,
106         com.liferay.portal.service.ServiceContext serviceContext)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public void addEntryResources(
111         com.liferay.portlet.tags.model.TagsEntry entry,
112         boolean addCommunityPermissions, boolean addGuestPermissions)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public void addEntryResources(
117         com.liferay.portlet.tags.model.TagsEntry entry,
118         java.lang.String[] communityPermissions,
119         java.lang.String[] guestPermissions)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public void checkEntries(long userId, long groupId, java.lang.String[] names)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public void deleteEntry(long entryId)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public void deleteVocabularyEntries(long vocabularyId)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
141         long assetId, boolean folksonomy)
142         throws com.liferay.portal.SystemException;
143 
144     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
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         boolean folksonomy) 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         long classNameId, long classPK)
155         throws com.liferay.portal.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
159         long classNameId, long classPK, boolean folksonomy)
160         throws com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
164         long groupId, long classNameId, java.lang.String name)
165         throws com.liferay.portal.SystemException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
169         long groupId, long classNameId, java.lang.String name, int start,
170         int end) throws com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
174         java.lang.String className, long classPK)
175         throws com.liferay.portal.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
179         java.lang.String className, long classPK, boolean folksonomy)
180         throws com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public int getEntriesSize(long groupId, long classNameId,
184         java.lang.String name) throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public com.liferay.portlet.tags.model.TagsEntry getEntry(long groupId,
193         java.lang.String name)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public com.liferay.portlet.tags.model.TagsEntry getEntry(long groupId,
199         java.lang.String name, boolean folksonomy)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public long[] getEntryIds(long groupId, java.lang.String[] names)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public long[] getEntryIds(long groupId, java.lang.String[] names,
210         boolean folksonomy)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public java.lang.String[] getEntryNames()
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.lang.String[] getEntryNames(boolean folksonomy)
220         throws com.liferay.portal.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public java.lang.String[] getEntryNames(long classNameId, long classPK)
224         throws com.liferay.portal.SystemException;
225 
226     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227     public java.lang.String[] getEntryNames(long classNameId, long classPK,
228         boolean folksonomy) throws com.liferay.portal.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public java.lang.String[] getEntryNames(java.lang.String className,
232         long classPK) 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.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
241         long groupId, java.lang.String vocabularyName)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
247         long groupId, java.lang.String parentEntryName,
248         java.lang.String vocabularyName)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException;
251 
252     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
254         long groupId, java.lang.String vocabularyName)
255         throws com.liferay.portal.PortalException,
256             com.liferay.portal.SystemException;
257 
258     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259     public boolean hasEntry(long groupId, java.lang.String name,
260         boolean folksonomy)
261         throws com.liferay.portal.PortalException,
262             com.liferay.portal.SystemException;
263 
264     public void mergeEntries(long fromEntryId, long toEntryId)
265         throws com.liferay.portal.PortalException,
266             com.liferay.portal.SystemException;
267 
268     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269     public com.liferay.portal.kernel.json.JSONArray search(long groupId,
270         java.lang.String name, java.lang.String[] properties, int start, int end)
271         throws com.liferay.portal.SystemException;
272 
273     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
274         long entryId, java.lang.String parentEntryName, java.lang.String name,
275         java.lang.String vocabularyName, java.lang.String[] properties)
276         throws com.liferay.portal.PortalException,
277             com.liferay.portal.SystemException;
278 }