1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.tags.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="TagsAssetService.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.tags.service.impl.TagsAssetServiceImpl}}.
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       TagsAssetServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface TagsAssetService {
50      public void deleteAsset(long assetId)
51          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException;
53  
54      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
55      public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
56          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
60      public java.lang.String getAssetsRSS(long groupId, long[] classNameIds,
61          long[] entryIds, long[] notEntryIds, boolean andOperator,
62          java.lang.String orderByCol1, java.lang.String orderByCol2,
63          java.lang.String orderByType1, java.lang.String orderByType2,
64          boolean excludeZeroViewCount, java.util.Date publishDate,
65          java.util.Date expirationDate, int max, java.lang.String type,
66          double version, java.lang.String displayStyle,
67          java.lang.String feedURL, java.lang.String entryURL)
68          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException;
70  
71      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72      public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
73          java.lang.String languageId) throws java.rmi.RemoteException;
74  
75      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76      public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
77          long companyId, int start, int end, java.lang.String languageId)
78          throws java.rmi.RemoteException, com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
82          long companyId, int start, int end)
83          throws java.rmi.RemoteException, com.liferay.portal.SystemException;
84  
85      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86      public int getCompanyAssetsCount(long companyId)
87          throws java.rmi.RemoteException, com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.lang.String getCompanyAssetsRSS(long companyId, int max,
91          java.lang.String type, double version, java.lang.String displayStyle,
92          java.lang.String feedURL, java.lang.String entryURL)
93          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
97          java.lang.String className, long classPK)
98          throws java.rmi.RemoteException, com.liferay.portal.SystemException;
99  
100     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101     public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
102         long companyId, java.lang.String portletId, java.lang.String keywords,
103         java.lang.String languageId, int start, int end)
104         throws java.rmi.RemoteException, com.liferay.portal.SystemException;
105 
106     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107     public int searchAssetDisplaysCount(long companyId,
108         java.lang.String portletId, java.lang.String keywords,
109         java.lang.String languageId)
110         throws java.rmi.RemoteException, com.liferay.portal.SystemException;
111 
112     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long groupId,
113         java.lang.String className, long classPK,
114         java.lang.String[] entryNames, java.util.Date startDate,
115         java.util.Date endDate, java.util.Date publishDate,
116         java.util.Date expirationDate, java.lang.String mimeType,
117         java.lang.String title, java.lang.String description,
118         java.lang.String summary, java.lang.String url, int height, int width,
119         java.lang.Integer priority)
120         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 }