001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface AssetEntryLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
054 com.liferay.portlet.asset.model.AssetEntry assetEntry)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
064 long entryId);
065
066
073 public void deleteAssetEntry(long entryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteAssetEntry(
084 com.liferay.portlet.asset.model.AssetEntry assetEntry)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
159 long entryId)
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.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int getAssetEntriesCount()
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196
203 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
204 com.liferay.portlet.asset.model.AssetEntry assetEntry)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
216 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
224 public java.lang.String getBeanIdentifier();
225
226
231 public void setBeanIdentifier(java.lang.String beanIdentifier);
232
233 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237 public void deleteEntry(long entryId)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241 public void deleteEntry(java.lang.String className, long classPK)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
247 long entryId)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
253 long entryId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
259 long companyId, int start, int end)
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public int getCompanyEntriesCount(long companyId)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
268 long companyId, int start, int end, java.lang.String languageId)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
273 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public int getEntriesCount(
278 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
288 java.lang.String classUuid)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public com.liferay.portlet.asset.model.AssetEntry getEntry(
294 java.lang.String className, long classPK)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
305 long entryId)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
311 long entryId)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
317 java.lang.String className, boolean asc, int start, int end)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
322 java.lang.String[] className, boolean asc, int start, int end)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325 public void incrementViewCounter(long userId, java.lang.String className,
326 long classPK)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 public void incrementViewCounter(long userId, java.lang.String className,
331 long classPK, int increment)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public com.liferay.portal.kernel.search.Hits search(long companyId,
337 long[] groupIds, java.lang.String className, java.lang.String keywords,
338 int start, int end)
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public com.liferay.portal.kernel.search.Hits search(long companyId,
343 long[] groupIds, long userId, java.lang.String className,
344 java.lang.String keywords, int start, int end)
345 throws com.liferay.portal.kernel.exception.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public com.liferay.portal.kernel.search.Hits search(long companyId,
349 long[] groupIds, long userId, java.lang.String className,
350 java.lang.String userName, java.lang.String title,
351 java.lang.String description, java.lang.String assetCategoryIds,
352 java.lang.String assetTagNames, boolean andSearch, int start, int end)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
357 long companyId, long[] groupIds, java.lang.String className,
358 java.lang.String keywords, java.lang.String languageId, int start,
359 int end) throws com.liferay.portal.kernel.exception.SystemException;
360
361
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
367 long companyId, java.lang.String portletId, java.lang.String keywords,
368 java.lang.String languageId, int start, int end)
369 throws com.liferay.portal.kernel.exception.SystemException;
370
371 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372 public int searchEntryDisplaysCount(long companyId, long[] groupIds,
373 java.lang.String className, java.lang.String keywords,
374 java.lang.String languageId)
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public int searchEntryDisplaysCount(long companyId,
383 java.lang.String portletId, java.lang.String keywords,
384 java.lang.String languageId)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
388 long groupId, java.lang.String className, long classPK,
389 long[] categoryIds, java.lang.String[] tagNames)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException;
392
393 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
394 long groupId, java.lang.String className, long classPK,
395 java.lang.String classUuid, long[] categoryIds,
396 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
397 java.util.Date endDate, java.util.Date publishDate,
398 java.util.Date expirationDate, java.lang.String mimeType,
399 java.lang.String title, java.lang.String description,
400 java.lang.String summary, java.lang.String url, int height, int width,
401 java.lang.Integer priority, boolean sync)
402 throws com.liferay.portal.kernel.exception.PortalException,
403 com.liferay.portal.kernel.exception.SystemException;
404
405 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
406 java.lang.String className, long classPK, boolean visible)
407 throws com.liferay.portal.kernel.exception.PortalException,
408 com.liferay.portal.kernel.exception.SystemException;
409
410 public void validate(long groupId, java.lang.String className,
411 long[] categoryIds, java.lang.String[] tagNames)
412 throws com.liferay.portal.kernel.exception.PortalException,
413 com.liferay.portal.kernel.exception.SystemException;
414 }