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.DLFileShortcut;
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.service.ServiceContext;
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    /**
032     * Provides the remote service interface for DLFileShortcut. Methods of this
033     * service are expected to have security checks based on the propagated JAAS
034     * credentials because this service can be accessed remotely.
035     *
036     * @author Brian Wing Shun Chan
037     * @see DLFileShortcutServiceUtil
038     * @see com.liferay.portlet.documentlibrary.service.base.DLFileShortcutServiceBaseImpl
039     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutServiceImpl
040     * @generated
041     */
042    @AccessControlled
043    @JSONWebService
044    @ProviderType
045    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
046            PortalException.class, SystemException.class})
047    public interface DLFileShortcutService extends BaseService {
048            /*
049             * NOTE FOR DEVELOPERS:
050             *
051             * Never modify or reference this interface directly. Always use {@link DLFileShortcutServiceUtil} to access the document library file shortcut remote service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
052             */
053            public DLFileShortcut addFileShortcut(long groupId, long repositoryId,
054                    long folderId, long toFileEntryId, ServiceContext serviceContext)
055                    throws PortalException;
056    
057            public void deleteFileShortcut(long fileShortcutId)
058                    throws PortalException;
059    
060            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061            public DLFileShortcut getFileShortcut(long fileShortcutId)
062                    throws PortalException;
063    
064            /**
065            * Returns the OSGi service identifier.
066            *
067            * @return the OSGi service identifier
068            */
069            public java.lang.String getOSGiServiceIdentifier();
070    
071            public DLFileShortcut updateFileShortcut(long fileShortcutId,
072                    long repositoryId, long folderId, long toFileEntryId,
073                    ServiceContext serviceContext) throws PortalException;
074    
075            public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId)
076                    throws PortalException;
077    }