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