001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link AssetEntryLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       AssetEntryLocalService
030     * @generated
031     */
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 com.liferay.portal.kernel.search.Hits search(long companyId,
241                    java.lang.String portletId, java.lang.String keywords, int start,
242                    int end) throws com.liferay.portal.kernel.exception.SystemException {
243                    return getService().search(companyId, portletId, keywords, start, end);
244            }
245    
246            public static com.liferay.portal.kernel.search.Hits search(long companyId,
247                    long[] groupIds, java.lang.String portletId, java.lang.String userName,
248                    java.lang.String title, java.lang.String description,
249                    java.lang.String assetCategoryIds, java.lang.String assetTagNames,
250                    boolean andSearch, int start, int end)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getService()
253                                       .search(companyId, groupIds, portletId, userName, title,
254                            description, assetCategoryIds, assetTagNames, andSearch, start, end);
255            }
256    
257            public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
258                    long companyId, java.lang.String portletId, java.lang.String keywords,
259                    java.lang.String languageId, int start, int end)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return getService()
262                                       .searchEntryDisplays(companyId, portletId, keywords,
263                            languageId, start, end);
264            }
265    
266            public static int searchEntryDisplaysCount(long companyId,
267                    java.lang.String portletId, java.lang.String keywords,
268                    java.lang.String languageId)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return getService()
271                                       .searchEntryDisplaysCount(companyId, portletId, keywords,
272                            languageId);
273            }
274    
275            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
276                    long userId, long groupId, java.lang.String className, long classPK,
277                    long[] categoryIds, java.lang.String[] tagNames)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return getService()
281                                       .updateEntry(userId, groupId, className, classPK,
282                            categoryIds, tagNames);
283            }
284    
285            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
286                    long userId, long groupId, java.lang.String className, long classPK,
287                    java.lang.String classUuid, long[] categoryIds,
288                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
289                    java.util.Date endDate, java.util.Date publishDate,
290                    java.util.Date expirationDate, java.lang.String mimeType,
291                    java.lang.String title, java.lang.String description,
292                    java.lang.String summary, java.lang.String url, int height, int width,
293                    java.lang.Integer priority, boolean sync)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    return getService()
297                                       .updateEntry(userId, groupId, className, classPK, classUuid,
298                            categoryIds, tagNames, visible, startDate, endDate, publishDate,
299                            expirationDate, mimeType, title, description, summary, url, height,
300                            width, priority, sync);
301            }
302    
303            public static com.liferay.portlet.asset.model.AssetEntry updateVisible(
304                    java.lang.String className, long classPK, boolean visible)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return getService().updateVisible(className, classPK, visible);
308            }
309    
310            public static void validate(java.lang.String className, long[] categoryIds,
311                    java.lang.String[] tagNames)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    getService().validate(className, categoryIds, tagNames);
314            }
315    
316            public static AssetEntryLocalService getService() {
317                    if (_service == null) {
318                            _service = (AssetEntryLocalService)PortalBeanLocatorUtil.locate(AssetEntryLocalService.class.getName());
319                    }
320    
321                    return _service;
322            }
323    
324            public void setService(AssetEntryLocalService service) {
325                    _service = service;
326            }
327    
328            private static AssetEntryLocalService _service;
329    }