Interface Id
- All Superinterfaces:
Id, OsidPrimitive, OsidPrimitive, Serializable
Id represents an identifier object. Ids are designated by the
following elements:
-
identifier: a unique key or guid -
namespace: the namespace of the identifier -
authority: the issuer of the identifier
Two Ids are equal if their namespace, identifier and authority strings
are equal. Only the identifier is case-sensitive. Persisting an Id
means persisting the above components.
-
Method Summary
Modifier and TypeMethodDescriptionGets the authority of thisId.Gets the identifier of thisId.This method is used to compare oneIdto another.Gets the namespace of the identifier.Methods inherited from interface OsidPrimitive
toString
-
Method Details
-
getAuthority
String getAuthority()Gets the authority of thisId. The authority is a string used to ensure the uniqueness of thisIdwhen using a non-federated identifier space. Generally, it is a service name identifying the provider of thisId. This method is used to compare oneIdto another.- Returns:
- the authority of this
Id - Compliance:
mandatory- This method must be implemented.
-
getIdentifierNamespace
String getIdentifierNamespace()Gets the namespace of the identifier. The namespace reflects the domain in which the identifier is unique. When using a global identifier schema, the namespace may indicate the name of the scheme. When using a local identification scheme, the namespace may be more specific, such as the name of a database or file in which the identifiers exist. Federating adapters may use a custom namespace to include information for routing. This method is used to compare oneIdto another.- Returns:
- the authority of this
Id - Compliance:
mandatory- This method must be implemented.
-
getIdentifier
String getIdentifier()Gets the identifier of thisId.This method is used to compare oneIdto another.- Returns:
- the identifier of this
Id - Compliance:
mandatory- This method must be implemented.
-