1   /**
2    * Copyright (c) 2000-2009 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  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="TagsAssetLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * <code>com.liferay.portlet.tags.service.impl.TagsAssetLocalServiceImpl</code>.
42   * Modify methods in that class and rerun ServiceBuilder to populate this class
43   * and all other generated classes.
44   * </p>
45   *
46   * <p>
47   * 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.
48   * </p>
49   *
50   * @author Brian Wing Shun Chan
51   *
52   * @see com.liferay.portlet.tags.service.TagsAssetLocalServiceUtil
53   *
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface TagsAssetLocalService {
58      public com.liferay.portlet.tags.model.TagsAsset addTagsAsset(
59          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.tags.model.TagsAsset createTagsAsset(
63          long assetId);
64  
65      public void deleteTagsAsset(long assetId)
66          throws com.liferay.portal.SystemException,
67              com.liferay.portal.PortalException;
68  
69      public void deleteTagsAsset(
70          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75          throws com.liferay.portal.SystemException;
76  
77      public java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portlet.tags.model.TagsAsset getTagsAsset(long assetId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portal.PortalException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getTagsAssetsCount() throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
94          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
98          com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
99          throws com.liferay.portal.SystemException;
100 
101     public void deleteAsset(long assetId)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     public void deleteAsset(java.lang.String className, long classPK)
106         throws com.liferay.portal.SystemException;
107 
108     public void deleteAsset(com.liferay.portlet.tags.model.TagsAsset asset)
109         throws com.liferay.portal.SystemException;
110 
111     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112     public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117     public com.liferay.portlet.tags.model.TagsAsset getAsset(
118         java.lang.String className, long classPK)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123     public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
124         java.lang.String languageId);
125 
126     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
128         long[] entryIds, long[] notEntryIds, boolean andOperator,
129         boolean excludeZeroViewCount, int start, int end)
130         throws com.liferay.portal.SystemException;
131 
132     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
134         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
135         boolean andOperator, boolean excludeZeroViewCount, int start, int end)
136         throws com.liferay.portal.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
140         long[] entryIds, long[] notEntryIds, boolean andOperator,
141         boolean excludeZeroViewCount, java.util.Date publishDate,
142         java.util.Date expirationDate, int start, int end)
143         throws com.liferay.portal.SystemException;
144 
145     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
147         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
148         boolean andOperator, boolean excludeZeroViewCount,
149         java.util.Date publishDate, java.util.Date expirationDate, int start,
150         int end) throws com.liferay.portal.SystemException;
151 
152     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
154         long[] entryIds, long[] notEntryIds, boolean andOperator,
155         java.lang.String orderByCol1, java.lang.String orderByCol2,
156         java.lang.String orderByType1, java.lang.String orderByType2,
157         boolean excludeZeroViewCount, java.util.Date publishDate,
158         java.util.Date expirationDate, int start, int end)
159         throws com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
163         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
164         boolean andOperator, java.lang.String orderByCol1,
165         java.lang.String orderByCol2, java.lang.String orderByType1,
166         java.lang.String orderByType2, boolean excludeZeroViewCount,
167         java.util.Date publishDate, java.util.Date expirationDate, int start,
168         int end) throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public int getAssetsCount(long[] entryIds, long[] notEntryIds,
172         boolean andOperator, boolean excludeZeroViewCount)
173         throws com.liferay.portal.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public int getAssetsCount(long groupId, long[] entryIds,
177         long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
178         throws com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public int getAssetsCount(long[] entryIds, long[] notEntryIds,
182         boolean andOperator, boolean excludeZeroViewCount,
183         java.util.Date publishDate, java.util.Date expirationDate)
184         throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public int getAssetsCount(long groupId, long[] classNameIds,
188         long[] entryIds, long[] notEntryIds, boolean andOperator,
189         boolean excludeZeroViewCount, java.util.Date publishDate,
190         java.util.Date expirationDate)
191         throws com.liferay.portal.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
195         long companyId, int start, int end, java.lang.String languageId)
196         throws com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
200         long companyId, int start, int end)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public int getCompanyAssetsCount(long companyId)
205         throws com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
209         java.lang.String className, boolean asc, int start, int end)
210         throws com.liferay.portal.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
214         java.lang.String[] className, boolean asc, int start, int end)
215         throws com.liferay.portal.SystemException;
216 
217     public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
218         java.lang.String className, long classPK)
219         throws com.liferay.portal.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public com.liferay.portal.kernel.search.Hits search(long companyId,
223         java.lang.String portletId, java.lang.String keywords, int start,
224         int end) throws com.liferay.portal.SystemException;
225 
226     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227     public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
228         long companyId, java.lang.String portletId, java.lang.String keywords,
229         java.lang.String languageId, int start, int end)
230         throws com.liferay.portal.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public int searchAssetDisplaysCount(long companyId,
234         java.lang.String portletId, java.lang.String keywords,
235         java.lang.String languageId) throws com.liferay.portal.SystemException;
236 
237     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
238         long groupId, java.lang.String className, long classPK,
239         java.lang.String[] entryNames)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException;
242 
243     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
244         long groupId, java.lang.String className, long classPK,
245         java.lang.String[] entryNames, java.util.Date startDate,
246         java.util.Date endDate, java.util.Date publishDate,
247         java.util.Date expirationDate, java.lang.String mimeType,
248         java.lang.String title, java.lang.String description,
249         java.lang.String summary, java.lang.String url, int height, int width,
250         java.lang.Integer priority)
251         throws com.liferay.portal.PortalException,
252             com.liferay.portal.SystemException;
253 
254     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
255         long groupId, java.lang.String className, long classPK,
256         java.lang.String[] entryNames, java.util.Date startDate,
257         java.util.Date endDate, java.util.Date publishDate,
258         java.util.Date expirationDate, java.lang.String mimeType,
259         java.lang.String title, java.lang.String description,
260         java.lang.String summary, java.lang.String url, int height, int width,
261         java.lang.Integer priority, boolean sync)
262         throws com.liferay.portal.PortalException,
263             com.liferay.portal.SystemException;
264 
265     public void validate(java.lang.String className,
266         java.lang.String[] entryNames)
267         throws com.liferay.portal.PortalException;
268 }