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="TagsAssetLocalService.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.TagsAssetLocalServiceImpl</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.TagsAssetLocalServiceFactory
48   * @see com.liferay.portlet.tags.service.TagsAssetLocalServiceUtil
49   *
50   */
51  public interface TagsAssetLocalService {
52      public com.liferay.portlet.tags.model.TagsAsset addTagsAsset(
53          com.liferay.portlet.tags.model.TagsAsset model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
65          com.liferay.portlet.tags.model.TagsAsset model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
69  
70      public void setTagsAssetPersistence(
71          com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
72  
73      public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
74  
75      public void setTagsAssetFinder(
76          com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
77  
78      public com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence();
79  
80      public void setTagsEntryPersistence(
81          com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence);
82  
83      public com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder();
84  
85      public void setTagsEntryFinder(
86          com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder);
87  
88      public com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence getTagsPropertyPersistence();
89  
90      public void setTagsPropertyPersistence(
91          com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence tagsPropertyPersistence);
92  
93      public com.liferay.portlet.tags.service.persistence.TagsPropertyFinder getTagsPropertyFinder();
94  
95      public void setTagsPropertyFinder(
96          com.liferay.portlet.tags.service.persistence.TagsPropertyFinder tagsPropertyFinder);
97  
98      public com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder getTagsPropertyKeyFinder();
99  
100     public void setTagsPropertyKeyFinder(
101         com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder tagsPropertyKeyFinder);
102 
103     public com.liferay.portlet.tags.service.persistence.TagsSourcePersistence getTagsSourcePersistence();
104 
105     public void setTagsSourcePersistence(
106         com.liferay.portlet.tags.service.persistence.TagsSourcePersistence tagsSourcePersistence);
107 
108     public com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence();
109 
110     public void setCompanyPersistence(
111         com.liferay.portal.service.persistence.CompanyPersistence companyPersistence);
112 
113     public com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence();
114 
115     public void setGroupPersistence(
116         com.liferay.portal.service.persistence.GroupPersistence groupPersistence);
117 
118     public com.liferay.portal.service.persistence.GroupFinder getGroupFinder();
119 
120     public void setGroupFinder(
121         com.liferay.portal.service.persistence.GroupFinder groupFinder);
122 
123     public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
124 
125     public void setUserPersistence(
126         com.liferay.portal.service.persistence.UserPersistence userPersistence);
127 
128     public com.liferay.portal.service.persistence.UserFinder getUserFinder();
129 
130     public void setUserFinder(
131         com.liferay.portal.service.persistence.UserFinder userFinder);
132 
133     public com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence getBlogsEntryPersistence();
134 
135     public void setBlogsEntryPersistence(
136         com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence blogsEntryPersistence);
137 
138     public com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder getBlogsEntryFinder();
139 
140     public void setBlogsEntryFinder(
141         com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder blogsEntryFinder);
142 
143     public com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence getBookmarksEntryPersistence();
144 
145     public void setBookmarksEntryPersistence(
146         com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence bookmarksEntryPersistence);
147 
148     public com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder getBookmarksEntryFinder();
149 
150     public void setBookmarksEntryFinder(
151         com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder bookmarksEntryFinder);
152 
153     public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence();
154 
155     public void setDLFileEntryPersistence(
156         com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence);
157 
158     public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder();
159 
160     public void setDLFileEntryFinder(
161         com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder);
162 
163     public com.liferay.portlet.journal.service.persistence.JournalArticlePersistence getJournalArticlePersistence();
164 
165     public void setJournalArticlePersistence(
166         com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence);
167 
168     public com.liferay.portlet.journal.service.persistence.JournalArticleFinder getJournalArticleFinder();
169 
170     public void setJournalArticleFinder(
171         com.liferay.portlet.journal.service.persistence.JournalArticleFinder journalArticleFinder);
172 
173     public com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence getJournalArticleResourcePersistence();
174 
175     public void setJournalArticleResourcePersistence(
176         com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence);
177 
178     public com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence();
179 
180     public void setMBMessagePersistence(
181         com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence);
182 
183     public com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder();
184 
185     public void setMBMessageFinder(
186         com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder);
187 
188     public com.liferay.portlet.wiki.service.persistence.WikiPagePersistence getWikiPagePersistence();
189 
190     public void setWikiPagePersistence(
191         com.liferay.portlet.wiki.service.persistence.WikiPagePersistence wikiPagePersistence);
192 
193     public com.liferay.portlet.wiki.service.persistence.WikiPageFinder getWikiPageFinder();
194 
195     public void setWikiPageFinder(
196         com.liferay.portlet.wiki.service.persistence.WikiPageFinder wikiPageFinder);
197 
198     public com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence getWikiPageResourcePersistence();
199 
200     public void setWikiPageResourcePersistence(
201         com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence wikiPageResourcePersistence);
202 
203     public void afterPropertiesSet();
204 
205     public void deleteAsset(long assetId)
206         throws com.liferay.portal.SystemException, 
207             com.liferay.portal.PortalException;
208 
209     public void deleteAsset(java.lang.String className, long classPK)
210         throws com.liferay.portal.SystemException, 
211             com.liferay.portal.PortalException;
212 
213     public void deleteAsset(com.liferay.portlet.tags.model.TagsAsset asset)
214         throws com.liferay.portal.SystemException, 
215             com.liferay.portal.PortalException;
216 
217     public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
218         throws com.liferay.portal.SystemException, 
219             com.liferay.portal.PortalException;
220 
221     public com.liferay.portlet.tags.model.TagsAsset getAsset(
222         java.lang.String className, long classPK)
223         throws com.liferay.portal.SystemException, 
224             com.liferay.portal.PortalException;
225 
226     public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
227         java.lang.String languageId);
228 
229     public java.util.List getAssets(long[] entryIds, long[] notEntryIds,
230         boolean andOperator, boolean excludeZeroViewCount, int begin, int end)
231         throws com.liferay.portal.SystemException;
232 
233     public java.util.List getAssets(long groupId, long[] classNameIds,
234         long[] entryIds, long[] notEntryIds, boolean andOperator,
235         boolean excludeZeroViewCount, int begin, int end)
236         throws com.liferay.portal.SystemException;
237 
238     public java.util.List getAssets(long[] entryIds, long[] notEntryIds,
239         boolean andOperator, boolean excludeZeroViewCount,
240         java.util.Date publishDate, java.util.Date expirationDate, int begin,
241         int end) throws com.liferay.portal.SystemException;
242 
243     public java.util.List getAssets(long groupId, long[] classNameIds,
244         long[] entryIds, long[] notEntryIds, boolean andOperator,
245         boolean excludeZeroViewCount, java.util.Date publishDate,
246         java.util.Date expirationDate, int begin, int end)
247         throws com.liferay.portal.SystemException;
248 
249     public java.util.List getAssets(long[] entryIds, long[] notEntryIds,
250         boolean andOperator, java.lang.String orderByCol1,
251         java.lang.String orderByCol2, java.lang.String orderByType1,
252         java.lang.String orderByType2, boolean excludeZeroViewCount,
253         java.util.Date publishDate, java.util.Date expirationDate, int begin,
254         int end) throws com.liferay.portal.SystemException;
255 
256     public java.util.List getAssets(long groupId, long[] classNameIds,
257         long[] entryIds, long[] notEntryIds, boolean andOperator,
258         java.lang.String orderByCol1, java.lang.String orderByCol2,
259         java.lang.String orderByType1, java.lang.String orderByType2,
260         boolean excludeZeroViewCount, java.util.Date publishDate,
261         java.util.Date expirationDate, int begin, int end)
262         throws com.liferay.portal.SystemException;
263 
264     public int getAssetsCount(long[] entryIds, long[] notEntryIds,
265         boolean andOperator, boolean excludeZeroViewCount)
266         throws com.liferay.portal.SystemException;
267 
268     public int getAssetsCount(long groupId, long[] entryIds,
269         long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
270         throws com.liferay.portal.SystemException;
271 
272     public int getAssetsCount(long[] entryIds, long[] notEntryIds,
273         boolean andOperator, boolean excludeZeroViewCount,
274         java.util.Date publishDate, java.util.Date expirationDate)
275         throws com.liferay.portal.SystemException;
276 
277     public int getAssetsCount(long groupId, long[] classNameIds,
278         long[] entryIds, long[] notEntryIds, boolean andOperator,
279         boolean excludeZeroViewCount, java.util.Date publishDate,
280         java.util.Date expirationDate)
281         throws com.liferay.portal.SystemException;
282 
283     public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
284         long companyId, int begin, int end, java.lang.String languageId)
285         throws com.liferay.portal.SystemException, 
286             com.liferay.portal.PortalException;
287 
288     public java.util.List getCompanyAssets(long companyId, int begin, int end)
289         throws com.liferay.portal.SystemException;
290 
291     public int getCompanyAssetsCount(long companyId)
292         throws com.liferay.portal.SystemException;
293 
294     public java.util.List getTopViewedAssets(java.lang.String className,
295         boolean asc, int begin, int end)
296         throws com.liferay.portal.SystemException;
297 
298     public java.util.List getTopViewedAssets(java.lang.String[] className,
299         boolean asc, int begin, int end)
300         throws com.liferay.portal.SystemException;
301 
302     public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
303         java.lang.String className, long classPK)
304         throws com.liferay.portal.SystemException, 
305             com.liferay.portal.PortalException;
306 
307     public com.liferay.portal.kernel.search.Hits search(long companyId,
308         java.lang.String portletId, java.lang.String keywords)
309         throws com.liferay.portal.SystemException;
310 
311     public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
312         long companyId, java.lang.String portletId, java.lang.String keywords,
313         java.lang.String languageId, int begin, int end)
314         throws com.liferay.portal.SystemException, 
315             com.liferay.portal.PortalException;
316 
317     public int searchAssetDisplaysCount(long companyId,
318         java.lang.String portletId, java.lang.String keywords,
319         java.lang.String languageId) throws com.liferay.portal.SystemException;
320 
321     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
322         long groupId, java.lang.String className, long classPK,
323         java.lang.String[] entryNames)
324         throws com.liferay.portal.SystemException, 
325             com.liferay.portal.PortalException;
326 
327     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
328         long groupId, java.lang.String className, long classPK,
329         java.lang.String[] entryNames, java.util.Date startDate,
330         java.util.Date endDate, java.util.Date publishDate,
331         java.util.Date expirationDate, java.lang.String mimeType,
332         java.lang.String title, java.lang.String description,
333         java.lang.String summary, java.lang.String url, int height, int width,
334         java.lang.Integer priority)
335         throws com.liferay.portal.SystemException, 
336             com.liferay.portal.PortalException;
337 
338     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
339         long groupId, java.lang.String className, long classPK,
340         java.lang.String[] entryNames, java.util.Date startDate,
341         java.util.Date endDate, java.util.Date publishDate,
342         java.util.Date expirationDate, java.lang.String mimeType,
343         java.lang.String title, java.lang.String description,
344         java.lang.String summary, java.lang.String url, int height, int width,
345         java.lang.Integer priority, boolean sync)
346         throws com.liferay.portal.SystemException, 
347             com.liferay.portal.PortalException;
348 
349     public void validate(java.lang.String className,
350         java.lang.String[] entryNames)
351         throws com.liferay.portal.PortalException;
352 }