Interface ProvisionEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ProvisionEnablers to
Provisions . Multiple ProvisionEnablers applied to an
Provision may be sequenced such that the first positive evaluation
results in the ProvisionEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProvisionEnablerToProvision(Id provisionEnablerId, Id provisionId) Adds an existingProvisionEnablerto aProvision.booleanTests if this user can alter provision enabler/provision mappings.booleanTests if this user can orderProvisionEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveProvisionEnablerAhead(Id provisionEnablerId, Id provisionId, Id referenceId) Reorders provision enablers for a provision by moving the specified provision enabler in front of a reference provision enabler.voidmoveProvisionEnablerBehind(Id provisionEnablerId, Id provisionId, Id referenceId) Reorders provision enablers for a provision by moving the specified provision enabler behind a reference provision enabler.voidorderProvisionEnablers(Id[] provisionEnablerIds, Id provisionId) Reorders a set of provision enablers for a provision.voidunassignProvisionEnablerFromProvision(Id provisionEnablerId, Id provisionId) Removes an existingProvisionEnablerfrom aProvision.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.
-
canAssignProvisionEnablers
boolean canAssignProvisionEnablers()Tests if this user can alter provision enabler/provision 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.
-
assignProvisionEnablerToProvision
void assignProvisionEnablerToProvision(Id provisionEnablerId, Id provisionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProvisionEnablerto aProvision.- Parameters:
provisionEnablerId- theIdof theProvisionEnablerprovisionId- theIdof theProvision- Throws:
AlreadyExistsException-provisionEnablerIdalready applied toprovisionIdNotFoundException-provisionEnablerIdorprovisionIdnot foundNullArgumentException-provisionEnablerIdorprovisionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProvisionEnablerFromProvision
void unassignProvisionEnablerFromProvision(Id provisionEnablerId, Id provisionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingProvisionEnablerfrom aProvision.- Parameters:
provisionEnablerId- theIdof theProvisionEnablerprovisionId- theIdof theProvision- Throws:
NotFoundException-provisionEnablerIdorprovisionIdnot found orprovisionEnablerIdalready applied toprovisionIdNullArgumentException-provisionEnablerIdorprovisionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProvisionEnablers
boolean canSequenceProvisionEnablers()Tests if this user can orderProvisionEnablers. 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:
falseifProvisionEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProvisionEnablerAhead
void moveProvisionEnablerAhead(Id provisionEnablerId, Id provisionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders provision enablers for a provision by moving the specified provision enabler in front of a reference provision enabler.- Parameters:
provisionEnablerId- theIdof theProvisionEnablerprovisionId- theIdof theProvisionreferenceId- the reference provision enablerId- Throws:
NotFoundException-provisionEnablerId, provisionId, orreferenceIdnot found or,provisionEnablerIdorreferenceIdnot related toprovisionIdNullArgumentException-provisionEnablerId, provisionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProvisionEnablerBehind
void moveProvisionEnablerBehind(Id provisionEnablerId, Id provisionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders provision enablers for a provision by moving the specified provision enabler behind a reference provision enabler.- Parameters:
provisionEnablerId- theIdof theProvisionEnablerprovisionId- theIdof theProvisionreferenceId- the reference provision enablerId- Throws:
NotFoundException-provisionEnablerId, provisionId, orreferenceIdnot found or,provisionEnablerIdorreferenceIdnot related toprovisionIdNullArgumentException-provisionEnablerId, provisionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProvisionEnablers
void orderProvisionEnablers(Id[] provisionEnablerIds, Id provisionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of provision enablers for a provision.- Parameters:
provisionEnablerIds- theIdsfor a set ofProvisionEnablersprovisionId- theIdof theProvision- Throws:
NotFoundException-provisionEnablerId, provisionId, orreferenceIdnot found or,provisionEnablerIdorreferenceIdnot related toprovisionIdNullArgumentException-provisionEnablerIds, provisionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-