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.asset.kernel.model.AssetEntry;
020    import com.liferay.asset.kernel.service.persistence.AssetEntryQuery;
021    
022    import com.liferay.portal.kernel.exception.PortalException;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
025    import com.liferay.portal.kernel.security.access.control.AccessControlled;
026    import com.liferay.portal.kernel.service.BaseService;
027    import com.liferay.portal.kernel.transaction.Isolation;
028    import com.liferay.portal.kernel.transaction.Propagation;
029    import com.liferay.portal.kernel.transaction.Transactional;
030    
031    import java.util.Date;
032    import java.util.List;
033    
034    /**
035     * Provides the remote service interface for AssetEntry. Methods of this
036     * service are expected to have security checks based on the propagated JAAS
037     * credentials because this service can be accessed remotely.
038     *
039     * @author Brian Wing Shun Chan
040     * @see AssetEntryServiceUtil
041     * @see com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
042     * @see com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
043     * @generated
044     */
045    @AccessControlled
046    @JSONWebService
047    @ProviderType
048    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
049            PortalException.class, SystemException.class})
050    public interface AssetEntryService extends BaseService {
051            /*
052             * NOTE FOR DEVELOPERS:
053             *
054             * Never modify or reference this interface directly. Always use {@link AssetEntryServiceUtil} to access the asset entry remote service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
055             */
056            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057            public AssetEntry fetchEntry(long entryId) throws PortalException;
058    
059            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060            public AssetEntry getEntry(long entryId) throws PortalException;
061    
062            public AssetEntry incrementViewCounter(java.lang.String className,
063                    long classPK) throws PortalException;
064    
065            /**
066            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, Date,
067            Date, String, long, String, long, long[], String[], boolean,
068            boolean, Date, Date, Date, Date, String, String, String,
069            String, String, String, int, int, Double)}
070            */
071            @java.lang.Deprecated
072            public AssetEntry updateEntry(long groupId, Date createDate,
073                    Date modifiedDate, java.lang.String className, long classPK,
074                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
075                    java.lang.String[] tagNames, boolean listable, boolean visible,
076                    Date startDate, Date endDate, Date expirationDate,
077                    java.lang.String mimeType, java.lang.String title,
078                    java.lang.String description, java.lang.String summary,
079                    java.lang.String url, java.lang.String layoutUuid, int height,
080                    int width, java.lang.Double priority) throws PortalException;
081    
082            public AssetEntry updateEntry(long groupId, Date createDate,
083                    Date modifiedDate, java.lang.String className, long classPK,
084                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
085                    java.lang.String[] tagNames, boolean listable, boolean visible,
086                    Date startDate, Date endDate, Date publishDate, Date expirationDate,
087                    java.lang.String mimeType, java.lang.String title,
088                    java.lang.String description, java.lang.String summary,
089                    java.lang.String url, java.lang.String layoutUuid, int height,
090                    int width, java.lang.Double priority) throws PortalException;
091    
092            /**
093            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, Date,
094            Date, String, long, String, long, long[], String[], boolean,
095            boolean, Date, Date, Date, Date, String, String, String,
096            String, String, String, int, int, Double)}
097            */
098            @java.lang.Deprecated
099            public AssetEntry updateEntry(long groupId, Date createDate,
100                    Date modifiedDate, java.lang.String className, long classPK,
101                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
102                    java.lang.String[] tagNames, boolean visible, Date startDate,
103                    Date endDate, Date expirationDate, java.lang.String mimeType,
104                    java.lang.String title, java.lang.String description,
105                    java.lang.String summary, java.lang.String url,
106                    java.lang.String layoutUuid, int height, int width,
107                    java.lang.Integer priority, boolean sync) throws PortalException;
108    
109            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110            public int getCompanyEntriesCount(long companyId);
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public int getEntriesCount(AssetEntryQuery entryQuery)
114                    throws PortalException;
115    
116            /**
117            * Returns the OSGi service identifier.
118            *
119            * @return the OSGi service identifier
120            */
121            public java.lang.String getOSGiServiceIdentifier();
122    
123            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124            public List<AssetEntry> getCompanyEntries(long companyId, int start, int end);
125    
126            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127            public List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
128                    throws PortalException;
129    }