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.document.library.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.document.library.kernel.model.DLFileVersion;
020    
021    import com.liferay.portal.kernel.exception.PortalException;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
024    import com.liferay.portal.kernel.security.access.control.AccessControlled;
025    import com.liferay.portal.kernel.service.BaseService;
026    import com.liferay.portal.kernel.transaction.Isolation;
027    import com.liferay.portal.kernel.transaction.Propagation;
028    import com.liferay.portal.kernel.transaction.Transactional;
029    
030    import java.util.List;
031    
032    /**
033     * Provides the remote service interface for DLFileVersion. Methods of this
034     * service are expected to have security checks based on the propagated JAAS
035     * credentials because this service can be accessed remotely.
036     *
037     * @author Brian Wing Shun Chan
038     * @see DLFileVersionServiceUtil
039     * @see com.liferay.portlet.documentlibrary.service.base.DLFileVersionServiceBaseImpl
040     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileVersionServiceImpl
041     * @generated
042     */
043    @AccessControlled
044    @JSONWebService
045    @ProviderType
046    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
047            PortalException.class, SystemException.class})
048    public interface DLFileVersionService extends BaseService {
049            /*
050             * NOTE FOR DEVELOPERS:
051             *
052             * Never modify or reference this interface directly. Always use {@link DLFileVersionServiceUtil} to access the document library file version remote service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileVersionServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
053             */
054            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
055            public DLFileVersion getFileVersion(long fileVersionId)
056                    throws PortalException;
057    
058            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059            public List<DLFileVersion> getFileVersions(long fileEntryId, int status)
060                    throws PortalException;
061    
062            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063            public int getFileVersionsCount(long fileEntryId, int status)
064                    throws PortalException;
065    
066            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
067            public DLFileVersion getLatestFileVersion(long fileEntryId)
068                    throws PortalException;
069    
070            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071            public DLFileVersion getLatestFileVersion(long fileEntryId,
072                    boolean excludeWorkingCopy) throws PortalException;
073    
074            /**
075            * Returns the OSGi service identifier.
076            *
077            * @return the OSGi service identifier
078            */
079            public java.lang.String getOSGiServiceIdentifier();
080    }