001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AssetEntryLocalServiceUtil {
033 public static com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
034 com.liferay.portlet.asset.model.AssetEntry assetEntry)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addAssetEntry(assetEntry);
037 }
038
039 public static com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
040 long entryId) {
041 return getService().createAssetEntry(entryId);
042 }
043
044 public static void deleteAssetEntry(long entryId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteAssetEntry(entryId);
048 }
049
050 public static void deleteAssetEntry(
051 com.liferay.portlet.asset.model.AssetEntry assetEntry)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteAssetEntry(assetEntry);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
087 long entryId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getAssetEntry(entryId);
091 }
092
093 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getAssetEntries(start, end);
097 }
098
099 public static int getAssetEntriesCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getAssetEntriesCount();
102 }
103
104 public static com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
105 com.liferay.portlet.asset.model.AssetEntry assetEntry)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateAssetEntry(assetEntry);
108 }
109
110 public static com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
111 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().updateAssetEntry(assetEntry, merge);
114 }
115
116 public static void deleteEntry(
117 com.liferay.portlet.asset.model.AssetEntry entry)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 getService().deleteEntry(entry);
121 }
122
123 public static void deleteEntry(long entryId)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 getService().deleteEntry(entryId);
127 }
128
129 public static void deleteEntry(java.lang.String className, long classPK)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 getService().deleteEntry(className, classPK);
133 }
134
135 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
136 long entryId)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getService().getAncestorEntries(entryId);
140 }
141
142 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
143 long entryId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 return getService().getChildEntries(entryId);
147 }
148
149 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
150 long companyId, int start, int end)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService().getCompanyEntries(companyId, start, end);
153 }
154
155 public static int getCompanyEntriesCount(long companyId)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getService().getCompanyEntriesCount(companyId);
158 }
159
160 public static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
161 long companyId, int start, int end, java.lang.String languageId)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getService()
164 .getCompanyEntryDisplays(companyId, start, end, languageId);
165 }
166
167 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
168 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().getEntries(entryQuery);
171 }
172
173 public static int getEntriesCount(
174 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getService().getEntriesCount(entryQuery);
177 }
178
179 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
180 long entryId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 return getService().getEntry(entryId);
184 }
185
186 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
187 long groupId, java.lang.String classUuid)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getService().getEntry(groupId, classUuid);
191 }
192
193 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
194 java.lang.String className, long classPK)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return getService().getEntry(className, classPK);
198 }
199
200 public static com.liferay.portlet.asset.model.AssetEntry getNextEntry(
201 long entryId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getNextEntry(entryId);
205 }
206
207 public static com.liferay.portlet.asset.model.AssetEntry getParentEntry(
208 long entryId)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService().getParentEntry(entryId);
212 }
213
214 public static com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
215 long entryId)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException {
218 return getService().getPreviousEntry(entryId);
219 }
220
221 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
222 java.lang.String className, boolean asc, int start, int end)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return getService().getTopViewedEntries(className, asc, start, end);
225 }
226
227 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
228 java.lang.String[] className, boolean asc, int start, int end)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().getTopViewedEntries(className, asc, start, end);
231 }
232
233 public static void incrementViewCounter(long userId,
234 java.lang.String className, long classPK)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException {
237 getService().incrementViewCounter(userId, className, classPK);
238 }
239
240 public static void incrementViewCounter(long userId,
241 java.lang.String className, long classPK, int increment)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException {
244 getService().incrementViewCounter(userId, className, classPK, increment);
245 }
246
247 public static com.liferay.portal.kernel.search.Hits search(long companyId,
248 java.lang.String portletId, java.lang.String keywords, int start,
249 int end) throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().search(companyId, portletId, keywords, start, end);
251 }
252
253 public static com.liferay.portal.kernel.search.Hits search(long companyId,
254 long[] groupIds, java.lang.String portletId, java.lang.String userName,
255 java.lang.String title, java.lang.String description,
256 java.lang.String assetCategoryIds, java.lang.String assetTagNames,
257 boolean andSearch, int start, int end)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getService()
260 .search(companyId, groupIds, portletId, userName, title,
261 description, assetCategoryIds, assetTagNames, andSearch, start, end);
262 }
263
264 public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
265 long companyId, java.lang.String portletId, java.lang.String keywords,
266 java.lang.String languageId, int start, int end)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getService()
269 .searchEntryDisplays(companyId, portletId, keywords,
270 languageId, start, end);
271 }
272
273 public static int searchEntryDisplaysCount(long companyId,
274 java.lang.String portletId, java.lang.String keywords,
275 java.lang.String languageId)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getService()
278 .searchEntryDisplaysCount(companyId, portletId, keywords,
279 languageId);
280 }
281
282 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
283 long userId, long groupId, java.lang.String className, long classPK,
284 long[] categoryIds, java.lang.String[] tagNames)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException {
287 return getService()
288 .updateEntry(userId, groupId, className, classPK,
289 categoryIds, tagNames);
290 }
291
292 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
293 long userId, long groupId, java.lang.String className, long classPK,
294 java.lang.String classUuid, long[] categoryIds,
295 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
296 java.util.Date endDate, java.util.Date publishDate,
297 java.util.Date expirationDate, java.lang.String mimeType,
298 java.lang.String title, java.lang.String description,
299 java.lang.String summary, java.lang.String url, int height, int width,
300 java.lang.Integer priority, boolean sync)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 return getService()
304 .updateEntry(userId, groupId, className, classPK, classUuid,
305 categoryIds, tagNames, visible, startDate, endDate, publishDate,
306 expirationDate, mimeType, title, description, summary, url, height,
307 width, priority, sync);
308 }
309
310 public static com.liferay.portlet.asset.model.AssetEntry updateVisible(
311 java.lang.String className, long classPK, boolean visible)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 return getService().updateVisible(className, classPK, visible);
315 }
316
317 public static void validate(java.lang.String className, long[] categoryIds,
318 java.lang.String[] tagNames)
319 throws com.liferay.portal.kernel.exception.PortalException {
320 getService().validate(className, categoryIds, tagNames);
321 }
322
323 public static AssetEntryLocalService getService() {
324 if (_service == null) {
325 _service = (AssetEntryLocalService)PortalBeanLocatorUtil.locate(AssetEntryLocalService.class.getName());
326 }
327
328 return _service;
329 }
330
331 public void setService(AssetEntryLocalService service) {
332 _service = service;
333 }
334
335 private static AssetEntryLocalService _service;
336 }