1
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
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 }