public interface IdLookupSession extends OsidSession
This session is for retrieving Id
objects.
getIds()
retrieves all known Ids.
The existence of
a single identifier can be confirmed through the getId()
method, or it can be used as a means of Id
translation.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupIds()
Tests if this user can perform
Id lookups. |
Id |
getId(Id id)
Gets an
Id. |
IdList |
getIdAliases(Id id)
Gets a list of
Id aliases of an Id. |
IdList |
getIdAliasesByAuthority(Id id,
java.lang.String authority)
Gets a list of
Id aliases in a authority for an
Id. |
IdList |
getIdAliasesByAuthorityAndNamespace(Id id,
java.lang.String authority,
java.lang.String namespace)
Gets a list of
Id aliases in a namespace for an
Id. |
IdList |
getIds()
Gets all
Ids. |
IdList |
getIdsByAuthority(java.lang.String authority)
Gets
Ids by the given authority. |
IdList |
getIdsByAuthorityAndNamespace(java.lang.String authority,
java.lang.String namespace)
Gets
Ids by the given authority and namespace. |
IdList |
getIdsByIds(IdList ids)
Gets a list of
Ids. |
boolean |
isEquivalent(Id id,
Id equivalentId)
Tests if the two
Ids are equivalent. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupIds()
Id
lookups. A return of
true does not guarantee successful authorization. A return of false
indicates that it is known all methods in this session will result in
a PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer lookup operations. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. Id getId(Id id) throws NotFoundException, OperationFailedException, PermissionDeniedException
Id.
This method serves to get the principal
Id
if the given Id
Is an alias.id
- an Id
Id
NotFoundException
- id
is not foundNullArgumentException
- id
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getIdsByIds(IdList ids) throws NotFoundException, OperationFailedException, PermissionDeniedException
Ids.
This method serves to get the
principal Ids
if different from the given Ids.
ids
- a list of Ids
Ids
NotFoundException
- an id
is not foundNullArgumentException
- ids
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getIdsByAuthority(java.lang.String authority) throws OperationFailedException, PermissionDeniedException
Ids
by the given authority.authority
- an authority Ids
NullArgumentException
- authority
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getIdsByAuthorityAndNamespace(java.lang.String authority, java.lang.String namespace) throws OperationFailedException, PermissionDeniedException
Ids
by the given authority and namespace.authority
- an authoritynamespace
- a namespace Ids
NullArgumentException
- authority
or
namespace
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getIds() throws OperationFailedException, PermissionDeniedException
Ids.
Ids
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean isEquivalent(Id id, Id equivalentId) throws OperationFailedException, PermissionDeniedException
Ids
are equivalent. Two Ids
are equivalent if they identify the same object. If one of the
Ids
is not known, they are not equivalent.id
- an Id
equivalentId
- an Id
true
if the Ids
are equivalent,
false otherwiseNullArgumentException
- null
argument
providedOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getIdAliases(Id id) throws OperationFailedException, PermissionDeniedException
Id
aliases of an Id.
id
- an Id
Ids
NullArgumentException
- id
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getIdAliasesByAuthority(Id id, java.lang.String authority) throws OperationFailedException, PermissionDeniedException
Id
aliases in a authority for an
Id.
id
- an Id
authority
- an authority Ids
NullArgumentException
- id
or
authority
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getIdAliasesByAuthorityAndNamespace(Id id, java.lang.String authority, java.lang.String namespace) throws OperationFailedException, PermissionDeniedException
Id
aliases in a namespace for an
Id.
id
- an Id
authority
- an authoritynamespace
- a namespace Ids
NullArgumentException
- id, authority,
or namespace
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.