Interface CanonicalUnitEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply CanonicalUnitEnablers to
CanonicalUnits . A CanonicalUnit with multiple
CanonicalUnitEnablers means any positive rule evaluation across the
enablers result in an active CanonicalUnit .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCanonicalUnitEnablerToCanonicalUnit(Id canonicalUnitEnablerId, Id canonicalUnitId) Adds an existingCanonicalUnitEnablerto aCanonicalUnit.booleanTests if this user can alter canonical unit enabler/canonical unit mappings.booleanTests if this user can orderCanonicalUnitEnablers.Gets theCatalogueassociated with this session.Gets theCatalogueIdassociated with this session.voidmoveCanonicalUnitEnablerAhead(Id canonicalUnitEnablerId, Id canonicalUnitId, Id referenceId) Reorders canonical unit enablers for a canonical unit by moving the specified canonical unit enabler in front of a reference canonical unit enabler.voidmoveCanonicalUnitEnablerBehind(Id canonicalUnitEnablerId, Id canonicalUnitId, Id referenceId) Reorders canonical unit enablers for a canonical unit by moving the specified canonical unit enabler behind a reference canonical unit enabler.voidorderCanonicalUnitEnablers(Id[] canonicalUnitEnablerIds, Id canonicalUnitId) Reorders a set of canonical unit enablers for a canonical unit.voidunassignCanonicalUnitEnablerFromCanonicalUnit(Id canonicalUnitEnablerId, Id canonicalUnitId) Removes aCanonicalUnitEnablerfrom 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.
-
canAssignCanonicalUnitEnablers
boolean canAssignCanonicalUnitEnablers()Tests if this user can alter canonical unit enabler/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.
-
assignCanonicalUnitEnablerToCanonicalUnit
void assignCanonicalUnitEnablerToCanonicalUnit(Id canonicalUnitEnablerId, Id canonicalUnitId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCanonicalUnitEnablerto aCanonicalUnit.- Parameters:
canonicalUnitEnablerId- theIdof theCanonicalUnitEnablercanonicalUnitId- theIdof theCanonicalUnit- Throws:
AlreadyExistsException-canonicalUnitEnablerIdalready applied tocanonicalUnitIdNotFoundException-canonicalUnitEnablerIdorcanonicalUnitIdnot foundNullArgumentException-canonicalUnitEnablerIdorcanonicalUnitIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCanonicalUnitEnablerFromCanonicalUnit
void unassignCanonicalUnitEnablerFromCanonicalUnit(Id canonicalUnitEnablerId, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCanonicalUnitEnablerfrom aCanonicalUnit.- Parameters:
canonicalUnitEnablerId- theIdof theCanonicalUnitEnablercanonicalUnitId- theIdof theCanonicalUnit- Throws:
NotFoundException-canonicalUnitEnablerIdorcanonicalUnitIdnot found orcanonicalUnitEnablerIdnot applied tocanonicalUnitIdNullArgumentException-canonicalUnitEnablerIdorcanonicalUnitIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceCanonicalUnitEnablers
boolean canSequenceCanonicalUnitEnablers()Tests if this user can orderCanonicalUnitEnablers. 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:
falseifCanonicalUnitEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveCanonicalUnitEnablerAhead
void moveCanonicalUnitEnablerAhead(Id canonicalUnitEnablerId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders canonical unit enablers for a canonical unit by moving the specified canonical unit enabler in front of a reference canonical unit enabler.- Parameters:
canonicalUnitEnablerId- theIdof aCanonicalUnitEnablercanonicalUnitId- theIdof aCanonicalUnitreferenceId- the reference canonical unit enablerId- Throws:
NotFoundException-canonicalUnitEnablerId, canonicalUnitId, orreferenceIdnot found or,canonicalUnitEnablerIdorreferenceIdnot related tocanonicalUnitIdNullArgumentException-canonicalUnitEnablerId, canonicalUnitId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveCanonicalUnitEnablerBehind
void moveCanonicalUnitEnablerBehind(Id canonicalUnitEnablerId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders canonical unit enablers for a canonical unit by moving the specified canonical unit enabler behind a reference canonical unit enabler.- Parameters:
canonicalUnitEnablerId- theIdof aCanonicalUnitEnablercanonicalUnitId- theIdof aCanonicalUnitreferenceId- the reference canonical unit enablerId- Throws:
NotFoundException-canonicalUnitEnablerId, canonicalUnitId, orreferenceIdnot found or,canonicalUnitEnablerIdorreferenceIdnot related tocanonicalUnitIdNullArgumentException-canonicalUnitEnablerId, canonicalUnitId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderCanonicalUnitEnablers
void orderCanonicalUnitEnablers(Id[] canonicalUnitEnablerIds, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of canonical unit enablers for a canonical unit.- Parameters:
canonicalUnitEnablerIds- theIdsfor a set ofCanonicalUnitEnablerscanonicalUnitId- theIdof aCanonicalUnit- Throws:
NotFoundException-canonicalUnitConstraienrIdnot found or, acanonicalUnitEnablerIdnot related tocanonicalUnitIdNullArgumentException-canonicalUnitEnablerIdsorcanonicalUnitIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-