Tracks one restore of an organisation's data from a backup file, from the moment it is started through to the moment it finishes. A record is created with only its created date and creator, and the completed date is filled in when the restore finishes, so a record with no completed date is still running or failed. The file name and hash identify the backup file the data was read from, and file names are unique within an organisation.

Group: Database Entities

Implements: Serializable


Properties

PropertyReturnsDescription
completedDateDateWhen the restore finished. Null while it is still running, or if it never completed.
createdByProfileThe administrator who started the restore. Never null.
createdDateDateWhen the restore was started, as a timestamp. Restores for an organisation are listed newest first by this value.
fileHashStringContent hash of the backup file the data was restored from, which is how the file itself is fetched from the content store.
fileNameStringName of the backup file the data was restored from, unique within the organisation and used to look the restore up.
idlongThe database identifier of this restore record.

Methods

getId() · setOrganisation(Organisation organisation) · getCreatedDate() · setCreatedDate(Date createdDate) · getCreatedBy() · setCreatedBy(Profile createdBy) · getCompletedDate() · setCompletedDate(Date completedDate) · getFileName() · setFileName(String fileName) · getFileHash() · setFileHash(String fileHash)

getId()

Returns: long

The database identifier of this restore record.

setOrganisation(Organisation organisation)

Returns: void

Sets the organisation whose data is being restored.

ParameterDescription
organisationthe organisation the restore belongs to

getCreatedDate()

Returns: Date

When the restore was started, as a timestamp. Restores for an organisation are listed newest first by this value.

setCreatedDate(Date createdDate)

Returns: void

Sets when the restore was started.

ParameterDescription
createdDatethe date and time the restore was started

getCreatedBy()

Returns: Profile

The administrator who started the restore. Never null.

setCreatedBy(Profile createdBy)

Returns: void

Sets the administrator who started the restore.

ParameterDescription
createdBythe profile that started the restore

getCompletedDate()

Returns: Date

When the restore finished. Null while it is still running, or if it never completed.

setCompletedDate(Date completedDate)

Returns: void

Sets when the restore finished.

ParameterDescription
completedDatethe date and time the restore completed

getFileName()

Returns: String

Name of the backup file the data was restored from, unique within the organisation and used to look the restore up.

setFileName(String fileName)

Returns: void

Sets the name of the backup file the data was restored from.

ParameterDescription
fileNamethe backup file name, unique within the organisation

getFileHash()

Returns: String

Content hash of the backup file the data was restored from, which is how the file itself is fetched from the content store.

setFileHash(String fileHash)

Returns: void

Sets the content hash of the backup file the data was restored from.

ParameterDescription
fileHashthe backup file's content hash
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.