Open Journal Systems
3.3.0
|
Protected Member Functions | |
_getStatusField ($field) | |
_setStatusField ($value, $field) | |
Additional Inherited Members | |
![]() | |
$_data = array() | |
$_extractionAdaptersLoaded = false | |
$_hasLoadableAdapters = false | |
$_injectionAdaptersLoaded = false | |
$_metadataExtractionAdapters = array() | |
$_metadataInjectionAdapters = array() | |
Container for deposit objects that are submitted to a PLN.
Definition at line 14 of file Deposit.inc.php.
Deposit::__construct | ( | $uuid | ) |
Constructor
$uuid | string|null |
Definition at line 21 of file Deposit.inc.php.
References setUUID().
|
protected |
Get a status from the bit field.
$field | int one of the PLN_PLUGIN_DEPOSIT_STATUS_* constants. |
Definition at line 191 of file Deposit.inc.php.
References getStatus().
Referenced by getLockssAgreementStatus(), getLockssReceivedStatus(), getLockssSyncingStatus(), getPackagedStatus(), getPackagingFailedStatus(), getReceivedStatus(), getSentStatus(), getTransferredStatus(), and getValidatedStatus().
|
protected |
Set a status value.
boolean | $value | |
int | $field | one of the PLN_PLUGIN_DEPOSIT_STATUS_* constants. |
Definition at line 200 of file Deposit.inc.php.
References getStatus(), and setStatus().
Referenced by setLockssAgreementStatus(), setLockssReceivedStatus(), setLockssSyncingStatus(), setPackagedStatus(), setPackagingFailedStatus(), setReceivedStatus(), setSentStatus(), setTransferredStatus(), and setValidatedStatus().
Deposit::getComplete | ( | ) |
Return a string representation of wether or not the deposit processing is complete ie. LOCKSS has acheived agreement.
Definition at line 167 of file Deposit.inc.php.
References getLockssAgreementStatus().
Deposit::getDateCreated | ( | ) |
Get the date of deposit creation
Definition at line 372 of file Deposit.inc.php.
References DataObject\getData().
Deposit::getDateModified | ( | ) |
Get the modification date of the deposit
Definition at line 388 of file Deposit.inc.php.
References DataObject\getData().
Deposit::getDepositObjects | ( | ) |
Get all deposit objects of this deposit.
Definition at line 52 of file Deposit.inc.php.
References DAORegistry\getDAO(), DataObject\getId(), and getJournalId().
Referenced by getObjectId(), and getObjectType().
Deposit::getExportDepositError | ( | ) |
Get the export deposit error message.
Definition at line 412 of file Deposit.inc.php.
References DataObject\getData().
Deposit::getJournalId | ( | ) |
Get journal id
Definition at line 77 of file Deposit.inc.php.
References DataObject\getData().
Referenced by getDepositObjects().
Deposit::getLastStatusDate | ( | ) |
Get the date of the last status change
Definition at line 356 of file Deposit.inc.php.
References DataObject\getData().
Deposit::getLocalStatus | ( | ) |
Return a string representation of the local status.
Definition at line 111 of file Deposit.inc.php.
References getNewStatus(), getPackagedStatus(), getPackagingFailedStatus(), and getTransferredStatus().
Deposit::getLockssAgreementStatus | ( | ) |
Get whether there's been an update to a deposit
Definition at line 340 of file Deposit.inc.php.
References _getStatusField().
Referenced by getComplete(), and getLockssStatus().
Deposit::getLockssReceivedStatus | ( | ) |
Get whether there's been an error from the staging server
Definition at line 308 of file Deposit.inc.php.
References _getStatusField().
Referenced by getLockssStatus().
Deposit::getLockssStatus | ( | ) |
Return a string representation of the LOCKSS status.
Definition at line 148 of file Deposit.inc.php.
References getLockssAgreementStatus(), getLockssReceivedStatus(), and getLockssSyncingStatus().
Deposit::getLockssSyncingStatus | ( | ) |
Get whether there's been a local error in the deposit process
Definition at line 324 of file Deposit.inc.php.
References _getStatusField().
Referenced by getLockssStatus().
Deposit::getNewStatus | ( | ) |
Get new (blank) deposit status
Definition at line 175 of file Deposit.inc.php.
References getStatus().
Referenced by getLocalStatus().
Deposit::getObjectId | ( | ) |
Get the id of deposit objects in this deposit.
Definition at line 42 of file Deposit.inc.php.
References getDepositObjects().
Deposit::getObjectType | ( | ) |
Get the type of deposit objects in this deposit.
Definition at line 32 of file Deposit.inc.php.
References getDepositObjects().
Deposit::getPackagedStatus | ( | ) |
Get whether the deposit has been packaged for the PLN
Definition at line 212 of file Deposit.inc.php.
References _getStatusField().
Referenced by getLocalStatus().
Deposit::getPackagingFailedStatus | ( | ) |
Get whether the PLN has been notified of the available deposit
Definition at line 244 of file Deposit.inc.php.
References _getStatusField().
Referenced by getLocalStatus().
Deposit::getProcessingStatus | ( | ) |
Return a string representation of the processing status.
Definition at line 131 of file Deposit.inc.php.
References getReceivedStatus(), getSentStatus(), and getValidatedStatus().
Deposit::getReceivedStatus | ( | ) |
Get whether the PLN has retrieved the deposit from the journal
Definition at line 260 of file Deposit.inc.php.
References _getStatusField().
Referenced by getProcessingStatus().
Deposit::getSentStatus | ( | ) |
Get whether the deposit has been synced across its nodes
Definition at line 292 of file Deposit.inc.php.
References _getStatusField().
Referenced by getProcessingStatus().
Deposit::getStatus | ( | ) |
Get deposit status - this is the raw bit field, the other status functions are more immediately useful.
Definition at line 94 of file Deposit.inc.php.
References DataObject\getData().
Referenced by _getStatusField(), _setStatusField(), and getNewStatus().
Deposit::getTransferredStatus | ( | ) |
Get whether the PLN has been notified of the available deposit
Definition at line 228 of file Deposit.inc.php.
References _getStatusField().
Referenced by getLocalStatus().
Deposit::getUUID | ( | ) |
Get deposit uuid
Definition at line 61 of file Deposit.inc.php.
References DataObject\getData().
Deposit::getValidatedStatus | ( | ) |
Get whether the PLN is syncing the deposit across its nodes
Definition at line 276 of file Deposit.inc.php.
References _getStatusField().
Referenced by getProcessingStatus().
Deposit::setDateCreated | ( | $dateCreated | ) |
Set the date of deposit creation
$dateCreated | boolean |
Definition at line 380 of file Deposit.inc.php.
References DataObject\setData().
Deposit::setDateModified | ( | $dateModified | ) |
Set the modification date of the deposit
$dateModified | boolean |
Definition at line 396 of file Deposit.inc.php.
References DataObject\setData().
Deposit::setExportDepositError | ( | $exportDepositError | ) |
Set the export deposit error message.
$exportDepositError | string |
Definition at line 404 of file Deposit.inc.php.
References DataObject\setData().
Deposit::setJournalId | ( | $journalId | ) |
Set journal id
$journalId | int |
Definition at line 85 of file Deposit.inc.php.
References DataObject\setData().
Deposit::setLastStatusDate | ( | $dateLastStatus | ) |
Set set the date of the last status change
$dateLastStatus | DateTime |
Definition at line 364 of file Deposit.inc.php.
References DataObject\setData().
Deposit::setLockssAgreementStatus | ( | $status = true | ) |
Set whether there's been an update to a deposit
$status | boolean |
Definition at line 348 of file Deposit.inc.php.
References _setStatusField().
Deposit::setLockssReceivedStatus | ( | $status = true | ) |
Set whether there's been an error from the staging server
$status | boolean |
Definition at line 316 of file Deposit.inc.php.
References _setStatusField().
Deposit::setLockssSyncingStatus | ( | $status = true | ) |
Set whether there's been a local error in the deposit process
$status | boolean |
Definition at line 332 of file Deposit.inc.php.
References _setStatusField().
Deposit::setNewStatus | ( | ) |
Set new (blank) deposit status
Definition at line 182 of file Deposit.inc.php.
References setStatus().
Deposit::setPackagedStatus | ( | $status = true | ) |
Set whether the deposit has been packaged for the PLN
$status | boolean |
Definition at line 220 of file Deposit.inc.php.
References _setStatusField().
Deposit::setPackagingFailedStatus | ( | $status = true | ) |
Set whether the PLN has been notified of the available deposit
$status | boolean |
Definition at line 252 of file Deposit.inc.php.
References _setStatusField().
Deposit::setReceivedStatus | ( | $status = true | ) |
Set whether the PLN has retrieved the deposit from the journal
$status | boolean |
Definition at line 268 of file Deposit.inc.php.
References _setStatusField().
Deposit::setSentStatus | ( | $status = true | ) |
Set whether the deposit has been synced across its nodes
$status | boolean |
Definition at line 300 of file Deposit.inc.php.
References _setStatusField().
Deposit::setStatus | ( | $status | ) |
Set deposit status - this is the raw bit field, the other status functions are more immediately useful.
$status | int |
Definition at line 103 of file Deposit.inc.php.
References DataObject\setData().
Referenced by _setStatusField(), and setNewStatus().
Deposit::setTransferredStatus | ( | $status = true | ) |
Set whether the PLN has been notified of the available deposit
$status | boolean |
Definition at line 236 of file Deposit.inc.php.
References _setStatusField().
Deposit::setUUID | ( | $uuid | ) |
Set deposit uuid
$uuid | string |
Definition at line 69 of file Deposit.inc.php.
References DataObject\setData().
Referenced by __construct().
Deposit::setValidatedStatus | ( | $status = true | ) |
Set whether the PLN is syncing the deposit across its nodes
$status | boolean |
Definition at line 284 of file Deposit.inc.php.
References _setStatusField().