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