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