1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.tags.service;
21  
22  import com.liferay.portal.PortalException;
23  import com.liferay.portal.SystemException;
24  import com.liferay.portal.kernel.annotation.Isolation;
25  import com.liferay.portal.kernel.annotation.Propagation;
26  import com.liferay.portal.kernel.annotation.Transactional;
27  
28  /**
29   * <a href="TagsAssetService.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This interface defines the service. The default implementation is
38   * <code>com.liferay.portlet.tags.service.impl.TagsAssetServiceImpl</code>.
39   * Modify methods in that class and rerun ServiceBuilder to populate this class
40   * and all other generated classes.
41   * </p>
42   *
43   * <p>
44   * 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.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.tags.service.TagsAssetServiceUtil
50   *
51   */
52  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
53      PortalException.class, SystemException.class})
54  public interface TagsAssetService {
55      public void deleteAsset(long assetId)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
60      public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException;
63  
64      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
65      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
66          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
67          boolean andOperator, java.lang.String orderByCol1,
68          java.lang.String orderByCol2, java.lang.String orderByType1,
69          java.lang.String orderByType2, boolean excludeZeroViewCount,
70          java.util.Date publishDate, java.util.Date expirationDate, int start,
71          int end)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException;
74  
75      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76      public int getAssetsCount(long groupId, long[] classNameIds,
77          long[] entryIds, long[] notEntryIds, boolean andOperator,
78          boolean excludeZeroViewCount, java.util.Date publishDate,
79          java.util.Date expirationDate)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public java.lang.String getAssetsRSS(long groupId, long[] classNameIds,
85          long[] entryIds, long[] notEntryIds, boolean andOperator,
86          java.lang.String orderByCol1, java.lang.String orderByCol2,
87          java.lang.String orderByType1, java.lang.String orderByType2,
88          boolean excludeZeroViewCount, java.util.Date publishDate,
89          java.util.Date expirationDate, int max, java.lang.String type,
90          double version, java.lang.String displayStyle,
91          java.lang.String feedURL, java.lang.String entryURL)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
97          java.lang.String languageId);
98  
99      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100     public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
101         long companyId, int start, int end, java.lang.String languageId)
102         throws com.liferay.portal.SystemException;
103 
104     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
106         long companyId, int start, int end)
107         throws com.liferay.portal.SystemException;
108 
109     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110     public int getCompanyAssetsCount(long companyId)
111         throws com.liferay.portal.SystemException;
112 
113     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114     public java.lang.String getCompanyAssetsRSS(long companyId, int max,
115         java.lang.String type, double version, java.lang.String displayStyle,
116         java.lang.String feedURL, java.lang.String entryURL)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
121         java.lang.String className, long classPK)
122         throws com.liferay.portal.SystemException;
123 
124     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125     public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
126         long companyId, java.lang.String portletId, java.lang.String keywords,
127         java.lang.String languageId, int start, int end)
128         throws com.liferay.portal.SystemException;
129 
130     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131     public int searchAssetDisplaysCount(long companyId,
132         java.lang.String portletId, java.lang.String keywords,
133         java.lang.String languageId) throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.tags.model.TagsAsset updateAsset(long groupId,
136         java.lang.String className, long classPK,
137         java.lang.String[] categoryNames, java.lang.String[] entryNames,
138         boolean visible, java.util.Date startDate, java.util.Date endDate,
139         java.util.Date publishDate, java.util.Date expirationDate,
140         java.lang.String mimeType, java.lang.String title,
141         java.lang.String description, java.lang.String summary,
142         java.lang.String url, int height, int width, java.lang.Integer priority)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 }