alma::acs::container::archive::IdentifierJMock Class Reference

Inheritance diagram for alma::acs::container::archive::IdentifierJMock:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::container::archive::IdentifierJMock:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Author:
hsommer

Constructor & Destructor Documentation

alma::acs::container::archive::IdentifierJMock::IdentifierJMock ( Logger  logger,
long  archiveid,
long  rangeid 
) [inline]

Member Function Documentation

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]
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

See also:
alma.xmlstore.IdentifierJ::getNewRange()

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]

Operation getNewRestrictedRange

Implements alma::xmlstore::IdentifierJ.

References getNewRange().

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]

Member Data Documentation

Referenced by createUid(), and getNewRange().

Referenced by createUid(), and getNewRange().

Referenced by createUid(), and getNewRange().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2