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