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 AssetEntryLocalService {
50 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
51 com.liferay.portlet.asset.model.AssetEntry assetEntry)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
55 long entryId);
56
57 public void deleteAssetEntry(long entryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteAssetEntry(
62 com.liferay.portlet.asset.model.AssetEntry assetEntry)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
85 long entryId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getAssetEntriesCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
99 com.liferay.portlet.asset.model.AssetEntry assetEntry)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
103 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public void deleteEntry(long entryId)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 public void deleteEntry(java.lang.String className, long classPK)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
118 long entryId)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
124 long entryId)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
130 long companyId, int start, int end)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public int getCompanyEntriesCount(long companyId)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
139 long companyId, int start, int end, java.lang.String languageId)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
144 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public int getEntriesCount(
149 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.asset.model.AssetEntry getEntry(
159 java.lang.String className, long classPK)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
170 long entryId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
176 long entryId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
182 java.lang.String className, boolean asc, int start, int end)
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
187 java.lang.String[] className, boolean asc, int start, int end)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
191 java.lang.String className, long classPK)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portal.kernel.search.Hits search(long companyId,
196 java.lang.String portletId, java.lang.String keywords, int start,
197 int end) throws com.liferay.portal.kernel.exception.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
201 long companyId, java.lang.String portletId, java.lang.String keywords,
202 java.lang.String languageId, int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public int searchEntryDisplaysCount(long companyId,
207 java.lang.String portletId, java.lang.String keywords,
208 java.lang.String languageId)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
212 long groupId, java.lang.String className, long classPK,
213 long[] categoryIds, java.lang.String[] tagNames)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException;
216
217 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
218 long groupId, java.lang.String className, long classPK,
219 long[] categoryIds, java.lang.String[] tagNames, boolean visible,
220 java.util.Date startDate, java.util.Date endDate,
221 java.util.Date publishDate, java.util.Date expirationDate,
222 java.lang.String mimeType, java.lang.String title,
223 java.lang.String description, java.lang.String summary,
224 java.lang.String url, int height, int width,
225 java.lang.Integer priority, boolean sync)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException;
228
229 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
230 java.lang.String className, long classPK, boolean visible)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException;
233
234 public void validate(java.lang.String className, long[] categoryIds,
235 java.lang.String[] tagNames)
236 throws com.liferay.portal.kernel.exception.PortalException;
237 }