1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.tags.service;
21  
22  import com.liferay.portal.PortalException;
23  import com.liferay.portal.SystemException;
24  import com.liferay.portal.kernel.annotation.Isolation;
25  import com.liferay.portal.kernel.annotation.Propagation;
26  import com.liferay.portal.kernel.annotation.Transactional;
27  
28  /**
29   * <a href="TagsEntryLocalService.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This interface defines the service. The default implementation is
38   * <code>com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl</code>.
39   * Modify methods in that class and rerun ServiceBuilder to populate this class
40   * and all other generated classes.
41   * </p>
42   *
43   * <p>
44   * 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.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.tags.service.TagsEntryLocalServiceUtil
50   *
51   */
52  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
53      PortalException.class, SystemException.class})
54  public interface TagsEntryLocalService {
55      public com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
56          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
60          long entryId);
61  
62      public void deleteTagsEntry(long entryId)
63          throws com.liferay.portal.SystemException,
64              com.liferay.portal.PortalException;
65  
66      public void deleteTagsEntry(
67          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portal.PortalException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
85          int start, int end) throws com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
89  
90      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
91          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
95          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
99          java.lang.String parentEntryName, java.lang.String name,
100         java.lang.String vocabularyName, java.lang.String[] properties,
101         com.liferay.portal.service.ServiceContext serviceContext)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     public void addEntryResources(
106         com.liferay.portlet.tags.model.TagsEntry entry,
107         boolean addCommunityPermissions, boolean addGuestPermissions)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     public void addEntryResources(
112         com.liferay.portlet.tags.model.TagsEntry entry,
113         java.lang.String[] communityPermissions,
114         java.lang.String[] guestPermissions)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public void checkEntries(long userId, long groupId, java.lang.String[] names)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public void deleteEntry(long entryId)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException;
129 
130     public void deleteVocabularyEntries(long vocabularyId)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135     public boolean hasEntry(long groupId, java.lang.String name,
136         boolean folksonomy)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
142         long assetId, boolean folksonomy)
143         throws com.liferay.portal.SystemException;
144 
145     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
147         throws com.liferay.portal.SystemException;
148 
149     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
151         boolean folksonomy) throws com.liferay.portal.SystemException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
155         java.lang.String className, long classPK)
156         throws com.liferay.portal.SystemException;
157 
158     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
160         long classNameId, long classPK)
161         throws com.liferay.portal.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
165         java.lang.String className, long classPK, boolean folksonomy)
166         throws com.liferay.portal.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
170         long classNameId, long classPK, boolean folksonomy)
171         throws com.liferay.portal.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
175         long groupId, long classNameId, java.lang.String name)
176         throws com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
180         long groupId, long classNameId, java.lang.String name, int start,
181         int end) throws com.liferay.portal.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public int getEntriesSize(long groupId, long classNameId,
185         java.lang.String name) throws com.liferay.portal.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public com.liferay.portlet.tags.model.TagsEntry getEntry(long groupId,
194         java.lang.String name)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public com.liferay.portlet.tags.model.TagsEntry getEntry(long groupId,
200         java.lang.String name, boolean folksonomy)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public long[] getEntryIds(long groupId, java.lang.String[] names)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public long[] getEntryIds(long groupId, java.lang.String[] names,
211         boolean folksonomy)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public java.lang.String[] getEntryNames()
217         throws com.liferay.portal.SystemException;
218 
219     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220     public java.lang.String[] getEntryNames(java.lang.String className,
221         long classPK) throws com.liferay.portal.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public java.lang.String[] getEntryNames(long classNameId, long classPK)
225         throws com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public java.lang.String[] getEntryNames(boolean folksonomy)
229         throws com.liferay.portal.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public java.lang.String[] getEntryNames(java.lang.String className,
233         long classPK, boolean folksonomy)
234         throws com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public java.lang.String[] getEntryNames(long classNameId, long classPK,
238         boolean folksonomy) throws com.liferay.portal.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
242         long groupId, java.lang.String vocabularyName)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
248         long groupId, java.lang.String parentEntryName,
249         java.lang.String vocabularyName)
250         throws com.liferay.portal.PortalException,
251             com.liferay.portal.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
255         long groupId, java.lang.String vocabularyName)
256         throws com.liferay.portal.PortalException,
257             com.liferay.portal.SystemException;
258 
259     public void mergeEntries(long fromEntryId, long toEntryId)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException;
262 
263     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264     public com.liferay.portal.kernel.json.JSONArray search(long groupId,
265         java.lang.String name, java.lang.String[] properties, int start, int end)
266         throws com.liferay.portal.SystemException;
267 
268     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
269         long entryId, java.lang.String parentEntryName, java.lang.String name,
270         java.lang.String vocabularyName, java.lang.String[] properties)
271         throws com.liferay.portal.PortalException,
272             com.liferay.portal.SystemException;
273 }