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  
26  /**
27   * <a href="TagsEntryLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory
48   * @see com.liferay.portlet.tags.service.TagsEntryLocalServiceUtil
49   *
50   */
51  public interface TagsEntryLocalService {
52      public com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
53          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteTagsEntry(long entryId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteTagsEntry(
61          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> dynamicQuery(
66          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> dynamicQuery(
70          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71          int begin, int end) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
74          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
78          java.lang.String name)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portal.PortalException;
81  
82      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
83          java.lang.String name, java.lang.String[] properties)
84          throws com.liferay.portal.SystemException,
85              com.liferay.portal.PortalException;
86  
87      public void checkEntries(long userId, java.lang.String[] names)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portal.PortalException;
90  
91      public void deleteEntry(long entryId)
92          throws com.liferay.portal.SystemException,
93              com.liferay.portal.PortalException;
94  
95      public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portal.PortalException;
98  
99      public boolean hasEntry(long companyId, java.lang.String name)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
103         long assetId)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portal.PortalException;
106 
107     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
108         throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
111         java.lang.String className, long classPK)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portal.PortalException;
114 
115     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
116         long classNameId, long classPK)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portal.PortalException;
119 
120     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
121         long groupId, long companyId, long classNameId, java.lang.String name)
122         throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
125         long groupId, long companyId, long classNameId, java.lang.String name,
126         int begin, int end) throws com.liferay.portal.SystemException;
127 
128     public int getEntriesSize(long groupId, long companyId, long classNameId,
129         java.lang.String name) throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portal.PortalException;
134 
135     public com.liferay.portlet.tags.model.TagsEntry getEntry(long companyId,
136         java.lang.String name)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portal.PortalException;
139 
140     public long[] getEntryIds(long companyId, java.lang.String[] names)
141         throws com.liferay.portal.SystemException,
142             com.liferay.portal.PortalException;
143 
144     public java.lang.String[] getEntryNames()
145         throws com.liferay.portal.SystemException;
146 
147     public java.lang.String[] getEntryNames(java.lang.String className,
148         long classPK)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portal.PortalException;
151 
152     public java.lang.String[] getEntryNames(long classNameId, long classPK)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portal.PortalException;
155 
156     public void mergeEntries(long fromEntryId, long toEntryId)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portal.PortalException;
159 
160     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
161         long companyId, java.lang.String name, java.lang.String[] properties)
162         throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
165         long companyId, java.lang.String name, java.lang.String[] properties,
166         int begin, int end) throws com.liferay.portal.SystemException;
167 
168     public com.liferay.portal.kernel.json.JSONArrayWrapper searchAutocomplete(
169         long companyId, java.lang.String name, java.lang.String[] properties,
170         int begin, int end) throws com.liferay.portal.SystemException;
171 
172     public int searchCount(long companyId, java.lang.String name,
173         java.lang.String[] properties)
174         throws com.liferay.portal.SystemException;
175 
176     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long entryId,
177         java.lang.String name)
178         throws com.liferay.portal.SystemException,
179             com.liferay.portal.PortalException;
180 
181     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
182         long entryId, java.lang.String name, java.lang.String[] properties)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portal.PortalException;
185 }