|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.documentlibrary.service.DLTrashServiceUtil
@ProviderType public class DLTrashServiceUtil
Provides the remote service utility for DLTrash. This utility wraps
DLTrashServiceImpl and is the
primary access point for service operations in application layer code running
on a remote server. Methods of this service are expected to have security
checks based on the propagated JAAS credentials because this service can be
accessed remotely.
DLTrashService,
DLTrashServiceBaseImpl,
DLTrashServiceImpl| Constructor Summary | |
|---|---|
DLTrashServiceUtil()
|
|
| Method Summary | |
|---|---|
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier. |
static DLTrashService |
getService()
|
static FileEntry |
moveFileEntryFromTrash(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
Moves the file entry from a trashed folder to the new folder. |
static FileEntry |
moveFileEntryToTrash(long fileEntryId)
Moves the file entry with the primary key to the trash portlet. |
static FileShortcut |
moveFileShortcutFromTrash(long fileShortcutId,
long newFolderId,
ServiceContext serviceContext)
Moves the file shortcut from a trashed folder to the new folder. |
static FileShortcut |
moveFileShortcutToTrash(long fileShortcutId)
Moves the file shortcut with the primary key to the trash portlet. |
static Folder |
moveFolderFromTrash(long folderId,
long parentFolderId,
ServiceContext serviceContext)
Moves the folder with the primary key from the trash portlet to the new parent folder with the primary key. |
static Folder |
moveFolderToTrash(long folderId)
Moves the folder with the primary key to the trash portlet. |
static void |
restoreFileEntryFromTrash(long fileEntryId)
Restores the file entry with the primary key from the trash portlet. |
static void |
restoreFileShortcutFromTrash(long fileShortcutId)
Restores the file shortcut with the primary key from the trash portlet. |
static void |
restoreFolderFromTrash(long folderId)
Restores the folder with the primary key from the trash portlet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DLTrashServiceUtil()
| Method Detail |
|---|
public static String getOSGiServiceIdentifier()
public static FileEntry moveFileEntryFromTrash(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException
fileEntryId - the primary key of the file entrynewFolderId - the primary key of the new folderserviceContext - the service context to be applied
PortalException
public static FileEntry moveFileEntryToTrash(long fileEntryId)
throws PortalException
fileEntryId - the primary key of the file entry
PortalException
public static FileShortcut moveFileShortcutFromTrash(long fileShortcutId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException
fileShortcutId - the primary key of the file shortcutnewFolderId - the primary key of the new folderserviceContext - the service context to be applied
PortalException
public static FileShortcut moveFileShortcutToTrash(long fileShortcutId)
throws PortalException
fileShortcutId - the primary key of the file shortcut
PortalException
public static Folder moveFolderFromTrash(long folderId,
long parentFolderId,
ServiceContext serviceContext)
throws PortalException
folderId - the primary key of the folderparentFolderId - the primary key of the new parent folderserviceContext - the service context to be applied
PortalException
public static Folder moveFolderToTrash(long folderId)
throws PortalException
folderId - the primary key of the folder
PortalException
public static void restoreFileEntryFromTrash(long fileEntryId)
throws PortalException
fileEntryId - the primary key of the file entry
PortalException
public static void restoreFileShortcutFromTrash(long fileShortcutId)
throws PortalException
fileShortcutId - the primary key of the file shortcut
PortalException
public static void restoreFolderFromTrash(long folderId)
throws PortalException
folderId - the primary key of the folder
PortalExceptionpublic static DLTrashService getService()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||