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.TagsAssetLocalServiceUtil
48   *
49   */
50  public interface TagsAssetLocalService {
51      public com.liferay.portlet.tags.model.TagsAsset addTagsAsset(
52          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.tags.model.TagsAsset createTagsAsset(
56          long assetId);
57  
58      public void deleteTagsAsset(long assetId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteTagsAsset(
63          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
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.TagsAsset getTagsAsset(long assetId)
75          throws com.liferay.portal.SystemException,
76              com.liferay.portal.PortalException;
77  
78      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
79          int start, int end) throws com.liferay.portal.SystemException;
80  
81      public int getTagsAssetsCount() throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
84          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
85          throws com.liferay.portal.SystemException;
86  
87      public void deleteAsset(long assetId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException;
90  
91      public void deleteAsset(java.lang.String className, long classPK)
92          throws com.liferay.portal.SystemException;
93  
94      public void deleteAsset(com.liferay.portlet.tags.model.TagsAsset asset)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.tags.model.TagsAsset getAsset(
102         java.lang.String className, long classPK)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
107         java.lang.String languageId);
108 
109     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
110         long[] entryIds, long[] notEntryIds, boolean andOperator,
111         boolean excludeZeroViewCount, int start, int end)
112         throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
115         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
116         boolean andOperator, boolean excludeZeroViewCount, int start, int end)
117         throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
120         long[] entryIds, long[] notEntryIds, boolean andOperator,
121         boolean excludeZeroViewCount, java.util.Date publishDate,
122         java.util.Date expirationDate, int start, int end)
123         throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
126         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
127         boolean andOperator, boolean excludeZeroViewCount,
128         java.util.Date publishDate, java.util.Date expirationDate, int start,
129         int end) throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
132         long[] entryIds, long[] notEntryIds, boolean andOperator,
133         java.lang.String orderByCol1, java.lang.String orderByCol2,
134         java.lang.String orderByType1, java.lang.String orderByType2,
135         boolean excludeZeroViewCount, java.util.Date publishDate,
136         java.util.Date expirationDate, int start, int end)
137         throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
140         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
141         boolean andOperator, java.lang.String orderByCol1,
142         java.lang.String orderByCol2, java.lang.String orderByType1,
143         java.lang.String orderByType2, boolean excludeZeroViewCount,
144         java.util.Date publishDate, java.util.Date expirationDate, int start,
145         int end) throws com.liferay.portal.SystemException;
146 
147     public int getAssetsCount(long[] entryIds, long[] notEntryIds,
148         boolean andOperator, boolean excludeZeroViewCount)
149         throws com.liferay.portal.SystemException;
150 
151     public int getAssetsCount(long groupId, long[] entryIds,
152         long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
153         throws com.liferay.portal.SystemException;
154 
155     public int getAssetsCount(long[] entryIds, long[] notEntryIds,
156         boolean andOperator, boolean excludeZeroViewCount,
157         java.util.Date publishDate, java.util.Date expirationDate)
158         throws com.liferay.portal.SystemException;
159 
160     public int getAssetsCount(long groupId, long[] classNameIds,
161         long[] entryIds, long[] notEntryIds, boolean andOperator,
162         boolean excludeZeroViewCount, java.util.Date publishDate,
163         java.util.Date expirationDate)
164         throws com.liferay.portal.SystemException;
165 
166     public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
167         long companyId, int start, int end, java.lang.String languageId)
168         throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
171         long companyId, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     public int getCompanyAssetsCount(long companyId)
175         throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
178         java.lang.String className, boolean asc, int start, int end)
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
182         java.lang.String[] className, boolean asc, int start, int end)
183         throws com.liferay.portal.SystemException;
184 
185     public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
186         java.lang.String className, long classPK)
187         throws com.liferay.portal.SystemException;
188 
189     public com.liferay.portal.kernel.search.Hits search(long companyId,
190         java.lang.String portletId, java.lang.String keywords, int start,
191         int end) throws com.liferay.portal.SystemException;
192 
193     public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
194         long companyId, java.lang.String portletId, java.lang.String keywords,
195         java.lang.String languageId, int start, int end)
196         throws com.liferay.portal.SystemException;
197 
198     public int searchAssetDisplaysCount(long companyId,
199         java.lang.String portletId, java.lang.String keywords,
200         java.lang.String languageId) throws com.liferay.portal.SystemException;
201 
202     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
203         long groupId, java.lang.String className, long classPK,
204         java.lang.String[] entryNames)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException;
207 
208     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
209         long groupId, java.lang.String className, long classPK,
210         java.lang.String[] entryNames, java.util.Date startDate,
211         java.util.Date endDate, java.util.Date publishDate,
212         java.util.Date expirationDate, java.lang.String mimeType,
213         java.lang.String title, java.lang.String description,
214         java.lang.String summary, java.lang.String url, int height, int width,
215         java.lang.Integer priority)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException;
218 
219     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
220         long groupId, java.lang.String className, long classPK,
221         java.lang.String[] entryNames, java.util.Date startDate,
222         java.util.Date endDate, java.util.Date publishDate,
223         java.util.Date expirationDate, java.lang.String mimeType,
224         java.lang.String title, java.lang.String description,
225         java.lang.String summary, java.lang.String url, int height, int width,
226         java.lang.Integer priority, boolean sync)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException;
229 
230     public void validate(java.lang.String className,
231         java.lang.String[] entryNames)
232         throws com.liferay.portal.PortalException;
233 }