Interface CanonicalUnitProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
CanonicalUnitProcessorEnablers to CanonicalUnitProcessors . A
CanonicalUnitProcessor with multiple
CanonicalUnitProcessorEnablers means any positive rule evaluation across
the enablers result in an effective CanonicalUnitProcessor .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCanonicalUnitProcessorEnablerToCanonicalUnitProcessor(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId) Adds an existingCanonicalUnitProcessorEnablerto aCanonicalUnitProcessor.booleanTests if this user can alter canonical unit processor enabler/canonical unit processor mappings.booleanTests if this user can orderCanonicalUnitProcessors.Gets theCatalogueassociated with this session.Gets theCatalogueIdassociated with this session.voidmoveCanonicalUnitProcessorEnablerAhead(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId, Id referenceId) Reorders canonical unit processor enablers for a canonical unit processor by moving the specified canonical unit processor enabler in front of a reference canonical unit processor enabler.voidmoveCanonicalUnitProcessorEnablerBehind(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId, Id referenceId) Reorders canonical unit processor enablers for a canonical unit processor by moving the specified canonical unit processor enabler behind a reference canonical unit processor enabler.voidorderCanonicalUnitProcessorEnablers(Id[] canonicalUnitProcessorEnablerIds, Id canonicalUnitProcessorId) Reorders a set of canonical unit processor enablers for a canonical unit processor.voidunassignCanonicalUnitProcessorEnablerFromCanonicalUnitProcessor(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId) Removes aCanonicalUnitProcessorEnablerfrom aCanonicalUnitProcessor.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
-
getCatalogueId
Id getCatalogueId()Gets theCatalogueIdassociated with this session.- Returns:
- the
Catalogue Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCatalogue
Gets theCatalogueassociated with this session.- Returns:
- the catalogue
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignCanonicalUnitProcessorEnablers
boolean canAssignCanonicalUnitProcessorEnablers()Tests if this user can alter canonical unit processor enabler/canonical unit processor 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.
-
assignCanonicalUnitProcessorEnablerToCanonicalUnitProcessor
void assignCanonicalUnitProcessorEnablerToCanonicalUnitProcessor(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCanonicalUnitProcessorEnablerto aCanonicalUnitProcessor.- Parameters:
canonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnablercanonicalUnitProcessorId- theIdof theCanonicalUnitProcessor- Throws:
AlreadyExistsException-canonicalUnitProcessorEnablerIdalready applied tocanonicalUnitProcessorIdNotFoundException-canonicalUnitProcessorEnablerIdorcanonicalUnitProcessorIdnot foundNullArgumentException-canonicalUnitProcessorEnablerIdorcanonicalUnitProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCanonicalUnitProcessorEnablerFromCanonicalUnitProcessor
void unassignCanonicalUnitProcessorEnablerFromCanonicalUnitProcessor(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCanonicalUnitProcessorEnablerfrom aCanonicalUnitProcessor.- Parameters:
canonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnablercanonicalUnitProcessorId- theIdof theCanonicalUnitProcessor- Throws:
NotFoundException-canonicalUnitProcessorEnablerIdorcanonicalUnitProcessorIdnot found or not mappedNullArgumentException-canonicalUnitProcessorEnablerIdorcanonicalUnitProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceCanonicalUnitProcessorEnablers
boolean canSequenceCanonicalUnitProcessorEnablers()Tests if this user can orderCanonicalUnitProcessors. 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:
falseifCanonicalUnitProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveCanonicalUnitProcessorEnablerAhead
void moveCanonicalUnitProcessorEnablerAhead(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders canonical unit processor enablers for a canonical unit processor by moving the specified canonical unit processor enabler in front of a reference canonical unit processor enabler.- Parameters:
canonicalUnitProcessorEnablerId- theIdof aCanonicalUnitProcessorEnablercanonicalUnitProcessorId- theIdof aCanonicalUnitProcessorreferenceId- the reference canonical unit processorId- Throws:
NotFoundException-canonicalUnitProcessorEnablerId, canonicalUnitProcesorId, orreferenceIdnot found or,canonicalUnitProcessorEnablerIdorreferenceIdnot related tocanonicalUnitProcessorIdNullArgumentException-canonicalUnitProcessorEnablerId, canonicalUnitProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveCanonicalUnitProcessorEnablerBehind
void moveCanonicalUnitProcessorEnablerBehind(Id canonicalUnitProcessorEnablerId, Id canonicalUnitProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders canonical unit processor enablers for a canonical unit processor by moving the specified canonical unit processor enabler behind a reference canonical unit processor enabler.- Parameters:
canonicalUnitProcessorEnablerId- theIdof aCanonicalUnitProcessorEnablercanonicalUnitProcessorId- theIdof aCanonicalUnitProcessorreferenceId- the reference canonical unit processorId- Throws:
NotFoundException-canonicalUnitProcessorEnablerId, canonicalUnitProcesorId, orreferenceIdnot found or,canonicalUnitProcessorEnablerIdorreferenceIdnot related tocanonicalUnitProcessorIdNullArgumentException-canonicalUnitProcessorEnablerId, canonicalUnitProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderCanonicalUnitProcessorEnablers
void orderCanonicalUnitProcessorEnablers(Id[] canonicalUnitProcessorEnablerIds, Id canonicalUnitProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of canonical unit processor enablers for a canonical unit processor.- Parameters:
canonicalUnitProcessorEnablerIds- theIdsfor a set ofCanonicalUnitProcessorEnablerscanonicalUnitProcessorId- theIdof aCanonicalUnitProcessor- Throws:
NotFoundException-canonicalUnitProcessorIdnot found or, acanonicalUnitProcessorEnablerIdnot related tocanonicalUnitProcessorIdNullArgumentException-canonicalUnitProcessorEnablerIdsorcanonicalUnitProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-