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