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 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 com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
60      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
61          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
62          boolean andOperator, java.lang.String orderByCol1,
63          java.lang.String orderByCol2, java.lang.String orderByType1,
64          java.lang.String orderByType2, boolean excludeZeroViewCount,
65          java.util.Date publishDate, java.util.Date expirationDate, int start,
66          int end)
67          throws com.liferay.portal.PortalException,
68              com.liferay.portal.SystemException;
69  
70      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
71      public int getAssetsCount(long groupId, long[] classNameIds,
72          long[] entryIds, long[] notEntryIds, boolean andOperator,
73          boolean excludeZeroViewCount, java.util.Date publishDate,
74          java.util.Date expirationDate)
75          throws com.liferay.portal.PortalException,
76              com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public java.lang.String getAssetsRSS(long groupId, long[] classNameIds,
80          long[] entryIds, long[] notEntryIds, boolean andOperator,
81          java.lang.String orderByCol1, java.lang.String orderByCol2,
82          java.lang.String orderByType1, java.lang.String orderByType2,
83          boolean excludeZeroViewCount, java.util.Date publishDate,
84          java.util.Date expirationDate, int max, java.lang.String type,
85          double version, java.lang.String displayStyle,
86          java.lang.String feedURL, java.lang.String entryURL)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
92          java.lang.String languageId);
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
96          long companyId, int start, int end, java.lang.String languageId)
97          throws com.liferay.portal.SystemException;
98  
99      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
101         long companyId, int start, int end)
102         throws com.liferay.portal.SystemException;
103 
104     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105     public int getCompanyAssetsCount(long companyId)
106         throws com.liferay.portal.SystemException;
107 
108     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109     public java.lang.String getCompanyAssetsRSS(long companyId, int max,
110         java.lang.String type, double version, java.lang.String displayStyle,
111         java.lang.String feedURL, java.lang.String entryURL)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
116         java.lang.String className, long classPK)
117         throws com.liferay.portal.SystemException;
118 
119     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120     public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
121         long companyId, java.lang.String portletId, java.lang.String keywords,
122         java.lang.String languageId, int start, int end)
123         throws com.liferay.portal.SystemException;
124 
125     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126     public int searchAssetDisplaysCount(long companyId,
127         java.lang.String portletId, java.lang.String keywords,
128         java.lang.String languageId) throws com.liferay.portal.SystemException;
129 
130     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long groupId,
131         java.lang.String className, long classPK,
132         java.lang.String[] categoryNames, java.lang.String[] entryNames,
133         boolean visible, java.util.Date startDate, java.util.Date endDate,
134         java.util.Date publishDate, java.util.Date expirationDate,
135         java.lang.String mimeType, java.lang.String title,
136         java.lang.String description, java.lang.String summary,
137         java.lang.String url, int height, int width, java.lang.Integer priority)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 }