Class ShortInfo
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfo
-
- Direct Known Subclasses:
DetailedInfo
public class ShortInfo extends Object
Created by The eXo Platform SAS.
Date: 13.04.2009- Version:
- $Id: ShortInfo.java 111 2008-11-11 11:11:11Z rainf0x $
- Author:
- Alex Reshetnyak
-
-
Constructor Summary
Constructors Constructor Description ShortInfo()ShortInfo.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBackupId()getBackupId.IntegergetBackupType()getBackupType.StringgetFinishedTime()getFinishedTime.StringgetRepositoryName()getRepositoryName.StringgetStartedTime()getStartedTime.IntegergetState()getState.IntegergetType()getType.StringgetWorkspaceName()getWorkspaceName.voidsetBackupId(String backupId)setBackupId.voidsetBackupType(Integer backupType)setBackupType.voidsetFinishedTime(String finishedTime)setFinishedTime.voidsetRepositoryName(String repositoryName)setRepositoryName.voidsetStartedTime(String startedTime)setStartedTime.voidsetState(Integer state)setState.voidsetType(Integer type)setType.voidsetWorkspaceName(String workspaceName)setWorkspaceName.
-
-
-
Field Detail
-
CURRENT
public static final int CURRENT
The type for current backup.- See Also:
- Constant Field Values
-
COMPLETED
public static final int COMPLETED
The type for completed backup.- See Also:
- Constant Field Values
-
RESTORE
public static final int RESTORE
The type for current restore.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShortInfo
public ShortInfo()
ShortInfo. Empty constructor.
-
ShortInfo
public ShortInfo(int type, BackupChain chain)ShortInfo constructor.- Parameters:
type- int, the tupe of short infochain- BackupChain, the backup chain for current backup.
-
ShortInfo
public ShortInfo(int type, RepositoryBackupChain chain)ShortInfo constructor.- Parameters:
type- int, the tupe of short infochain- RepositoryBackupChain, the backup chain for current backup.
-
ShortInfo
public ShortInfo(int type, BackupChainLog chainLog)ShortInfo constructor.- Parameters:
type- int, the tupe of short infochainLog- BackupChainLog, the backup chain log for completed backup.
-
ShortInfo
public ShortInfo(int type, RepositoryBackupChainLog chainLog)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 Detail
-
getState
public Integer getState()
getState.- Returns:
- Integer the state of backup or restore
-
setState
public void setState(Integer state)
setState.- Parameters:
state- Integer, the state of backup or restore
-
getBackupId
public String getBackupId()
getBackupId.- Returns:
- String return the backup identifier
-
setBackupId
public void setBackupId(String backupId)
setBackupId.- Parameters:
backupId- the backup identifier
-
getRepositoryName
public String getRepositoryName()
getRepositoryName.- Returns:
- String return the repository name
-
setRepositoryName
public void setRepositoryName(String repositoryName)
setRepositoryName.- Parameters:
repositoryName- String, repository name
-
getWorkspaceName
public String getWorkspaceName()
getWorkspaceName.- Returns:
- String return the workspace name
-
setWorkspaceName
public void setWorkspaceName(String workspaceName)
setWorkspaceName.- Parameters:
workspaceName- String, the workspace name
-
getStartedTime
public String getStartedTime()
getStartedTime.- Returns:
- String return the started time of backup or restore
-
setStartedTime
public void setStartedTime(String startedTime)
setStartedTime.- Parameters:
startedTime- String, the started time of backup or restore
-
getFinishedTime
public String getFinishedTime()
getFinishedTime.- Returns:
- String return the finished time of backup or restore
-
setFinishedTime
public void setFinishedTime(String finishedTime)
setFinishedTime.- Parameters:
finishedTime- String, the finished time of backup or restore
-
getType
public Integer getType()
getType.- Returns:
- Integer return the type of ShortInfo
-
setType
public void setType(Integer type)
setType.- Parameters:
type- Integer, the type of ShortInfo
-
getBackupType
public Integer getBackupType()
getBackupType.- Returns:
- Integer return the backup type
-
setBackupType
public void setBackupType(Integer backupType)
setBackupType.- Parameters:
backupType- Integer, the backup type
-
-