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            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
092                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
093                    java.lang.String className, long classPK, java.lang.String classUuid,
094                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
095                    boolean visible, java.util.Date startDate, java.util.Date endDate,
096                    java.util.Date expirationDate, java.lang.String mimeType,
097                    java.lang.String title, java.lang.String description,
098                    java.lang.String summary, java.lang.String url,
099                    java.lang.String layoutUuid, int height, int width,
100                    java.lang.Double priority)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return getService()
103                                       .updateEntry(groupId, createDate, modifiedDate, className,
104                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
105                            startDate, endDate, expirationDate, mimeType, title, description,
106                            summary, url, layoutUuid, height, width, priority);
107            }
108    
109            /**
110            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, Date,
111            Date, String, long, String, long, long[], String[], boolean,
112            Date, Date, Date, String, String, String, String, String,
113            String, int, int, Double)}
114            */
115            @Deprecated
116            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
117                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
118                    java.lang.String className, long classPK, java.lang.String classUuid,
119                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
120                    boolean visible, java.util.Date startDate, java.util.Date endDate,
121                    java.util.Date expirationDate, java.lang.String mimeType,
122                    java.lang.String title, java.lang.String description,
123                    java.lang.String summary, java.lang.String url,
124                    java.lang.String layoutUuid, int height, int width,
125                    java.lang.Integer priority, boolean sync)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    return getService()
128                                       .updateEntry(groupId, createDate, modifiedDate, className,
129                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
130                            startDate, endDate, expirationDate, mimeType, title, description,
131                            summary, url, layoutUuid, height, width, priority, sync);
132            }
133    
134            public static AssetEntryService getService() {
135                    if (_service == null) {
136                            _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
137    
138                            ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
139                                    "_service");
140                    }
141    
142                    return _service;
143            }
144    
145            private static AssetEntryService _service;
146    }