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            public static com.liferay.portlet.asset.model.AssetEntry fetchEntry(
044                    long entryId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    return getService().fetchEntry(entryId);
047            }
048    
049            /**
050            * Returns the Spring bean ID for this bean.
051            *
052            * @return the Spring bean ID for this bean
053            */
054            public static java.lang.String getBeanIdentifier() {
055                    return getService().getBeanIdentifier();
056            }
057    
058            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
059                    long companyId, int start, int end) {
060                    return getService().getCompanyEntries(companyId, start, end);
061            }
062    
063            public static int getCompanyEntriesCount(long companyId) {
064                    return getService().getCompanyEntriesCount(companyId);
065            }
066    
067            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
068                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    return getService().getEntries(entryQuery);
071            }
072    
073            public static int getEntriesCount(
074                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return getService().getEntriesCount(entryQuery);
077            }
078    
079            public static com.liferay.portlet.asset.model.AssetEntry getEntry(
080                    long entryId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return getService().getEntry(entryId);
083            }
084    
085            public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
086                    java.lang.String className, long classPK)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    return getService().incrementViewCounter(className, classPK);
089            }
090    
091            /**
092            * Sets the Spring bean ID for this bean.
093            *
094            * @param beanIdentifier the Spring bean ID for this bean
095            */
096            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
097                    getService().setBeanIdentifier(beanIdentifier);
098            }
099    
100            /**
101            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, Date,
102            Date, String, long, String, long, long[], String[], boolean,
103            Date, Date, Date, String, String, String, String, String,
104            String, int, int, Integer, boolean)}
105            */
106            @Deprecated
107            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
108                    long groupId, java.lang.String className, long classPK,
109                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
110                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
111                    java.util.Date endDate, java.util.Date expirationDate,
112                    java.lang.String mimeType, java.lang.String title,
113                    java.lang.String description, java.lang.String summary,
114                    java.lang.String url, java.lang.String layoutUuid, int height,
115                    int width, java.lang.Integer priority, boolean sync)
116                    throws com.liferay.portal.kernel.exception.PortalException {
117                    return getService()
118                                       .updateEntry(groupId, className, classPK, classUuid,
119                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
120                            expirationDate, mimeType, title, description, summary, url,
121                            layoutUuid, height, width, priority, sync);
122            }
123    
124            /**
125            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, String,
126            long, String, long, long[], String[], boolean, Date, Date,
127            Date, String, String, String, String, String, String, int,
128            int, Integer, boolean)}
129            */
130            @Deprecated
131            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
132                    long groupId, java.lang.String className, long classPK,
133                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
134                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
135                    java.util.Date endDate, java.util.Date publishDate,
136                    java.util.Date expirationDate, java.lang.String mimeType,
137                    java.lang.String title, java.lang.String description,
138                    java.lang.String summary, java.lang.String url,
139                    java.lang.String layoutUuid, int height, int width,
140                    java.lang.Integer priority, boolean sync)
141                    throws com.liferay.portal.kernel.exception.PortalException {
142                    return getService()
143                                       .updateEntry(groupId, className, classPK, classUuid,
144                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
145                            publishDate, expirationDate, mimeType, title, description, summary,
146                            url, layoutUuid, height, width, priority, sync);
147            }
148    
149            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
150                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
151                    java.lang.String className, long classPK, java.lang.String classUuid,
152                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
153                    boolean visible, java.util.Date startDate, java.util.Date endDate,
154                    java.util.Date expirationDate, java.lang.String mimeType,
155                    java.lang.String title, java.lang.String description,
156                    java.lang.String summary, java.lang.String url,
157                    java.lang.String layoutUuid, int height, int width,
158                    java.lang.Integer priority)
159                    throws com.liferay.portal.kernel.exception.PortalException {
160                    return getService()
161                                       .updateEntry(groupId, createDate, modifiedDate, className,
162                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
163                            startDate, endDate, expirationDate, mimeType, title, description,
164                            summary, url, layoutUuid, height, width, priority);
165            }
166    
167            /**
168            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, Date,
169            Date, String, long, String, long, long[], String[], boolean,
170            Date, Date, Date, String, String, String, String, String,
171            String, int, int, Integer)}
172            */
173            @Deprecated
174            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
175                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
176                    java.lang.String className, long classPK, java.lang.String classUuid,
177                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
178                    boolean visible, java.util.Date startDate, java.util.Date endDate,
179                    java.util.Date expirationDate, java.lang.String mimeType,
180                    java.lang.String title, java.lang.String description,
181                    java.lang.String summary, java.lang.String url,
182                    java.lang.String layoutUuid, int height, int width,
183                    java.lang.Integer priority, boolean sync)
184                    throws com.liferay.portal.kernel.exception.PortalException {
185                    return getService()
186                                       .updateEntry(groupId, createDate, modifiedDate, className,
187                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
188                            startDate, endDate, expirationDate, mimeType, title, description,
189                            summary, url, layoutUuid, height, width, priority, sync);
190            }
191    
192            public static AssetEntryService getService() {
193                    if (_service == null) {
194                            _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
195    
196                            ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
197                                    "_service");
198                    }
199    
200                    return _service;
201            }
202    
203            /**
204             * @deprecated As of 6.2.0
205             */
206            @Deprecated
207            public void setService(AssetEntryService service) {
208            }
209    
210            private static AssetEntryService _service;
211    }