

Public Member Functions | |
| IdentifierJMock (Logger logger, long archiveid, long rangeid) | |
| IdentifierRange | getExistingRange (String identifier, String user) throws NotFound |
| String | getIdNamespace () throws NotAvailable |
| IdentifierRange | getNewRange () throws NotAvailable |
| IdentifierRange | getNewRestrictedRange (int number, String user) throws NotAvailable |
| String[] | getUIDs (short number) throws NotAvailable |
| ComponentStates | componentState () |
| String | name () |
| boolean | checkUIDsyntax (String identifier) |
Private Member Functions | |
| String | createUid () |
Private Attributes | |
| final Logger | logger |
| final long | archiveid |
| long | rangeid |
| final int | archiveIdLength = 2 |
| alma::acs::container::archive::IdentifierJMock::IdentifierJMock | ( | Logger | logger, | |
| long | archiveid, | |||
| long | rangeid | |||
| ) | [inline] |
| boolean alma::acs::container::archive::IdentifierJMock::checkUIDsyntax | ( | String | identifier | ) | [inline] |
returns true if identifier is a syntactically correct UID, else false.
Implements alma::xmlstore::IdentifierJ.
| ComponentStates alma::acs::container::archive::IdentifierJMock::componentState | ( | ) | [inline] |
Implements alma::ACS::ACSComponentOperations.
| String alma::acs::container::archive::IdentifierJMock::createUid | ( | ) | [inline, private] |
References archiveid, archiveIdLength, and rangeid.
Referenced by getNewRange().
| IdentifierRange alma::acs::container::archive::IdentifierJMock::getExistingRange | ( | String | identifier, | |
| String | user | |||
| ) | throws NotFound [inline] |
Operation getExistingRange
Implements alma::xmlstore::IdentifierJ.
| String alma::acs::container::archive::IdentifierJMock::getIdNamespace | ( | ) | throws NotAvailable [inline] |
RESTRICTED USE: Only the Container may call this, other subsystems use the method getUIDs().
Returns a new UniqueIdentifier. Its local part (the hex number following the second X) will always be "00000000". Should only be used by the Container.
Implements alma::xmlstore::IdentifierJ.
| IdentifierRange alma::acs::container::archive::IdentifierJMock::getNewRange | ( | ) | throws NotAvailable [inline] |
This is the only method that's currently implemented
Implements alma::xmlstore::IdentifierJ.
References archiveid, archiveIdLength, createUid(), and rangeid.
Referenced by getNewRestrictedRange().
| IdentifierRange alma::acs::container::archive::IdentifierJMock::getNewRestrictedRange | ( | int | number, | |
| String | user | |||
| ) | throws NotAvailable [inline] |
| String [] alma::acs::container::archive::IdentifierJMock::getUIDs | ( | short | number | ) | throws NotAvailable [inline] |
Returns an array of new UniqueIdentifiers. The number of UniqueIdentifiers is specified by the input parameter number
Implements alma::xmlstore::IdentifierJ.
| String alma::acs::container::archive::IdentifierJMock::name | ( | ) | [inline] |
Implements alma::ACS::ACSComponentOperations.
final long alma::acs::container::archive::IdentifierJMock::archiveid [private] |
Referenced by createUid(), and getNewRange().
final int alma::acs::container::archive::IdentifierJMock::archiveIdLength = 2 [private] |
Referenced by createUid(), and getNewRange().
final Logger alma::acs::container::archive::IdentifierJMock::logger [private] |
long alma::acs::container::archive::IdentifierJMock::rangeid [private] |
Referenced by createUid(), and getNewRange().
1.6.2