001    /**
002     * Copyright (c) 2000-present 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            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
054                    long companyId, int start, int end) {
055                    return getService().getCompanyEntries(companyId, start, end);
056            }
057    
058            public static int getCompanyEntriesCount(long companyId) {
059                    return getService().getCompanyEntriesCount(companyId);
060            }
061    
062            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
063                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return getService().getEntries(entryQuery);
066            }
067    
068            public static int getEntriesCount(
069                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
070                    throws com.liferay.portal.kernel.exception.PortalException {
071                    return getService().getEntriesCount(entryQuery);
072            }
073    
074            public static com.liferay.portlet.asset.model.AssetEntry getEntry(
075                    long entryId)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return getService().getEntry(entryId);
078            }
079    
080            public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
081                    java.lang.String className, long classPK)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    return getService().incrementViewCounter(className, classPK);
084            }
085    
086            /**
087            * Sets the Spring bean ID for this bean.
088            *
089            * @param beanIdentifier the Spring bean ID for this bean
090            */
091            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
092                    getService().setBeanIdentifier(beanIdentifier);
093            }
094    
095            /**
096            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, Date,
097            Date, String, long, String, long, long[], String[], boolean,
098            Date, Date, Date, String, String, String, String, String,
099            String, int, int, Integer, boolean)}
100            */
101            @Deprecated
102            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
103                    long groupId, java.lang.String className, long classPK,
104                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
105                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
106                    java.util.Date endDate, java.util.Date expirationDate,
107                    java.lang.String mimeType, java.lang.String title,
108                    java.lang.String description, java.lang.String summary,
109                    java.lang.String url, java.lang.String layoutUuid, int height,
110                    int width, java.lang.Integer priority, boolean sync)
111                    throws com.liferay.portal.kernel.exception.PortalException {
112                    return getService()
113                                       .updateEntry(groupId, className, classPK, classUuid,
114                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
115                            expirationDate, mimeType, title, description, summary, url,
116                            layoutUuid, height, width, priority, sync);
117            }
118    
119            /**
120            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, String,
121            long, String, long, long[], String[], boolean, Date, Date,
122            Date, String, String, String, String, String, String, int,
123            int, Integer, boolean)}
124            */
125            @Deprecated
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                    return getService()
138                                       .updateEntry(groupId, className, classPK, classUuid,
139                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
140                            publishDate, expirationDate, mimeType, title, description, summary,
141                            url, layoutUuid, height, width, priority, sync);
142            }
143    
144            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
145                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
146                    java.lang.String className, long classPK, java.lang.String classUuid,
147                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
148                    boolean visible, java.util.Date startDate, java.util.Date endDate,
149                    java.util.Date expirationDate, java.lang.String mimeType,
150                    java.lang.String title, java.lang.String description,
151                    java.lang.String summary, java.lang.String url,
152                    java.lang.String layoutUuid, int height, int width,
153                    java.lang.Integer priority, boolean sync)
154                    throws com.liferay.portal.kernel.exception.PortalException {
155                    return getService()
156                                       .updateEntry(groupId, createDate, modifiedDate, className,
157                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
158                            startDate, endDate, expirationDate, mimeType, title, description,
159                            summary, url, layoutUuid, height, width, priority, sync);
160            }
161    
162            public static AssetEntryService getService() {
163                    if (_service == null) {
164                            _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
165    
166                            ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
167                                    "_service");
168                    }
169    
170                    return _service;
171            }
172    
173            /**
174             * @deprecated As of 6.2.0
175             */
176            @Deprecated
177            public void setService(AssetEntryService service) {
178            }
179    
180            private static AssetEntryService _service;
181    }