1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface DLFileShortcutService {
58 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
59 long folderId, long toFolderId, java.lang.String toName,
60 boolean addCommunityPermissions, boolean addGuestPermissions)
61 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
65 long folderId, long toFolderId, java.lang.String toName,
66 java.lang.String[] communityPermissions,
67 java.lang.String[] guestPermissions)
68 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException;
70
71 public void deleteFileShortcut(long fileShortcutId)
72 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
77 long fileShortcutId)
78 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
82 long fileShortcutId, long folderId, long toFolderId,
83 java.lang.String toName)
84 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86 }