public interface AvailabilityEnablerFoundrySession extends OsidSession
This session provides methods to retrieve AvailabilityEnabler
to Foundry
mappings. an AvailabilityEnabler
may appear in multiple Foundry
objects. Each
foundry may have its own authorizations governing who is allowed to look
at it.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupAvailabilityEnablerFoundryMappings()
Tests if this user can perform lookups of availability enabler/foundry
mappings.
|
IdList |
getAvailabilityEnablerIdsByFoundries(IdList foundryIds)
Gets the list of
AvailabilityEnabler Ids corresponding
to a list of Foundries. |
IdList |
getAvailabilityEnablerIdsByFoundry(Id foundryId)
Gets the list of
AvailabilityEnablerIds associated with
a Foundry. |
AvailabilityEnablerList |
getAvailabilityEnablersByFoundries(IdList foundryIds)
Gets the list of availability enabler corresponding to a list of
Foundries. |
AvailabilityEnablerList |
getAvailabilityEnablersByFoundry(Id foundryId)
Gets the list of availability enabler associated with a
Foundry. |
IdList |
getFoundryIdsByAvailabilityEnabler(Id availabilityEnablerId)
Gets the
Foundry Ids mapped to an
AvailabilityEnabler. |
FoundryList |
getFoundrysByAvailabilityEnabler(Id availabilityEnablerId)
Gets the
Foundries mapped to an
AvailabilityEnabler. |
void |
useComparativeAvailabilityEnablerFoundryView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryAvailabilityEnablerFoundryView()
A complete view of the
AvailabilityEnabler and
Foundry returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupAvailabilityEnablerFoundryMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeAvailabilityEnablerFoundryView()
mandatory
- This method is must be implemented. void usePlenaryAvailabilityEnablerFoundryView()
AvailabilityEnabler
and
Foundry
returns is desired. Methods will return what is
requested or result in an error. This view is used when greater
precision is desired at the expense of interoperability.mandatory
- This method is must be implemented. IdList getAvailabilityEnablerIdsByFoundry(Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AvailabilityEnablerIds
associated with
a Foundry.
foundryId
- Id
of the Foundry
Ids
NotFoundException
- foundryId
is not
foundNullArgumentException
- foundryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AvailabilityEnablerList getAvailabilityEnablersByFoundry(Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Foundry.
foundryId
- Id
of the Foundry
NotFoundException
- foundryId
is not
foundNullArgumentException
- foundryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getAvailabilityEnablerIdsByFoundries(IdList foundryIds) throws OperationFailedException, PermissionDeniedException
AvailabilityEnabler Ids
corresponding
to a list of Foundries.
foundryIds
- list of foundry Ids
Ids
NullArgumentException
- foundryIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AvailabilityEnablerList getAvailabilityEnablersByFoundries(IdList foundryIds) throws OperationFailedException, PermissionDeniedException
Foundries.
foundryIds
- list of foundry Ids
NullArgumentException
- foundryIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getFoundryIdsByAvailabilityEnabler(Id availabilityEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Foundry
Ids
mapped to an
AvailabilityEnabler.
availabilityEnablerId
- Id
of an
AvailabilityEnabler
NotFoundException
- availabilityEnablerId
is not foundNullArgumentException
- availabilityEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. FoundryList getFoundrysByAvailabilityEnabler(Id availabilityEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Foundries
mapped to an
AvailabilityEnabler.
availabilityEnablerId
- Id
of an
AvailabilityEnabler
NotFoundException
- availabilityEnablerId
is not foundNullArgumentException
- availabilityEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.