public interface CanonicalUnitEnablerRuleApplicationSession extends 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.
| Modifier and Type | Method and Description |
|---|---|
void |
assignCanonicalUnitEnablerToCanonicalUnit(Id canonicalUnitEnablerId,
Id canonicalUnitId)
Adds an existing
CanonicalUnitEnabler to a
CanonicalUnit. |
boolean |
canAssignCanonicalUnitEnablers()
Tests if this user can alter canonical unit enabler/canonical unit
mappings.
|
boolean |
canSequenceCanonicalUnitEnablers()
Tests if this user can order
CanonicalUnitEnablers. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
void |
moveCanonicalUnitEnablerAhead(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.
|
void |
moveCanonicalUnitEnablerBehind(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.
|
void |
orderCanonicalUnitEnablers(Id[] canonicalUnitEnablerIds,
Id canonicalUnitId)
Reorders a set of canonical unit enablers for a canonical unit.
|
void |
unassignCanonicalUnitEnablerFromCanonicalUnit(Id canonicalUnitEnablerId,
Id canonicalUnitId)
Removes a
CanonicalUnitEnabler from a
CanonicalUnit. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId 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 canAssignCanonicalUnitEnablers()
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 assignCanonicalUnitEnablerToCanonicalUnit(Id canonicalUnitEnablerId, Id canonicalUnitId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
CanonicalUnitEnabler to a
CanonicalUnit. canonicalUnitEnablerId - the Id of the
CanonicalUnitEnabler canonicalUnitId - the Id of the
CanonicalUnit AlreadyExistsException - canonicalUnitEnablerId
already applied to canonicalUnitId NotFoundException - canonicalUnitEnablerId
or canonicalUnitId not foundNullArgumentException - canonicalUnitEnablerId
or canonicalUnitId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignCanonicalUnitEnablerFromCanonicalUnit(Id canonicalUnitEnablerId, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CanonicalUnitEnabler from a
CanonicalUnit. canonicalUnitEnablerId - the Id of the
CanonicalUnitEnabler canonicalUnitId - the Id of the
CanonicalUnit NotFoundException - canonicalUnitEnablerId
or canonicalUnitId not found or
canonicalUnitEnablerId not applied to
canonicalUnitId NullArgumentException - canonicalUnitEnablerId
or canonicalUnitId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequenceCanonicalUnitEnablers()
CanonicalUnitEnablers. 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 CanonicalUnitEnabler
ordering is not authorized, true otherwisemandatory - This method must be implemented. void moveCanonicalUnitEnablerAhead(Id canonicalUnitEnablerId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
canonicalUnitEnablerId - the Id of a
CanonicalUnitEnabler canonicalUnitId - the Id of a
CanonicalUnit referenceId - the reference canonical unit enabler Id
NotFoundException - canonicalUnitEnablerId,
canonicalUnitId, or referenceId not
found or, canonicalUnitEnablerId or
referenceId not related to canonicalUnitId
NullArgumentException - canonicalUnitEnablerId,
canonicalUnitId, or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void moveCanonicalUnitEnablerBehind(Id canonicalUnitEnablerId, Id canonicalUnitId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
canonicalUnitEnablerId - the Id of a
CanonicalUnitEnabler canonicalUnitId - the Id of a
CanonicalUnit referenceId - the reference canonical unit enabler Id
NotFoundException - canonicalUnitEnablerId,
canonicalUnitId, or referenceId not
found or, canonicalUnitEnablerId or
referenceId not related to canonicalUnitId
NullArgumentException - canonicalUnitEnablerId,
canonicalUnitId, or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderCanonicalUnitEnablers(Id[] canonicalUnitEnablerIds, Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
canonicalUnitEnablerIds - the Ids for a set of
CanonicalUnitEnablers canonicalUnitId - the Id of a
CanonicalUnit NotFoundException - canonicalUnitConstraienrId
not found or, a canonicalUnitEnablerId
not related to canonicalUnitId NullArgumentException - canonicalUnitEnablerIds
or canonicalUnitId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.