public interface AvailabilityFoundryAssignmentSession extends OsidSession
This session provides methods to re-assign Availabilities
to Foundry
mappings. An Availability
may appear in multiple Foundry
objects and removing the
last reference to an Availability
is the equivalent of
deleting it. Each Foundry
may have its own authorizations
governing who is allowed to operate on it.
Adding a reference of an Availability
to another
Foundry
is not a copy operation (eg: does not change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignAvailabilityToFoundry(Id availabilityId,
Id foundryId)
Adds an existing
Availability to a Foundry. |
boolean |
canAssignAvailabilities()
Tests if this user can alter availability/foundry mappings.
|
boolean |
canAssignAvailabilitiesToFoundry(Id foundryId)
Tests if this user can alter availability/foundry mappings.
|
IdList |
getAssignableFoundryIds(Id foundryId)
Gets a list of foundries including and under the given foundry node in
which any availability can be assigned.
|
IdList |
getAssignableFoundryIdsForAvailability(Id foundryId,
Id availabilityId)
Gets a list of foundries including and under the given foundry node in
which a specific availability can be assigned.
|
void |
unassignAvailabilityFromFoundry(Id availabilityId,
Id foundryId)
Removes an
Availability from a Foundry. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignAvailabilities()
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false
if availability is not authorized,
true
otherwisemandatory
- This method must be implemented. boolean canAssignAvailabilitiesToFoundry(Id foundryId)
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.foundryId
- the Id
of the Foundry
false
if mapping is not authorized, true
otherwiseNullArgumentException
- foundryId
is
null
mandatory
- This method must be implemented. IdList getAssignableFoundryIds(Id foundryId) throws OperationFailedException
foundryId
- the Id
of the Foundry
Ids
NullArgumentException
- foundryId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableFoundryIdsForAvailability(Id foundryId, Id availabilityId) throws OperationFailedException
foundryId
- the Id
of the Foundry
availabilityId
- the Id
of the
Availability
Ids
NullArgumentException
- foundryId
or
availabilityId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignAvailabilityToFoundry(Id availabilityId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Availability
to a Foundry.
availabilityId
- the Id
of the
Availability
foundryId
- the Id
of the Foundry
NotFoundException
- availabilityId
or
foundryId
not foundNullArgumentException
- availabilityId
or foundryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignAvailabilityFromFoundry(Id availabilityId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Availability
from a Foundry.
availabilityId
- the Id
of the
Availability
foundryId
- the Id
of the Foundry
NotFoundException
- availabilityId
or
foundryId
not foundNullArgumentException
- availabilityId
or foundryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.