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="AssetEntryService.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.AssetEntryServiceImpl}}.
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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       AssetEntryServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface AssetEntryService {
50      public void deleteEntry(long entryId)
51          throws com.liferay.portal.kernel.exception.PortalException,
52              com.liferay.portal.kernel.exception.SystemException;
53  
54      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
55      public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
56          long companyId, int start, int end)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
60      public int getCompanyEntriesCount(long companyId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
64      public java.lang.String getCompanyEntriesRSS(long companyId, int max,
65          java.lang.String type, double version, java.lang.String displayStyle,
66          java.lang.String feedURL, java.lang.String tagURL)
67          throws com.liferay.portal.kernel.exception.PortalException,
68              com.liferay.portal.kernel.exception.SystemException;
69  
70      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
71      public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
72          long companyId, int start, int end, java.lang.String languageId)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76      public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
77          com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
78          throws com.liferay.portal.kernel.exception.PortalException,
79              com.liferay.portal.kernel.exception.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public int getEntriesCount(
83          com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
84          throws com.liferay.portal.kernel.exception.PortalException,
85              com.liferay.portal.kernel.exception.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public java.lang.String getEntriesRSS(
89          com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
90          java.lang.String type, double version, java.lang.String displayStyle,
91          java.lang.String feedURL, java.lang.String tagURL)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
97          throws com.liferay.portal.kernel.exception.PortalException,
98              com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
101         java.lang.String className, long classPK)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105     public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
106         long companyId, java.lang.String portletId, java.lang.String keywords,
107         java.lang.String languageId, int start, int end)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111     public int searchEntryDisplaysCount(long companyId,
112         java.lang.String portletId, java.lang.String keywords,
113         java.lang.String languageId)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portlet.asset.model.AssetEntry updateEntry(
117         long groupId, java.lang.String className, long classPK,
118         long[] categoryIds, java.lang.String[] tagNames, boolean visible,
119         java.util.Date startDate, java.util.Date endDate,
120         java.util.Date publishDate, java.util.Date expirationDate,
121         java.lang.String mimeType, java.lang.String title,
122         java.lang.String description, java.lang.String summary,
123         java.lang.String url, int height, int width,
124         java.lang.Integer priority, boolean sync)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException;
127 }