Class IdManager

Description

IdManager creates and gets Ids. Ids are used in many different contexts throughout the OSIDs. As with other Managers, use the OsidLoader to load an implementation of this interface.

All implementations of OsidManager (manager) provide methods for accessing and manipulating the various objects defined in the OSID package. A manager defines an implementation of an OSID. All other OSID objects come either directly or indirectly from the manager. New instances of the OSID objects are created either directly or indirectly by the manager. Because the OSID objects are defined using interfaces, create methods must be used instead of the new operator to create instances of the OSID objects. Create methods are used both to instantiate and persist OSID objects. Using the OsidManager class to define an OSID's implementation allows the application to change OSID implementations by changing the OsidManager package name used to load an implementation. Applications developed using managers permit OSID implementation substitution without changing the application source code. As with all managers, use the OsidLoader to load an implementation of this interface.

Unlike most Managers, IdManager does not have methods to return Type information.

Licensed under the org.osid.SidImplementationLicenseMIT.

OSID Version: 2.0

Located in /harmoni/oki2/osid/id/IdManager.php (line 42)

OsidManager
   |
   --IdManager
Direct descendents
Class Description
HarmoniIdManager IdManager creates and gets Ids. Ids are used in many different contexts throughout the OSIDs. As with other Managers, use the OsidLoader to load an implementation of this interface.
JavaPOCIdManager IdManager creates and gets Ids. Ids are used in many different contexts throughout the OSIDs. As with other Managers, use the OsidLoader to load an implementation of this interface.
Method Summary
object Id getId (mixed $idString, string $idString )
Methods
createId (line 61)

Create a new unique identifier.

  • access: public
  • throws: object IdException An exception with one of the following messages defined in org.osid.id.IdException: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object Id createId ()

Redefined in descendants as:
getId (line 85)

Get the unique Id with this String representation or create a new unique Id with this representation.

  • access: public
  • throws: object IdException An exception with one of the following messages defined in org.osid.id.IdException: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
object Id getId (mixed $idString, string $idString )
  • string $idString

Redefined in descendants as:
  • HarmoniIdManager::getId() : Get the unique Id with this String representation or create a new unique Id with this representation.
  • JavaPOCIdManager::getId() : Get the unique Id with this String representation or create a new unique Id with this representation.

Inherited Methods

Inherited From OsidManager

OsidManager::assignConfiguration()
OsidManager::assignOsidContext()
OsidManager::getOsidContext()
OsidManager::osidVersion_2_0()

Documentation generated on Wed, 19 Sep 2007 10:24:36 -0400 by phpDocumentor 1.3.0RC3