public class SnapshotTaskClientImpl extends Object implements SnapshotTaskClient
| Constructor and Description |
|---|
SnapshotTaskClientImpl(ContentStore contentStore) |
| Modifier and Type | Method and Description |
|---|---|
CleanupSnapshotTaskResult |
cleanupSnapshot(String spaceId)
Cleans up content that is no longer needed now that the snapshot
has been transferred successfully.
|
CompleteRestoreTaskResult |
completeRestore(String spaceId,
int daysToExpire)
Performs setup necessary to expire content which has been restored.
|
CompleteSnapshotTaskResult |
completeSnapshot(String spaceId)
Completes the snapshot.
|
CreateSnapshotTaskResult |
createSnapshot(String spaceId,
String description,
String userEmail)
Begins the process of creating a snapshot by collecting the necessary
information and passing it down to the snapshot bridge application.
|
GetRestoreTaskResult |
getRestore(String restoreId)
Gets the status and details of a snapshot restore action based on the
ID of the restore.
|
GetRestoreTaskResult |
getRestoreBySnapshot(String snapshotId)
Gets the status and details of a snapshot restore action based on the
ID of the original snapshot.
|
GetSnapshotTaskResult |
getSnapshot(String snapshotId)
Gets the status and details of a snapshot action.
|
GetSnapshotContentsTaskResult |
getSnapshotContents(String snapshotId,
int pageNumber,
int pageSize,
String prefix)
Gets the list of content items that are contained in the snapshot.
|
GetSnapshotHistoryTaskResult |
getSnapshotHistory(String snapshotId,
int pageNumber,
int pageSize)
Gets the list of history items that are contained in the snapshot.
|
GetSnapshotListTaskResult |
getSnapshots()
Gets a listing of snapshots which are accessible to this account
|
RequestRestoreSnapshotTaskResult |
requestRestoreSnapshot(String snapshotId,
String userEmail)
Sends a snapshot restore request to the DuraCloud Admin.
|
RestoreSnapshotTaskResult |
restoreSnapshot(String snapshotId,
String userEmail)
Begins the process of restoring a snapshot by creating a landing space and
informing the snapshot bridge application that a restore action needs to be
performed.
|
public SnapshotTaskClientImpl(ContentStore contentStore)
public CreateSnapshotTaskResult createSnapshot(String spaceId, String description, String userEmail) throws ContentStoreException
createSnapshot in interface SnapshotTaskClientspaceId - the ID of the space where the content to snapshot residesdescription - of the snapshotuserEmail - address to inform when the snapshot is completeContentStoreException - on errorpublic GetSnapshotTaskResult getSnapshot(String snapshotId) throws ContentStoreException
getSnapshot in interface SnapshotTaskClientsnapshotId - the ID of the snapshot to retrieveContentStoreException - on errorpublic CleanupSnapshotTaskResult cleanupSnapshot(String spaceId) throws ContentStoreException
cleanupSnapshot in interface SnapshotTaskClientContentStoreExceptionpublic CompleteSnapshotTaskResult completeSnapshot(String spaceId) throws ContentStoreException
completeSnapshot in interface SnapshotTaskClientspaceId - the ID of the space that hosted the snapshot contentContentStoreException - on errorpublic GetSnapshotListTaskResult getSnapshots() throws ContentStoreException
getSnapshots in interface SnapshotTaskClientContentStoreException - on errorpublic GetSnapshotContentsTaskResult getSnapshotContents(String snapshotId, int pageNumber, int pageSize, String prefix) throws ContentStoreException
getSnapshotContents in interface SnapshotTaskClientsnapshotId - the ID of the snapshot to retrievepageNumber - the page number of result set pagespageSize - the maximum number of content items to include in the result setprefix - an optional prefix used to find content itemsContentStoreException - on errorpublic GetSnapshotHistoryTaskResult getSnapshotHistory(String snapshotId, int pageNumber, int pageSize) throws ContentStoreException
SnapshotTaskClientgetSnapshotHistory in interface SnapshotTaskClientsnapshotId - the ID of the snapshot to retrievepageNumber - the page number of result set pagespageSize - the maximum number of content items to include in the result setContentStoreException - on errorpublic RestoreSnapshotTaskResult restoreSnapshot(String snapshotId, String userEmail) throws ContentStoreException
restoreSnapshot in interface SnapshotTaskClientsnapshotId - the ID of the snapshot to restoreuserEmail - address to inform when restoration is completeContentStoreException - on errorpublic RequestRestoreSnapshotTaskResult requestRestoreSnapshot(String snapshotId, String userEmail) throws ContentStoreException
requestRestoreSnapshot in interface SnapshotTaskClientsnapshotId - the ID of the snapshot to restoreuserEmail - address to inform when restore starts and completes.ContentStoreException - on errorpublic CompleteRestoreTaskResult completeRestore(String spaceId, int daysToExpire) throws ContentStoreException
completeRestore in interface SnapshotTaskClientspaceId - the ID of the space to which content was restoreddaysToExpire - length of time before restored content expires (in days)ContentStoreException - on errorpublic GetRestoreTaskResult getRestore(String restoreId) throws ContentStoreException
getRestore in interface SnapshotTaskClientContentStoreException - on errorpublic GetRestoreTaskResult getRestoreBySnapshot(String snapshotId) throws ContentStoreException
getRestoreBySnapshot in interface SnapshotTaskClientContentStoreException - on errorCopyright © 2009–2019 DuraSpace. All rights reserved.