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