Class ShortInfo
java.lang.Object
org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfo
- Direct Known Subclasses:
DetailedInfo
Created by The eXo Platform SAS.
Date: 13.04.2009
Date: 13.04.2009
- Version:
- $Id: ShortInfo.java 111 2008-11-11 11:11:11Z rainf0x $
- Author:
- Alex Reshetnyak
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShortInfo.ShortInfo(int type, BackupChain chain) ShortInfo constructor.ShortInfo(int type, BackupChainLog chainLog) ShortInfo constructor.ShortInfo(int type, BackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state) ShortInfo constructor.ShortInfo(int type, BackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state, String repositroryName, String workspaceName) ShortInfo constructor.ShortInfo(int type, RepositoryBackupChain chain) ShortInfo constructor.ShortInfo(int type, RepositoryBackupChainLog chainLog) ShortInfo constructor.ShortInfo(int type, RepositoryBackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state) ShortInfo constructor.ShortInfo(int type, RepositoryBackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state, String repositroryName) ShortInfo constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetBackupId.getBackupType.getFinishedTime.getRepositoryName.getStartedTime.getState()getState.getType()getType.getWorkspaceName.voidsetBackupId(String backupId) setBackupId.voidsetBackupType(Integer backupType) setBackupType.voidsetFinishedTime(String finishedTime) setFinishedTime.voidsetRepositoryName(String repositoryName) setRepositoryName.voidsetStartedTime(String startedTime) setStartedTime.voidsetState.voidsetType.voidsetWorkspaceName(String workspaceName) setWorkspaceName.
-
Field Details
-
CURRENT
public static final int CURRENTThe type for current backup.- See Also:
-
COMPLETED
public static final int COMPLETEDThe type for completed backup.- See Also:
-
RESTORE
public static final int RESTOREThe type for current restore.- See Also:
-
-
Constructor Details
-
ShortInfo
public ShortInfo()ShortInfo. Empty constructor. -
ShortInfo
ShortInfo constructor.- Parameters:
type- int, the tupe of short infochain- BackupChain, the backup chain for current backup.
-
ShortInfo
ShortInfo constructor.- Parameters:
type- int, the tupe of short infochain- RepositoryBackupChain, the backup chain for current backup.
-
ShortInfo
ShortInfo constructor.- Parameters:
type- int, the tupe of short infochainLog- BackupChainLog, the backup chain log for completed backup.
-
ShortInfo
ShortInfo constructor.- Parameters:
type- int, the tupe of short infochainLog- BackupChainLog, the backup chain log for completed backup.
-
ShortInfo
public ShortInfo(int type, BackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state) ShortInfo constructor. For restore.- Parameters:
type- int, the tupe of short infochainLog- BackupChainLog, the backup chain log for completed backup.startedTime- Calendar, the stated timefinishedTime- Calendar, the finished timestate- int, the state of restore
-
ShortInfo
public ShortInfo(int type, RepositoryBackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state) ShortInfo constructor. For restore.- Parameters:
type- int, the type of short infochainLog- RepositoryBackupChainLog, the backup chain log for completed backup.startedTime- Calendar, the stated timefinishedTime- Calendar, the finished timestate- int, the state of restore
-
ShortInfo
public ShortInfo(int type, BackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state, String repositroryName, String workspaceName) ShortInfo constructor. For restore.- Parameters:
type- int, the tupe of short infochainLog- BackupChainLog, the backup chain log for completed backup.startedTime- Calendar, the stated timefinishedTime- Calendar, the finished timestate- int, the state of restorerepositroryName- String, the repository nameworkspaceName- String, the workspace name
-
ShortInfo
public ShortInfo(int type, RepositoryBackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state, String repositroryName) ShortInfo constructor. For restore.- Parameters:
type- int, the tupe of short infochainLog- BackupChainLog, the backup chain log for completed backup.startedTime- Calendar, the stated timefinishedTime- Calendar, the finished timestate- int, the state of restorerepositroryName- String, the repository name
-
-
Method Details
-
getState
getState.- Returns:
- Integer the state of backup or restore
-
setState
setState.- Parameters:
state- Integer, the state of backup or restore
-
getBackupId
getBackupId.- Returns:
- String return the backup identifier
-
setBackupId
setBackupId.- Parameters:
backupId- the backup identifier
-
getRepositoryName
getRepositoryName.- Returns:
- String return the repository name
-
setRepositoryName
setRepositoryName.- Parameters:
repositoryName- String, repository name
-
getWorkspaceName
getWorkspaceName.- Returns:
- String return the workspace name
-
setWorkspaceName
setWorkspaceName.- Parameters:
workspaceName- String, the workspace name
-
getStartedTime
getStartedTime.- Returns:
- String return the started time of backup or restore
-
setStartedTime
setStartedTime.- Parameters:
startedTime- String, the started time of backup or restore
-
getFinishedTime
getFinishedTime.- Returns:
- String return the finished time of backup or restore
-
setFinishedTime
setFinishedTime.- Parameters:
finishedTime- String, the finished time of backup or restore
-
getType
getType.- Returns:
- Integer return the type of ShortInfo
-
setType
setType.- Parameters:
type- Integer, the type of ShortInfo
-
getBackupType
getBackupType.- Returns:
- Integer return the backup type
-
setBackupType
setBackupType.- Parameters:
backupType- Integer, the backup type
-