Interface OfferingConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
OfferingConstrainerEnablers to OfferingConstrainers . An
OfferingConstrainer with multiple OfferingConstrainerEnablers
means any positive rule evaluation across the enablers result in an
effective OfferingConstrainer .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignOfferingConstrainerEnablerToOfferingConstrainer(Id offeringConstrainerEnablerId, Id offeringConstrainerId) Adds an existingOfferingConstrainerEnablerto anOfferingConstrainer.booleanTests if this user can alter offering constrainer enabler/offering constrainer mappings.booleanTests if this user can orderOfferingConstrainerEnablers.Gets theCatalogueassociated with this session.Gets theCatalogueIdassociated with this session.voidmoveOfferingConstrainerEnablerAhead(Id offeringConstrainerEnablerId, Id offeringConstrainerId, Id referenceId) Reorders offering constrainer enablers for an offering constrainer by moving the specified offering constrainer enabler in front of a reference offering constrainer enabler.voidmoveOfferingConstrainerEnablerBehind(Id offeringConstrainerEnablerId, Id offeringConstrainerId, Id referenceId) Reorders offering constrainer enablers for a canonical unit by moving the specified offering constrainer enabler behind a reference offering constrainer enabler.voidorderOfferingConstrainerEnablers(Id[] offeringConstrainerEnablerIds, Id offeringConstrainerId) Reorders a set of offering constrainer enablers for an offering constrainer.voidunassignOfferingConstrainerEnablerFromOfferingConstrainer(Id offeringConstrainerEnablerId, Id offeringConstrainerId) Removes anOfferingConstrainerEnablerfrom anOfferingConstrainer.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.
-
canAssignOfferingConstrainerEnablers
boolean canAssignOfferingConstrainerEnablers()Tests if this user can alter offering constrainer enabler/offering constrainer 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.
-
assignOfferingConstrainerEnablerToOfferingConstrainer
void assignOfferingConstrainerEnablerToOfferingConstrainer(Id offeringConstrainerEnablerId, Id offeringConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingOfferingConstrainerEnablerto anOfferingConstrainer.- Parameters:
offeringConstrainerEnablerId- theIdof theOfferingConstrainerEnablerofferingConstrainerId- theIdof theOfferingConstrainer- Throws:
AlreadyExistsException-offeringConstrainerEnablerIdalready applied toofferingConstrainerIdNotFoundException-offeringConstrainerEnablerIdorofferingConstrainerIdnot foundNullArgumentException-offeringConstrainerEnablerIdorofferingConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignOfferingConstrainerEnablerFromOfferingConstrainer
void unassignOfferingConstrainerEnablerFromOfferingConstrainer(Id offeringConstrainerEnablerId, Id offeringConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anOfferingConstrainerEnablerfrom anOfferingConstrainer.- Parameters:
offeringConstrainerEnablerId- theIdof theOfferingConstrainerEnablerofferingConstrainerId- theIdof theOfferingConstrainer- Throws:
NotFoundException-offeringConstrainerEnablerIdorofferingConstrainerIdnot found orofferingConstrainerEnablerIdnot applied toofferingConstrainerIdNullArgumentException-offeringConstrainerEnablerIdorofferingConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceOfferingConstrainerEnablers
boolean canSequenceOfferingConstrainerEnablers()Tests if this user can orderOfferingConstrainerEnablers. 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:
falseifOfferingConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveOfferingConstrainerEnablerAhead
void moveOfferingConstrainerEnablerAhead(Id offeringConstrainerEnablerId, Id offeringConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders offering constrainer enablers for an offering constrainer by moving the specified offering constrainer enabler in front of a reference offering constrainer enabler.- Parameters:
offeringConstrainerEnablerId- theIdof anOfferingConstrainerEnablerofferingConstrainerId- theIdof anOfferingConstrainerreferenceId- the reference offering constrainer enablerId- Throws:
NotFoundException-offeringConstrainerEnablerId, offeringConstrainerId, orreferenceIdnot found or,offeringConstrainerEnablerIdorreferenceIdnot related toofferingConstrainerIdNullArgumentException-offeringConstrainerEnablerId, offeringConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveOfferingConstrainerEnablerBehind
void moveOfferingConstrainerEnablerBehind(Id offeringConstrainerEnablerId, Id offeringConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders offering constrainer enablers for a canonical unit by moving the specified offering constrainer enabler behind a reference offering constrainer enabler.- Parameters:
offeringConstrainerEnablerId- theIdof anOfferingConstrainerEnablerofferingConstrainerId- theIdof anOfferingConstrainerreferenceId- the reference offering constrainer enablerId- Throws:
NotFoundException-offeringConstrainerEnablerId, offeringConstrainerId, orreferenceIdnot found or,offeringConstrainerEnablerIdorreferenceIdnot related toofferingConstrainerIdNullArgumentException-offeringConstrainerEnablerId, offeringConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderOfferingConstrainerEnablers
void orderOfferingConstrainerEnablers(Id[] offeringConstrainerEnablerIds, Id offeringConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of offering constrainer enablers for an offering constrainer.- Parameters:
offeringConstrainerEnablerIds- theIdsfor a set ofOfferingConstrainerEnablersofferingConstrainerId- theIdof anOfferingConstrainer- Throws:
NotFoundException-canonicalUnitConstraienrIdnot found or, anofferingConstrainerEnablerIdnot related toofferingConstrainerIdNullArgumentException-offeringConstrainerEnablerIdsorofferingConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-