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.Propagation;
25  import com.liferay.portal.kernel.annotation.Transactional;
26  
27  /**
28   * <a href="TagsEntryLocalService.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This interface defines the service. The default implementation is
37   * <code>com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl</code>.
38   * Modify methods in that class and rerun ServiceBuilder to populate this class
39   * and all other generated classes.
40   * </p>
41   *
42   * <p>
43   * 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.
44   * </p>
45   *
46   * @author Brian Wing Shun Chan
47   *
48   * @see com.liferay.portlet.tags.service.TagsEntryLocalServiceUtil
49   *
50   */
51  @Transactional(rollbackFor =  {
52      PortalException.class, SystemException.class})
53  public interface TagsEntryLocalService {
54      public com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
55          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
59          long entryId);
60  
61      public void deleteTagsEntry(long entryId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public void deleteTagsEntry(
66          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71          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) throws com.liferay.portal.SystemException;
76  
77      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78      public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portal.PortalException;
81  
82      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
84          int start, int end) throws com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
90          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
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     public boolean hasEntry(long companyId, java.lang.String name)
116         throws com.liferay.portal.SystemException;
117 
118     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
120         long assetId) throws com.liferay.portal.SystemException;
121 
122     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
124         throws com.liferay.portal.SystemException;
125 
126     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
128         java.lang.String className, long classPK)
129         throws com.liferay.portal.SystemException;
130 
131     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
133         long classNameId, long classPK)
134         throws com.liferay.portal.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
138         long groupId, long companyId, long classNameId, java.lang.String name)
139         throws com.liferay.portal.SystemException;
140 
141     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
143         long groupId, long companyId, long classNameId, java.lang.String name,
144         int start, int end) throws com.liferay.portal.SystemException;
145 
146     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147     public int getEntriesSize(long groupId, long companyId, long classNameId,
148         java.lang.String name) throws com.liferay.portal.SystemException;
149 
150     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151     public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156     public com.liferay.portlet.tags.model.TagsEntry getEntry(long companyId,
157         java.lang.String name)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public long[] getEntryIds(long companyId, java.lang.String[] names)
163         throws com.liferay.portal.SystemException;
164 
165     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166     public java.lang.String[] getEntryNames()
167         throws com.liferay.portal.SystemException;
168 
169     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170     public java.lang.String[] getEntryNames(java.lang.String className,
171         long classPK) throws com.liferay.portal.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public java.lang.String[] getEntryNames(long classNameId, long classPK)
175         throws com.liferay.portal.SystemException;
176 
177     public void mergeEntries(long fromEntryId, long toEntryId)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
183         long companyId, java.lang.String name, java.lang.String[] properties)
184         throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
188         long companyId, java.lang.String name, java.lang.String[] properties,
189         int start, int end) throws com.liferay.portal.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
193         long companyId, java.lang.String name, java.lang.String[] properties,
194         int start, int end) throws com.liferay.portal.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public int searchCount(long companyId, java.lang.String name,
198         java.lang.String[] properties)
199         throws com.liferay.portal.SystemException;
200 
201     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long entryId,
202         java.lang.String name)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException;
205 
206     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
207         long entryId, java.lang.String name, java.lang.String[] properties)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException;
210 }