Interface CanonicalUnitProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply CanonicalUnitProcessors
to CanonicalUnits .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCanonicalUnitProcessorToCanonicalUnit(Id canonicalUnitProcessorId, Id canonicalUnitId) Adds an existingCanonicalUnitProcessorto aCanonicalUnit.booleanTests if this user can alter canonical unit processor/canonical unit mappings.booleanTests if this user can orderCanonicalUnitProcessors.Gets theCatalogueassociated with this session.Gets theCatalogueIdassociated with this session.voidmoveCanonicalUnitProcessorAhead(Id canonicalUnitProcessorId, Id canonicalUnitId, Id referenceId) Reorders canonical unit processors for a canonical unit by moving the specified canonical unit processor in front of a reference canonical unit processor.voidmoveCanonicalUnitProcessorBehind(Id canonicalUnitProcessorId, Id canonicalUnitId, Id referenceId) Reorders canonical unit processors for a canonical unit by moving the specified canonical unit processor behind a reference canonical unit processor.voidorderCanonicalUnitProcessors(Id[] canonicalUnitProcessorIds, Id canonicalUnitId) Reorders a set of canonical unit processors for a canonical unit.voidunassignCanonicalUnitProcessorFromCanonicalUnit(Id canonicalUnitProcessorId, Id canonicalUnitId) Removes aCanonicalUnitProcessorfrom aCanonicalUnit.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.
-
canAssignCanonicalUnitProcessors
boolean canAssignCanonicalUnitProcessors()Tests if this user can alter canonical unit processor/canonical unit 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.
-
assignCanonicalUnitProcessorToCanonicalUnit
void assignCanonicalUnitProcessorToCanonicalUnit(Id canonicalUnitProcessorId, Id canonicalUnitId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCanonicalUnitProcessorto aCanonicalUnit.- Parameters:
canonicalUnitProcessorId- theIdof theCanonicalUnitProcessorcanonicalUnitId- theIdof theCanonicalUnit- Throws:
AlreadyExistsException-canonicalUnitProcessorIdalready applied tocanonicalUnitIdNotFoundException-canonicalUnitProcessorIdorcanonicalUnitIdnot foundNullArgumentException-canonicalUnitProcessorIdorcanonicalUnitIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCanonicalUnitProcessorFromCanonicalUnit
void unassignCanonicalUnitProcessorFromCanonicalUnit(Id canonicalUnitProcessorId, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCanonicalUnitProcessorfrom aCanonicalUnit.- Parameters:
canonicalUnitProcessorId- theIdof theCanonicalUnitProcessorcanonicalUnitId- theIdof theCanonicalUnit- Throws:
NotFoundException-canonicalUnitProcessorIdorcanonicalUnitIdnot found orcanonicalUnitProcessorIdnot applied tocanonicalUnitIdNullArgumentException-canonicalUnitProcessorIdorcanonicalUnitIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceCanonicalUnitProcessors
boolean canSequenceCanonicalUnitProcessors()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:
falseifCanonicalUnitProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveCanonicalUnitProcessorAhead
void moveCanonicalUnitProcessorAhead(Id canonicalUnitProcessorId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders canonical unit processors for a canonical unit by moving the specified canonical unit processor in front of a reference canonical unit processor.- Parameters:
canonicalUnitProcessorId- theIdof aCanonicalUnitProcessorcanonicalUnitId- theIdof aCanonicalUnitreferenceId- the reference canonical unit processorId- Throws:
NotFoundException-canonicalUnitProcessorId, canonicalUnitId, orreferenceIdnot found or,canonicalUnitProcessorIdorreferenceIdnot related tocanonicalUnitIdNullArgumentException-canonicalUnitProcessorId, canonicalUnitId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveCanonicalUnitProcessorBehind
void moveCanonicalUnitProcessorBehind(Id canonicalUnitProcessorId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders canonical unit processors for a canonical unit by moving the specified canonical unit processor behind a reference canonical unit processor.- Parameters:
canonicalUnitProcessorId- theIdof aCanonicalUnitProcessorcanonicalUnitId- theIdof aCanonicalUnitreferenceId- the reference canonical unit processorId- Throws:
NotFoundException-canonicalUnitProcessorId, canonicalUnitId, orreferenceIdnot found or,canonicalUnitProcessorIdorreferenceIdnot related tocanonicalUnitIdNullArgumentException-canonicalUnitProcessorId, canonicalUnitId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderCanonicalUnitProcessors
void orderCanonicalUnitProcessors(Id[] canonicalUnitProcessorIds, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of canonical unit processors for a canonical unit.- Parameters:
canonicalUnitProcessorIds- theIdsfor a set ofCanonicalUnitProcessorscanonicalUnitId- theIdof aCanonicalUnit- Throws:
NotFoundException-canonicalUnitIdnot found or, acanonicalUnitProcessorIdnot related tocanonicalUnitIdNullArgumentException-canonicalUnitProcessorIdsorcanonicalUnitIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-