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.TagsEntryLocalServiceUtil
48   *
49   */
50  public interface TagsEntryLocalService {
51      public com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
52          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
56          long entryId);
57  
58      public void deleteTagsEntry(long entryId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteTagsEntry(
63          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
75          throws com.liferay.portal.SystemException,
76              com.liferay.portal.PortalException;
77  
78      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
79          int start, int end) throws com.liferay.portal.SystemException;
80  
81      public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
84          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
88          java.lang.String name)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
93          java.lang.String name, java.lang.String[] properties)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException;
96  
97      public void checkEntries(long userId, java.lang.String[] names)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     public void deleteEntry(long entryId)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException;
108 
109     public boolean hasEntry(long companyId, java.lang.String name)
110         throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
113         long assetId) throws com.liferay.portal.SystemException;
114 
115     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
119         java.lang.String className, long classPK)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
123         long classNameId, long classPK)
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
127         long groupId, long companyId, long classNameId, java.lang.String name)
128         throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
131         long groupId, long companyId, long classNameId, java.lang.String name,
132         int start, int end) throws com.liferay.portal.SystemException;
133 
134     public int getEntriesSize(long groupId, long companyId, long classNameId,
135         java.lang.String name) throws com.liferay.portal.SystemException;
136 
137     public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public com.liferay.portlet.tags.model.TagsEntry getEntry(long companyId,
142         java.lang.String name)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public long[] getEntryIds(long companyId, java.lang.String[] names)
147         throws com.liferay.portal.SystemException;
148 
149     public java.lang.String[] getEntryNames()
150         throws com.liferay.portal.SystemException;
151 
152     public java.lang.String[] getEntryNames(java.lang.String className,
153         long classPK) throws com.liferay.portal.SystemException;
154 
155     public java.lang.String[] getEntryNames(long classNameId, long classPK)
156         throws com.liferay.portal.SystemException;
157 
158     public void mergeEntries(long fromEntryId, long toEntryId)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
163         long companyId, java.lang.String name, java.lang.String[] properties)
164         throws com.liferay.portal.SystemException;
165 
166     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
167         long companyId, java.lang.String name, java.lang.String[] properties,
168         int start, int end) throws com.liferay.portal.SystemException;
169 
170     public com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
171         long companyId, java.lang.String name, java.lang.String[] properties,
172         int start, int end) throws com.liferay.portal.SystemException;
173 
174     public int searchCount(long companyId, java.lang.String name,
175         java.lang.String[] properties)
176         throws com.liferay.portal.SystemException;
177 
178     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long entryId,
179         java.lang.String name)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
184         long entryId, java.lang.String name, java.lang.String[] properties)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 }