001    /**
002     * Copyright (c) 2000-2013 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    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for AssetEntry. This utility wraps
022     * {@link com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see AssetEntryService
030     * @see com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
031     * @see com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
032     * @generated
033     */
034    public class AssetEntryServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
060                    long companyId, int start, int end)
061                    throws com.liferay.portal.kernel.exception.SystemException {
062                    return getService().getCompanyEntries(companyId, start, end);
063            }
064    
065            public static int getCompanyEntriesCount(long companyId)
066                    throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().getCompanyEntriesCount(companyId);
068            }
069    
070            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
071                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return getService().getEntries(entryQuery);
075            }
076    
077            public static int getEntriesCount(
078                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return getService().getEntriesCount(entryQuery);
082            }
083    
084            public static com.liferay.portlet.asset.model.AssetEntry getEntry(
085                    long entryId)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    return getService().getEntry(entryId);
089            }
090    
091            public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
092                    java.lang.String className, long classPK)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return getService().incrementViewCounter(className, classPK);
096            }
097    
098            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
099                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
100                    java.lang.String className, long classPK, java.lang.String classUuid,
101                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
102                    boolean visible, java.util.Date startDate, java.util.Date endDate,
103                    java.util.Date expirationDate, java.lang.String mimeType,
104                    java.lang.String title, java.lang.String description,
105                    java.lang.String summary, java.lang.String url,
106                    java.lang.String layoutUuid, int height, int width,
107                    java.lang.Integer priority, boolean sync)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    return getService()
111                                       .updateEntry(groupId, createDate, modifiedDate, className,
112                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
113                            startDate, endDate, expirationDate, mimeType, title, description,
114                            summary, url, layoutUuid, height, width, priority, sync);
115            }
116    
117            /**
118            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, String,
119            long, String, long, long[], String[], boolean, Date, Date,
120            Date, String, String, String, String, String, String, int,
121            int, Integer, boolean)}
122            */
123            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
124                    long groupId, java.lang.String className, long classPK,
125                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
126                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
127                    java.util.Date endDate, java.util.Date publishDate,
128                    java.util.Date expirationDate, java.lang.String mimeType,
129                    java.lang.String title, java.lang.String description,
130                    java.lang.String summary, java.lang.String url,
131                    java.lang.String layoutUuid, int height, int width,
132                    java.lang.Integer priority, boolean sync)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return getService()
136                                       .updateEntry(groupId, className, classPK, classUuid,
137                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
138                            publishDate, expirationDate, mimeType, title, description, summary,
139                            url, layoutUuid, height, width, priority, sync);
140            }
141    
142            /**
143            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, Date,
144            Date, String, long, String, long, long[], String[], boolean,
145            Date, Date, Date, String, String, String, String, String,
146            String, int, int, Integer, boolean)}
147            */
148            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
149                    long groupId, java.lang.String className, long classPK,
150                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
151                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
152                    java.util.Date endDate, java.util.Date expirationDate,
153                    java.lang.String mimeType, java.lang.String title,
154                    java.lang.String description, java.lang.String summary,
155                    java.lang.String url, java.lang.String layoutUuid, int height,
156                    int width, java.lang.Integer priority, boolean sync)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    return getService()
160                                       .updateEntry(groupId, className, classPK, classUuid,
161                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
162                            expirationDate, mimeType, title, description, summary, url,
163                            layoutUuid, height, width, priority, sync);
164            }
165    
166            public static AssetEntryService getService() {
167                    if (_service == null) {
168                            _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
169    
170                            ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
171                                    "_service");
172                    }
173    
174                    return _service;
175            }
176    
177            /**
178             * @deprecated As of 6.2.0
179             */
180            public void setService(AssetEntryService service) {
181            }
182    
183            private static AssetEntryService _service;
184    }