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     * The utility for the asset entry remote service. This utility wraps {@link com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetEntryService
032     * @see com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
034     * @generated
035     */
036    public class AssetEntryServiceUtil {
037            public static void deleteEntry(long entryId)
038                    throws com.liferay.portal.kernel.exception.PortalException,
039                            com.liferay.portal.kernel.exception.SystemException {
040                    getService().deleteEntry(entryId);
041            }
042    
043            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
044                    long companyId, int start, int end)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return getService().getCompanyEntries(companyId, start, end);
047            }
048    
049            public static int getCompanyEntriesCount(long companyId)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().getCompanyEntriesCount(companyId);
052            }
053    
054            public static java.lang.String getCompanyEntriesRSS(long companyId,
055                    int max, java.lang.String type, double version,
056                    java.lang.String displayStyle, java.lang.String feedURL,
057                    java.lang.String tagURL)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return getService()
061                                       .getCompanyEntriesRSS(companyId, max, type, version,
062                            displayStyle, feedURL, tagURL);
063            }
064    
065            public static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
066                    long companyId, int start, int end, java.lang.String languageId)
067                    throws com.liferay.portal.kernel.exception.SystemException {
068                    return getService()
069                                       .getCompanyEntryDisplays(companyId, start, end, languageId);
070            }
071    
072            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
073                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().getEntries(entryQuery);
077            }
078    
079            public static int getEntriesCount(
080                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return getService().getEntriesCount(entryQuery);
084            }
085    
086            public static java.lang.String getEntriesRSS(
087                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
088                    java.lang.String name, java.lang.String type, double version,
089                    java.lang.String displayStyle, java.lang.String feedURL,
090                    java.lang.String tagURL)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService()
094                                       .getEntriesRSS(entryQuery, name, type, version,
095                            displayStyle, feedURL, tagURL);
096            }
097    
098            public static com.liferay.portlet.asset.model.AssetEntry getEntry(
099                    long entryId)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    return getService().getEntry(entryId);
103            }
104    
105            public static void incrementViewCounter(java.lang.String className,
106                    long classPK)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    getService().incrementViewCounter(className, classPK);
110            }
111    
112            public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
113                    long companyId, java.lang.String portletId, java.lang.String keywords,
114                    java.lang.String languageId, int start, int end)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return getService()
117                                       .searchEntryDisplays(companyId, portletId, keywords,
118                            languageId, start, end);
119            }
120    
121            public static int searchEntryDisplaysCount(long companyId,
122                    java.lang.String portletId, java.lang.String keywords,
123                    java.lang.String languageId)
124                    throws com.liferay.portal.kernel.exception.SystemException {
125                    return getService()
126                                       .searchEntryDisplaysCount(companyId, portletId, keywords,
127                            languageId);
128            }
129    
130            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
131                    long groupId, java.lang.String className, long classPK,
132                    java.lang.String classUuid, long[] categoryIds,
133                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
134                    java.util.Date endDate, java.util.Date publishDate,
135                    java.util.Date expirationDate, java.lang.String mimeType,
136                    java.lang.String title, java.lang.String description,
137                    java.lang.String summary, java.lang.String url, int height, int width,
138                    java.lang.Integer priority, boolean sync)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    return getService()
142                                       .updateEntry(groupId, className, classPK, classUuid,
143                            categoryIds, tagNames, visible, startDate, endDate, publishDate,
144                            expirationDate, mimeType, title, description, summary, url, height,
145                            width, priority, sync);
146            }
147    
148            public static AssetEntryService getService() {
149                    if (_service == null) {
150                            _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
151                    }
152    
153                    return _service;
154            }
155    
156            public void setService(AssetEntryService service) {
157                    _service = service;
158            }
159    
160            private static AssetEntryService _service;
161    }