public interface OfferingConstrainerRuleApplicationSession extends OsidSession
This session provides methods to apply OfferingConstrainers
to CanonicalUnits
to constrain the offerings for a
canonical unit. A CanonicalUnit
with multiple
OfferingConstrainers
means any positive rule evaluation across the
result in an effective CanonicalUnit.
Modifier and Type | Method and Description |
---|---|
void |
assignOfferingConstrainerToCanonicalUnit(Id offeringConstrainerId,
Id canonicalUnitId)
Adds an existing
OfferingConstrainer to a
CanonicalUnit. |
boolean |
canAssignOfferingConstrainers()
Tests if this user can alter offering constrainer/canonical unit
mappings.
|
boolean |
canSequenceOfferingConstrainers()
Tests if this user can order
OfferingConstrainers. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
void |
moveOfferingConstrainerAhead(Id offeringConstrainerId,
Id canonicalUnitId,
Id referenceId)
Reorders offering constrainers for a canonical unit by moving the
specified offering constrainer in front of a reference offering
constrainer.
|
void |
moveOfferingConstrainerBehind(Id offeringConstrainerId,
Id canonicalUnitId,
Id referenceId)
Reorders offering constrainers for a canonical unit by moving the
specified offering constrainer behind a reference offering
constrainer.
|
void |
orderOfferingConstrainers(Id[] offeringConstrainerIds,
Id canonicalUnitId)
Reorders a set of offering constrainers for a canonical unit.
|
void |
unassignOfferingConstrainerFromCanonicalUnit(Id offeringConstrainerId,
Id canonicalUnitId)
Removes an
OfferingConstrainer from a
CanonicalUnit. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCatalogueId()
Catalogue
Id
associated with
this session. Catalogue Id
associated with this sessionmandatory
- This method must be implemented. Catalogue getCatalogue() throws OperationFailedException, PermissionDeniedException
Catalogue
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignOfferingConstrainers()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. void assignOfferingConstrainerToCanonicalUnit(Id offeringConstrainerId, Id canonicalUnitId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
OfferingConstrainer
to a
CanonicalUnit.
offeringConstrainerId
- the Id
of the
OfferingConstrainer
canonicalUnitId
- the Id
of the
CanonicalUnit
AlreadyExistsException
- offeringConstrainerId
already applied to canonicalUnitId
NotFoundException
- offeringConstrainerId
or canonicalUnitId
not foundNullArgumentException
- offeringConstrainerId
or canonicalUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignOfferingConstrainerFromCanonicalUnit(Id offeringConstrainerId, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OfferingConstrainer
from a
CanonicalUnit.
offeringConstrainerId
- the Id
of the
OfferingConstrainer
canonicalUnitId
- the Id
of the
CanonicalUnit
NotFoundException
- offeringConstrainerId
or canonicalUnitId
not found or
offeringConstrainerId
already applied to
canonicalUnitId
NullArgumentException
- offeringConstrainerId
or canonicalUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceOfferingConstrainers()
OfferingConstrainers.
A
return of true does not guarantee successful authorization. A return
of false indicates that it is known sequencing operations will result
in a PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer sequencing operations to an
unauthorized user. false
if OfferingConstrainer
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveOfferingConstrainerAhead(Id offeringConstrainerId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
offeringConstrainerId
- the Id
of an
OfferingConstrainer
canonicalUnitId
- the Id
of a
CanonicalUnit
referenceId
- the reference offering constrainer Id
NotFoundException
- offeringConstrainerId,
canonicalUnitId,
or referenceId
not
found or, offeringConstrainerId
or
referenceId
not related to canonicalUnitId
NullArgumentException
- offeringConstrainerId,
canonicalUnitId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveOfferingConstrainerBehind(Id offeringConstrainerId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
offeringConstrainerId
- the Id
of an
OfferingConstrainer
canonicalUnitId
- the Id
of a
CanonicalUnit
referenceId
- the reference offering constrainer Id
NotFoundException
- offeringConstrainerId,
canonicalUnitId,
or referenceId
not
found or, offeringConstrainerId
or
referenceId
not related to canonicalUnitId
NullArgumentException
- offeringConstrainerId,
canonicalUnitId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderOfferingConstrainers(Id[] offeringConstrainerIds, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
offeringConstrainerIds
- the Ids
for a set of
OfferingConstrainers
canonicalUnitId
- the Id
of a
CanonicalUnit
NotFoundException
- canonicalUnitId
not
found or, an offeringConstrainerId
not related
to canonicalUnitId
NullArgumentException
- offeringConstrainerIds
or canonicalUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.