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      @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 }