1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="AssetEntryLocalService.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.asset.service.impl.AssetEntryLocalServiceImpl}}.
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       AssetEntryLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface AssetEntryLocalService {
50      public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
51          com.liferay.portlet.asset.model.AssetEntry assetEntry)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
55          long entryId);
56  
57      public void deleteAssetEntry(long entryId)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteAssetEntry(
62          com.liferay.portlet.asset.model.AssetEntry assetEntry)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
85          long entryId)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
91          int start, int end)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getAssetEntriesCount()
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
99          com.liferay.portlet.asset.model.AssetEntry assetEntry)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
103         com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public void deleteEntry(long entryId)
110         throws com.liferay.portal.kernel.exception.PortalException,
111             com.liferay.portal.kernel.exception.SystemException;
112 
113     public void deleteEntry(java.lang.String className, long classPK)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
118         long entryId)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
124         long entryId)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException;
127 
128     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
130         long companyId, int start, int end)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134     public int getCompanyEntriesCount(long companyId)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138     public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
139         long companyId, int start, int end, java.lang.String languageId)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
144         com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public int getEntriesCount(
149         com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
150         throws com.liferay.portal.kernel.exception.SystemException;
151 
152     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153     public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public com.liferay.portlet.asset.model.AssetEntry getEntry(
159         java.lang.String className, long classPK)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
170         long entryId)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
176         long entryId)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
182         java.lang.String className, boolean asc, int start, int end)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
187         java.lang.String[] className, boolean asc, int start, int end)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
191         java.lang.String className, long classPK)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public com.liferay.portal.kernel.search.Hits search(long companyId,
196         java.lang.String portletId, java.lang.String keywords, int start,
197         int end) throws com.liferay.portal.kernel.exception.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
201         long companyId, java.lang.String portletId, java.lang.String keywords,
202         java.lang.String languageId, int start, int end)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public int searchEntryDisplaysCount(long companyId,
207         java.lang.String portletId, java.lang.String keywords,
208         java.lang.String languageId)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
212         long groupId, java.lang.String className, long classPK,
213         long[] categoryIds, java.lang.String[] tagNames)
214         throws com.liferay.portal.kernel.exception.PortalException,
215             com.liferay.portal.kernel.exception.SystemException;
216 
217     public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
218         long groupId, java.lang.String className, long classPK,
219         long[] categoryIds, java.lang.String[] tagNames, boolean visible,
220         java.util.Date startDate, java.util.Date endDate,
221         java.util.Date publishDate, java.util.Date expirationDate,
222         java.lang.String mimeType, java.lang.String title,
223         java.lang.String description, java.lang.String summary,
224         java.lang.String url, int height, int width,
225         java.lang.Integer priority, boolean sync)
226         throws com.liferay.portal.kernel.exception.PortalException,
227             com.liferay.portal.kernel.exception.SystemException;
228 
229     public com.liferay.portlet.asset.model.AssetEntry updateVisible(
230         java.lang.String className, long classPK, boolean visible)
231         throws com.liferay.portal.kernel.exception.PortalException,
232             com.liferay.portal.kernel.exception.SystemException;
233 
234     public void validate(java.lang.String className, long[] categoryIds,
235         java.lang.String[] tagNames)
236         throws com.liferay.portal.kernel.exception.PortalException;
237 }