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