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 name, java.lang.String type, double version,
91          java.lang.String displayStyle, java.lang.String feedURL,
92          java.lang.String tagURL)
93          throws com.liferay.portal.kernel.exception.PortalException,
94              com.liferay.portal.kernel.exception.SystemException;
95  
96      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
97      public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
98          throws com.liferay.portal.kernel.exception.PortalException,
99              com.liferay.portal.kernel.exception.SystemException;
100 
101     public void incrementViewCounter(java.lang.String className, long classPK)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException;
104 
105     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106     public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
107         long companyId, java.lang.String portletId, java.lang.String keywords,
108         java.lang.String languageId, int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112     public int searchEntryDisplaysCount(long companyId,
113         java.lang.String portletId, java.lang.String keywords,
114         java.lang.String languageId)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.asset.model.AssetEntry updateEntry(
118         long groupId, java.lang.String className, long classPK,
119         long[] categoryIds, java.lang.String[] tagNames, boolean visible,
120         java.util.Date startDate, java.util.Date endDate,
121         java.util.Date publishDate, java.util.Date expirationDate,
122         java.lang.String mimeType, java.lang.String title,
123         java.lang.String description, java.lang.String summary,
124         java.lang.String url, int height, int width,
125         java.lang.Integer priority, boolean sync)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException;
128 }