1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * {@link
42   * com.liferay.portlet.tags.service.impl.TagsAssetLocalServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       TagsAssetLocalServiceUtil
53   * @generated
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.PortalException,
67              com.liferay.portal.SystemException;
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.PortalException,
84              com.liferay.portal.SystemException;
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 java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
124         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
125         boolean andOperator, boolean excludeZeroViewCount,
126         java.util.Date publishDate, java.util.Date expirationDate, int start,
127         int end) throws com.liferay.portal.SystemException;
128 
129     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
131         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
132         boolean andOperator, boolean excludeZeroViewCount, int start, int end)
133         throws com.liferay.portal.SystemException;
134 
135     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
137         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
138         boolean andOperator, java.lang.String orderByCol1,
139         java.lang.String orderByCol2, java.lang.String orderByType1,
140         java.lang.String orderByType2, boolean excludeZeroViewCount,
141         java.util.Date publishDate, java.util.Date expirationDate, int start,
142         int end) throws com.liferay.portal.SystemException;
143 
144     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
146         long[] entryIds, long[] notEntryIds, boolean andOperator,
147         boolean excludeZeroViewCount, java.util.Date publishDate,
148         java.util.Date expirationDate, int start, int end)
149         throws com.liferay.portal.SystemException;
150 
151     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
153         long[] entryIds, long[] notEntryIds, boolean andOperator,
154         boolean excludeZeroViewCount, int start, int end)
155         throws com.liferay.portal.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
159         long[] entryIds, long[] notEntryIds, boolean andOperator,
160         java.lang.String orderByCol1, java.lang.String orderByCol2,
161         java.lang.String orderByType1, java.lang.String orderByType2,
162         boolean excludeZeroViewCount, java.util.Date publishDate,
163         java.util.Date expirationDate, int start, int end)
164         throws com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public int getAssetsCount(long groupId, long[] entryIds,
168         long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
169         throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public int getAssetsCount(long groupId, long[] classNameIds,
173         long[] entryIds, long[] notEntryIds, boolean andOperator,
174         boolean excludeZeroViewCount, java.util.Date publishDate,
175         java.util.Date expirationDate)
176         throws com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public int getAssetsCount(long[] entryIds, long[] notEntryIds,
180         boolean andOperator, boolean excludeZeroViewCount)
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         java.util.Date publishDate, java.util.Date expirationDate)
187         throws com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
191         java.lang.String languageId);
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[] categoryNames, 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[] categoryNames, java.lang.String[] entryNames,
246         boolean visible, java.util.Date startDate, java.util.Date endDate,
247         java.util.Date publishDate, java.util.Date expirationDate,
248         java.lang.String mimeType, java.lang.String title,
249         java.lang.String description, java.lang.String summary,
250         java.lang.String url, int height, int width, 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[] categoryNames, java.lang.String[] entryNames,
257         boolean visible, java.util.Date startDate, java.util.Date endDate,
258         java.util.Date publishDate, java.util.Date expirationDate,
259         java.lang.String mimeType, java.lang.String title,
260         java.lang.String description, java.lang.String summary,
261         java.lang.String url, int height, int width,
262         java.lang.Integer priority, boolean sync)
263         throws com.liferay.portal.PortalException,
264             com.liferay.portal.SystemException;
265 
266     public com.liferay.portlet.tags.model.TagsAsset updateVisible(
267         java.lang.String className, long classPK, boolean visible)
268         throws com.liferay.portal.PortalException,
269             com.liferay.portal.SystemException;
270 
271     public void validate(java.lang.String className,
272         java.lang.String[] entryNames)
273         throws com.liferay.portal.PortalException;
274 }