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 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 com.liferay.portal.service.ServiceContext serviceContext)
67 throws com.liferay.portal.PortalException,
68 com.liferay.portal.SystemException;
69
70 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
71 long folderId, long toFolderId, java.lang.String toName,
72 java.lang.String[] communityPermissions,
73 java.lang.String[] guestPermissions)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException;
76
77 public void deleteFileShortcut(long fileShortcutId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
83 long fileShortcutId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
88 long fileShortcutId, long folderId, long toFolderId,
89 java.lang.String toName)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
94 long fileShortcutId, long folderId, long toFolderId,
95 java.lang.String toName,
96 com.liferay.portal.service.ServiceContext serviceContext)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException;
99 }