Interface ProvisionableEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ProvisionableEnablers to
Provisionables . Multiple ProvisionableEnablers applied to
an Provisionable may be sequenced such that the first positive
evaluation results in the ProvisionableEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProvisionableEnablerToProvisionable(Id provisionableEnablerId, Id provisionableId) Adds an existingProvisionableEnablerto aProvisionable.booleanTests if this user can alter provisionable enabler/provisionable mappings.booleanTests if this user can orderProvisionableEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveProvisionableEnablerAhead(Id provisionableEnablerId, Id provisionableId, Id referenceId) Reorders provisionable enablers for a provisionable by moving the specified provisionable enabler in front of a reference provisionable enabler.voidmoveProvisionableEnablerBehind(Id provisionableEnablerId, Id provisionableId, Id referenceId) Reorders provisionable enablers for a provisionable by moving the specified provisionable enabler behind a reference provisionable enabler.voidorderProvisionableEnablers(Id[] provisionableEnablerIds, Id provisionableId) Reorders a set of provisionable enablers for a provisionable.voidunassignProvisionableEnablerFromProvisionable(Id provisionableEnablerId, Id provisionableId) Removes an existingProvisionableEnablerfrom aProvisionable.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
-
getDistributorId
Id getDistributorId()Gets theDistributorIdassociated with this session.- Returns:
- the
Distributor Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getDistributor
Gets theDistributorassociated with this session.- Returns:
- the distributor
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignProvisionableEnablers
boolean canAssignProvisionableEnablers()Tests if this user can alter provisionable enabler/provisionable 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.
-
assignProvisionableEnablerToProvisionable
void assignProvisionableEnablerToProvisionable(Id provisionableEnablerId, Id provisionableId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProvisionableEnablerto aProvisionable.- Parameters:
provisionableEnablerId- theIdof theProvisionableEnablerprovisionableId- theIdof theProvisionable- Throws:
AlreadyExistsException-provisionableEnablerIdalready applied toprovisionableIdNotFoundException-provisionableEnablerIdorprovisionableIdnot foundNullArgumentException-provisionableEnablerIdorprovisionableIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProvisionableEnablerFromProvisionable
void unassignProvisionableEnablerFromProvisionable(Id provisionableEnablerId, Id provisionableId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingProvisionableEnablerfrom aProvisionable.- Parameters:
provisionableEnablerId- theIdof theProvisionableEnablerprovisionableId- theIdof theProvisionable- Throws:
NotFoundException-provisionableEnablerIdorprovisionableIdnot found orprovisionableEnablerIdalready applied toprovisionableIdNullArgumentException-provisionableEnablerIdorprovisionableIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProvisionableEnablers
boolean canSequenceProvisionableEnablers()Tests if this user can orderProvisionableEnablers. 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:
falseifProvisionableEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProvisionableEnablerAhead
void moveProvisionableEnablerAhead(Id provisionableEnablerId, Id provisionableId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders provisionable enablers for a provisionable by moving the specified provisionable enabler in front of a reference provisionable enabler.- Parameters:
provisionableEnablerId- theIdof theProvisionableEnablerprovisionableId- theIdof theProvisionablereferenceId- the reference provisionable enablerId- Throws:
NotFoundException-provisionableEnablerId, provisionableId, orreferenceIdnot found or,provisionableEnablerIdorreferenceIdnot related toprovisionableIdNullArgumentException-provisionableEnablerId, provisionableId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProvisionableEnablerBehind
void moveProvisionableEnablerBehind(Id provisionableEnablerId, Id provisionableId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders provisionable enablers for a provisionable by moving the specified provisionable enabler behind a reference provisionable enabler.- Parameters:
provisionableEnablerId- theIdof theProvisionableEnablerprovisionableId- theIdof theProvisionablereferenceId- the reference provisionable enablerId- Throws:
NotFoundException-provisionableEnablerId, provisionableId, orreferenceIdnot found or,provisionableEnablerIdorreferenceIdnot related toprovisionableIdNullArgumentException-provisionableEnablerId, provisionableId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProvisionableEnablers
void orderProvisionableEnablers(Id[] provisionableEnablerIds, Id provisionableId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of provisionable enablers for a provisionable.- Parameters:
provisionableEnablerIds- theIdsfor a set ofProvisionableEnablersprovisionableId- theIdof theProvisionable- Throws:
NotFoundException-provisionableEnablerId, provisionableId, orreferenceIdnot found or,provisionableEnablerIdorreferenceIdnot related toprovisionableIdNullArgumentException-provisionableEnablerIds, provisionableId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-