|
eXo JCR :: Component :: Extension Service 1.16.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.ext.backup.server.HTTPBackupAgent
public class HTTPBackupAgent
Created by The eXo Platform SAS. HTTPBackupAgent is a RESTfull service on top of the BackupManager allowing to manage the backups and the restores.
| Nested Class Summary | |
|---|---|
static class |
HTTPBackupAgent.Constants
Definition the constants. |
| Constructor Summary | |
|---|---|
HTTPBackupAgent(RepositoryService repoService,
BackupManager backupManager,
SessionProviderService sessionProviderService)
ReplicationTestService constructor. |
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
dropWorkspace(String repository,
String workspace,
Boolean forceSessionClose)
Drops a given workspace. |
javax.ws.rs.core.Response |
getDefaultRepositoryConfig()
Gives the default repository configuration. |
javax.ws.rs.core.Response |
getDefaultWorkspaceConfig()
Gives the default workspace configuration. |
javax.ws.rs.core.Response |
info()
Gives info about the backup service. |
javax.ws.rs.core.Response |
infoBackup()
Gives info about all the current and completed backups. |
javax.ws.rs.core.Response |
infoBackupByRepository(String repository)
Gives info about all the current and completed backups of a specific repository. |
javax.ws.rs.core.Response |
infoBackupByWorkspace(String repository,
String workspace)
Gives info about all the current and completed backups of a specific workspace. |
javax.ws.rs.core.Response |
infoBackupCompleted()
Gives info about all the completed backups. |
javax.ws.rs.core.Response |
infoBackupCurrent()
Gives info about all the current backups. |
javax.ws.rs.core.Response |
infoBackupId(String id)
Gives full details about the current or completed backup corresponding to the given id. |
javax.ws.rs.core.Response |
infoBackupRepository()
Gives info about all the current and completed repository backups . |
javax.ws.rs.core.Response |
infoBackupRepositoryCompleted()
Gives info about all the completed repository backups. |
javax.ws.rs.core.Response |
infoBackupRepositoryCurrent()
Gives info about all the current repository backups. |
javax.ws.rs.core.Response |
infoBackupRepositoryId(String id)
Gives full details about the current or completed repository backup corresponding to the given id. |
javax.ws.rs.core.Response |
infoRestore(String repository,
String workspace)
Gives all details about the last restore of a specific workspace. |
javax.ws.rs.core.Response |
infoRestoreRepository(String repository)
Gives all details about the last restore of a specific repository. |
javax.ws.rs.core.Response |
infoRestores()
Gives all details about the last restores. |
javax.ws.rs.core.Response |
infoRestoresRepository()
Gives all details about the last repository restores. |
javax.ws.rs.core.Response |
restore(String backupId,
Boolean removeExisting)
Restores the workspace with original configuration (this configuration was stored in backup chain log). |
javax.ws.rs.core.Response |
restore(WorkspaceEntry wEntry,
String repository,
String backupId)
Restores a workspace. |
javax.ws.rs.core.Response |
restore(WorkspaceEntry wEntry,
String repository,
String backupId,
Boolean removeExisting)
Restores a workspace. |
javax.ws.rs.core.Response |
restoreBackupSet(WorkspaceEntry wEntry,
String repository,
String backupSetPathEncoded,
Boolean removeExisting)
Restores the workspace from backup set with changing configuration. |
javax.ws.rs.core.Response |
restoreFromBackupSet(String backupSetPathEncoded,
Boolean removeExisting)
Restores the workspace or repository with original configuration (this configuration was stored in backup log). |
javax.ws.rs.core.Response |
restoreRepository(RepositoryEntry rEntry,
String backupId)
Restores a repository. |
javax.ws.rs.core.Response |
restoreRepository(RepositoryEntry rEntry,
String backupId,
Boolean removeExisting)
Restores a repository. |
javax.ws.rs.core.Response |
restoreRepository(String backupId,
Boolean removeExisting)
Restores a repository. |
javax.ws.rs.core.Response |
restoreRepositoryBackupSet(RepositoryEntry rEntry,
String backupSetPathEncoded,
Boolean removeExisting)
Restores a repository from backup set with changing configuration. |
javax.ws.rs.core.Response |
start(BackupConfigBean bConfigBean,
String repository,
String workspace)
Starts a backup on a given workspace. |
javax.ws.rs.core.Response |
startBackupRepository(BackupConfigBean bConfigBean,
String repository)
Starts a backup on a given repository. |
javax.ws.rs.core.Response |
stop(String backupId)
Stops the backup corresponding to the given id. |
javax.ws.rs.core.Response |
stopBackupRepository(String backupId)
Stops the repository backup corresponding to the given id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPBackupAgent(RepositoryService repoService,
BackupManager backupManager,
SessionProviderService sessionProviderService)
repoService - the RepositoryServicebackupManager - the BackupManagersessionProviderService - the SessionProviderService| Method Detail |
|---|
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response start(BackupConfigBean bConfigBean,
String repository,
String workspace)
bConfigBean - the bean with backup configuration.repository - the name of the repositoryworkspace - the name of the workspace
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response startBackupRepository(BackupConfigBean bConfigBean,
String repository)
bConfigBean - the bean with backup configuration.repository - the name of the repository
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response dropWorkspace(String repository,
String workspace,
Boolean forceSessionClose)
repository - the name of the repositoryworkspace - the name of the workspaceforceSessionClose - the flag indicating whether or not we need to force closing the current sessions
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restore(WorkspaceEntry wEntry,
String repository,
String backupId)
wEntry - the configuration of the workspace to restorerepository - the name of the repositorybackupId - the identifier of the backup
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restore(WorkspaceEntry wEntry,
String repository,
String backupId,
Boolean removeExisting)
wEntry - the configuration of the workspace to restorerepository - the name of the repositorybackupId - the identifier of the backupremoveExisting - if 'true', it will remove fully (db, value storage, index) the existing workspace.
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restoreBackupSet(WorkspaceEntry wEntry,
String repository,
String backupSetPathEncoded,
Boolean removeExisting)
wEntry - the configuration of the workspace to restorerepository - the name of the repositorybackupSetPathEncoded - the path to backup setremoveExisting - if 'true', it will remove fully (db, value storage, index) the existing workspace.
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restore(String backupId,
Boolean removeExisting)
backupId - the identifier of the backupremoveExisting - if 'true', it will be remove fully (db, value storage, index) the existing workspace.
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restoreFromBackupSet(String backupSetPathEncoded,
Boolean removeExisting)
backupSetPathEncoded - the path to backup setremoveExisting - if 'true', it will remove fully (db, value storage, index) the existing workspace.
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restoreRepository(RepositoryEntry rEntry,
String backupId)
rEntry - the configuration of the repository to restorebackupId - the identifier of the backup
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restoreRepository(RepositoryEntry rEntry,
String backupId,
Boolean removeExisting)
rEntry - the configuration of the repository to restorebackupId - the identifier of the backupremoveExisting - if 'true', it will remove fully (db, value storage, index) the existing repository.
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restoreRepositoryBackupSet(RepositoryEntry rEntry,
String backupSetPathEncoded,
Boolean removeExisting)
rEntry - the configuration of the repository to restorebackupSetPathEncoded - the path to backup setremoveExisting - if 'true', it will remove fully (db, value storage, index) the existing repository.
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response restoreRepository(String backupId,
Boolean removeExisting)
backupId - the identifier of the backupremoveExisting - if 'true', it will remove fully (db, value storage, index) the existing repository.
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response stop(String backupId)
backupId - the identifier of the backup
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response stopBackupRepository(String backupId)
backupId - the identifier of the backup
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response info()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackup()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupRepository()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupId(String id)
id - the identifier of the backup
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupRepositoryId(String id)
id - the identifier of the repository backup
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupCurrent()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupRepositoryCurrent()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupCompleted()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupRepositoryCompleted()
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response infoBackupByWorkspace(String repository,
String workspace)
repository - the name of the repositoryworkspace - the name of the workspace
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoBackupByRepository(String repository)
repository - the name of the repository
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response infoRestore(String repository,
String workspace)
repository - the name of the repositoryworkspace - the name of the workspace
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoRestoreRepository(String repository)
repository - the name of the repository
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoRestores()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response infoRestoresRepository()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response getDefaultWorkspaceConfig()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response getDefaultRepositoryConfig()
|
eXo JCR :: Component :: Extension Service 1.16.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||