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