Interface AvailabilityEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply AvailabilityEnablers to
Availabilities . An Availability with multiple
AvailabilityEnablers means any positive rule evaluation across the
enablers result in an accessible Availability .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAvailabilityEnablerToAvailability(Id availabilityEnablerId, Id availabilityId) Adds an existingAvailabilityEnablerto anAvailability.booleanTests if this user can alter availability enabler/availability mappings.booleanTests if this user can orderAvailabilityEnablers.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.voidmoveAvailabilityEnablerAhead(Id availabilityEnablerId, Id availabilityId, Id referenceId) Reorders availability enablers for an availability by moving the specified availability enabler in front of a reference availability enabler.voidmoveAvailabilitynEnablerBehind(Id availabilityEnablerId, Id availabilityId, Id referenceId) Reorders availability enablers for an availability by moving the specified availability enabler behind a reference availability enabler.voidorderAvailabilityEnablers(Id[] availabilityEnablerIds, Id availabilityId) Reorders a set of availability enablers for an availability.voidunassignAvailabilityEnablerFromAvailability(Id availabilityEnablerId, Id availabilityId) Removes anAvailabilityEnablerfrom anAvailability.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getFoundryId
Id getFoundryId()Gets theFoundryIdassociated with this session.- Returns:
- the
Foundry Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFoundry
Gets theFoundryassociated with this session.- Returns:
- the foundry
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignAvailabilityEnablers
boolean canAssignAvailabilityEnablers()Tests if this user can alter availability enabler/availability mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignAvailabilityEnablerToAvailability
void assignAvailabilityEnablerToAvailability(Id availabilityEnablerId, Id availabilityId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAvailabilityEnablerto anAvailability.- Parameters:
availabilityEnablerId- theIdof theAvailabilityEnableravailabilityId- theIdof theAvailability- Throws:
AlreadyExistsException-availabilityEnablerIdis already applied toavailabilityIdNotFoundException-availabilityEnablerIdoravailabilityIdnot foundNullArgumentException-availabilityEnablerIdoravailabilityIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAvailabilityEnablerFromAvailability
void unassignAvailabilityEnablerFromAvailability(Id availabilityEnablerId, Id availabilityId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anAvailabilityEnablerfrom anAvailability.- Parameters:
availabilityEnablerId- theIdof theAvailabilityEnableravailabilityId- theIdof theAvailability- Throws:
NotFoundException-availabilityEnablerIdoravailabilityIdnot found oravailabilityEnablerIdnot applied toavailabilityIdNullArgumentException-availabilityEnablerIdoravailabilityIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAvailabilityEnablers
boolean canSequenceAvailabilityEnablers()Tests if this user can orderAvailabilityEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifAvailabilityEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAvailabilityEnablerAhead
void moveAvailabilityEnablerAhead(Id availabilityEnablerId, Id availabilityId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders availability enablers for an availability by moving the specified availability enabler in front of a reference availability enabler.- Parameters:
availabilityEnablerId- theIdof anAvailabilityEnableravailabilityId- theIdof anAvailabilityreferenceId- the reference availability enablerId- Throws:
NotFoundException-availabilityEnablerId, availabilityId, orreferenceIdnot found or,availabilityEnablerIdorreferenceIdnot related toavailabilityIdNullArgumentException-availabilityEnablerId, availabilityId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAvailabilitynEnablerBehind
void moveAvailabilitynEnablerBehind(Id availabilityEnablerId, Id availabilityId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders availability enablers for an availability by moving the specified availability enabler behind a reference availability enabler.- Parameters:
availabilityEnablerId- theIdof anAvailabilityEnableravailabilityId- theIdof anAvailabilityreferenceId- the reference availability enablerId- Throws:
NotFoundException-availabilityEnablerId, availabilityId, orreferenceIdnot found or,availabilityEnablerIdorreferenceIdnot related toavailabilityIdNullArgumentException-availabilityEnablerId, availabilityId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAvailabilityEnablers
void orderAvailabilityEnablers(Id[] availabilityEnablerIds, Id availabilityId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of availability enablers for an availability.- Parameters:
availabilityEnablerIds- theIdsfor a set ofAvailabilityEnablersavailabilityId- theIdof anAvailability- Throws:
NotFoundException-availabilityIdnot found or, anavailabilityEnablerIdnot related toavailabilityIdNullArgumentException-availabilityEnablerIdsoravailabilityIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-