1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="TagsEntryLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * 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.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.tags.service.TagsEntryLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface TagsEntryLocalService {
57      public com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
58          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
62          long entryId);
63  
64      public void deleteTagsEntry(long entryId)
65          throws com.liferay.portal.SystemException,
66              com.liferay.portal.PortalException;
67  
68      public void deleteTagsEntry(
69          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portal.PortalException;
84  
85      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
87          int start, int end) throws com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
93          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
94          throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
97          java.lang.String name)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
102         java.lang.String name, java.lang.String[] properties)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public void checkEntries(long userId, java.lang.String[] names)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public void deleteEntry(long entryId)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public boolean hasEntry(long companyId, java.lang.String name)
119         throws com.liferay.portal.SystemException;
120 
121     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
123         long assetId) throws com.liferay.portal.SystemException;
124 
125     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
127         throws com.liferay.portal.SystemException;
128 
129     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
131         java.lang.String className, long classPK)
132         throws com.liferay.portal.SystemException;
133 
134     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
136         long classNameId, long classPK)
137         throws com.liferay.portal.SystemException;
138 
139     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
141         long groupId, long companyId, long classNameId, java.lang.String name)
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         long groupId, long companyId, long classNameId, java.lang.String name,
147         int start, int end) throws com.liferay.portal.SystemException;
148 
149     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150     public int getEntriesSize(long groupId, long companyId, long classNameId,
151         java.lang.String name) throws com.liferay.portal.SystemException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159     public com.liferay.portlet.tags.model.TagsEntry getEntry(long companyId,
160         java.lang.String name)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165     public long[] getEntryIds(long companyId, java.lang.String[] names)
166         throws com.liferay.portal.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public java.lang.String[] getEntryNames()
170         throws com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.lang.String[] getEntryNames(java.lang.String className,
174         long classPK) throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public java.lang.String[] getEntryNames(long classNameId, long classPK)
178         throws com.liferay.portal.SystemException;
179 
180     public void mergeEntries(long fromEntryId, long toEntryId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
186         long companyId, java.lang.String name, java.lang.String[] properties)
187         throws com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
191         long companyId, java.lang.String name, java.lang.String[] properties,
192         int start, int end) throws com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
196         long companyId, java.lang.String name, java.lang.String[] properties,
197         int start, int end) throws com.liferay.portal.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public int searchCount(long companyId, java.lang.String name,
201         java.lang.String[] properties)
202         throws com.liferay.portal.SystemException;
203 
204     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long entryId,
205         java.lang.String name)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
210         long entryId, java.lang.String name, java.lang.String[] properties)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException;
213 }