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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
75          throws com.liferay.portal.PortalException,
76              com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83      public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
86          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
90          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
91          throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
94          java.lang.String name)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
99          java.lang.String name, java.lang.String[] properties)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException;
102 
103     public void checkEntries(long userId, java.lang.String[] names)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     public void deleteEntry(long entryId)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
117         long assetId) throws com.liferay.portal.SystemException;
118 
119     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
121         throws com.liferay.portal.SystemException;
122 
123     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
125         long classNameId, long classPK)
126         throws com.liferay.portal.SystemException;
127 
128     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
130         long groupId, long companyId, long classNameId, java.lang.String name)
131         throws com.liferay.portal.SystemException;
132 
133     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
135         long groupId, long companyId, long classNameId, java.lang.String name,
136         int start, int end) throws com.liferay.portal.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
140         java.lang.String className, long classPK)
141         throws com.liferay.portal.SystemException;
142 
143     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144     public int getEntriesSize(long groupId, long companyId, long classNameId,
145         java.lang.String name) throws com.liferay.portal.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153     public com.liferay.portlet.tags.model.TagsEntry getEntry(long companyId,
154         java.lang.String name)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159     public long[] getEntryIds(long companyId, java.lang.String[] names)
160         throws com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public java.lang.String[] getEntryNames()
164         throws com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.lang.String[] getEntryNames(long classNameId, long classPK)
168         throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public java.lang.String[] getEntryNames(java.lang.String className,
172         long classPK) throws com.liferay.portal.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public boolean hasEntry(long companyId, java.lang.String name)
176         throws com.liferay.portal.SystemException;
177 
178     public void mergeEntries(long fromEntryId, long toEntryId)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
184         long companyId, java.lang.String name, java.lang.String[] properties)
185         throws com.liferay.portal.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
189         long companyId, java.lang.String name, java.lang.String[] properties,
190         int start, int end) throws com.liferay.portal.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
194         long companyId, java.lang.String name, java.lang.String[] properties,
195         int start, int end) throws com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public int searchCount(long companyId, java.lang.String name,
199         java.lang.String[] properties)
200         throws com.liferay.portal.SystemException;
201 
202     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
203         long entryId, java.lang.String name, java.lang.String[] properties)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException;
206 
207     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long entryId,
208         java.lang.String name)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException;
211 }