1
14
15 package com.liferay.portlet.asset.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class AssetEntryLocalServiceUtil {
40 public static com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
41 com.liferay.portlet.asset.model.AssetEntry assetEntry)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addAssetEntry(assetEntry);
44 }
45
46 public static com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
47 long entryId) {
48 return getService().createAssetEntry(entryId);
49 }
50
51 public static void deleteAssetEntry(long entryId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteAssetEntry(entryId);
55 }
56
57 public static void deleteAssetEntry(
58 com.liferay.portlet.asset.model.AssetEntry assetEntry)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteAssetEntry(assetEntry);
61 }
62
63 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static 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 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
94 long entryId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getAssetEntry(entryId);
98 }
99
100 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getAssetEntries(start, end);
104 }
105
106 public static int getAssetEntriesCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getAssetEntriesCount();
109 }
110
111 public static com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
112 com.liferay.portlet.asset.model.AssetEntry assetEntry)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateAssetEntry(assetEntry);
115 }
116
117 public static com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
118 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getService().updateAssetEntry(assetEntry, merge);
121 }
122
123 public static void deleteEntry(
124 com.liferay.portlet.asset.model.AssetEntry entry)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 getService().deleteEntry(entry);
127 }
128
129 public static void deleteEntry(long entryId)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 getService().deleteEntry(entryId);
133 }
134
135 public static void deleteEntry(java.lang.String className, long classPK)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 getService().deleteEntry(className, classPK);
138 }
139
140 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
141 long entryId)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException {
144 return getService().getAncestorEntries(entryId);
145 }
146
147 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
148 long entryId)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException {
151 return getService().getChildEntries(entryId);
152 }
153
154 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
155 long companyId, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getService().getCompanyEntries(companyId, start, end);
158 }
159
160 public static int getCompanyEntriesCount(long companyId)
161 throws com.liferay.portal.kernel.exception.SystemException {
162 return getService().getCompanyEntriesCount(companyId);
163 }
164
165 public static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
166 long companyId, int start, int end, java.lang.String languageId)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService()
169 .getCompanyEntryDisplays(companyId, start, end, languageId);
170 }
171
172 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
173 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getService().getEntries(entryQuery);
176 }
177
178 public static int getEntriesCount(
179 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getService().getEntriesCount(entryQuery);
182 }
183
184 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
185 long entryId)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getEntry(entryId);
189 }
190
191 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
192 java.lang.String className, long classPK)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException {
195 return getService().getEntry(className, classPK);
196 }
197
198 public static com.liferay.portlet.asset.model.AssetEntry getNextEntry(
199 long entryId)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().getNextEntry(entryId);
203 }
204
205 public static com.liferay.portlet.asset.model.AssetEntry getParentEntry(
206 long entryId)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 return getService().getParentEntry(entryId);
210 }
211
212 public static com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
213 long entryId)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException {
216 return getService().getPreviousEntry(entryId);
217 }
218
219 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
220 java.lang.String className, boolean asc, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().getTopViewedEntries(className, asc, start, end);
223 }
224
225 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
226 java.lang.String[] className, boolean asc, int start, int end)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().getTopViewedEntries(className, asc, start, end);
229 }
230
231 public static void incrementViewCounter(long userId,
232 java.lang.String className, long classPK)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException {
235 getService().incrementViewCounter(userId, className, classPK);
236 }
237
238 public static com.liferay.portal.kernel.search.Hits search(long companyId,
239 java.lang.String portletId, java.lang.String keywords, int start,
240 int end) throws com.liferay.portal.kernel.exception.SystemException {
241 return getService().search(companyId, portletId, keywords, start, end);
242 }
243
244 public static com.liferay.portal.kernel.search.Hits search(long companyId,
245 long[] groupIds, java.lang.String portletId, java.lang.String userName,
246 java.lang.String title, java.lang.String description,
247 java.lang.String assetCategoryIds, java.lang.String assetTagNames,
248 boolean andSearch, int start, int end)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService()
251 .search(companyId, groupIds, portletId, userName, title,
252 description, assetCategoryIds, assetTagNames, andSearch, start, end);
253 }
254
255 public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
256 long companyId, java.lang.String portletId, java.lang.String keywords,
257 java.lang.String languageId, int start, int end)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getService()
260 .searchEntryDisplays(companyId, portletId, keywords,
261 languageId, start, end);
262 }
263
264 public static int searchEntryDisplaysCount(long companyId,
265 java.lang.String portletId, java.lang.String keywords,
266 java.lang.String languageId)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getService()
269 .searchEntryDisplaysCount(companyId, portletId, keywords,
270 languageId);
271 }
272
273 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
274 long userId, long groupId, java.lang.String className, long classPK,
275 long[] categoryIds, java.lang.String[] tagNames)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .updateEntry(userId, groupId, className, classPK,
280 categoryIds, tagNames);
281 }
282
283 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
284 long userId, long groupId, java.lang.String className, long classPK,
285 long[] categoryIds, java.lang.String[] tagNames, boolean visible,
286 java.util.Date startDate, java.util.Date endDate,
287 java.util.Date publishDate, java.util.Date expirationDate,
288 java.lang.String mimeType, java.lang.String title,
289 java.lang.String description, java.lang.String summary,
290 java.lang.String url, int height, int width,
291 java.lang.Integer priority, boolean sync)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException {
294 return getService()
295 .updateEntry(userId, groupId, className, classPK,
296 categoryIds, tagNames, visible, startDate, endDate, publishDate,
297 expirationDate, mimeType, title, description, summary, url, height,
298 width, priority, sync);
299 }
300
301 public static com.liferay.portlet.asset.model.AssetEntry updateVisible(
302 java.lang.String className, long classPK, boolean visible)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 return getService().updateVisible(className, classPK, visible);
306 }
307
308 public static void validate(java.lang.String className, long[] categoryIds,
309 java.lang.String[] tagNames)
310 throws com.liferay.portal.kernel.exception.PortalException {
311 getService().validate(className, categoryIds, tagNames);
312 }
313
314 public static AssetEntryLocalService getService() {
315 if (_service == null) {
316 _service = (AssetEntryLocalService)PortalBeanLocatorUtil.locate(AssetEntryLocalService.class.getName());
317 }
318
319 return _service;
320 }
321
322 public void setService(AssetEntryLocalService service) {
323 _service = service;
324 }
325
326 private static AssetEntryLocalService _service;
327 }