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