001
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
042 @AccessControlled
043 @JSONWebService
044 @ProviderType
045 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
046 PortalException.class, SystemException.class})
047 public interface DLFileShortcutService extends BaseService {
048
053 public DLFileShortcut addFileShortcut(long groupId, long repositoryId,
054 long folderId, long toFileEntryId, ServiceContext serviceContext)
055 throws PortalException;
056
057 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
058 public DLFileShortcut getFileShortcut(long fileShortcutId)
059 throws PortalException;
060
061 public DLFileShortcut updateFileShortcut(long fileShortcutId,
062 long repositoryId, long folderId, long toFileEntryId,
063 ServiceContext serviceContext) throws PortalException;
064
065
070 public java.lang.String getOSGiServiceIdentifier();
071
072 public void deleteFileShortcut(long fileShortcutId)
073 throws PortalException;
074
075 public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId)
076 throws PortalException;
077 }