public interface CompositionEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply CompositionEnablers
to Compositions. A Composition with
multiple CompositionEnablers means any positive rule
evaluation across the enablers result in a visible Composition.
| Modifier and Type | Method and Description |
|---|---|
void |
assignCompositionEnablerToComposition(Id compositionEnablerId,
Id compositionId)
Adds an existing
CompositionEnabler to a
Composition. |
boolean |
canAssignCompositionEnablers()
Tests if this user can alter composition enabler/composition mappings.
|
boolean |
canSequenceCompositionEnablers()
Tests if this user can order
CompositionEnablers. |
Repository |
getRepository()
Gets the
Repository associated with this session. |
Id |
getRepositoryId()
Gets the
Repository Id associated with
this session. |
void |
moveCompositionEnablerAhead(Id composiitonEnablerId,
Id composiitonId,
Id referenceId)
Reorders composiiton enablers for a composiiton by moving the
specified composiiton enabler in front of a reference composiiton
enabler.
|
void |
moveCompositionEnablerBehind(Id composiitonEnablerId,
Id composiitonId,
Id referenceId)
Reorders composiiton enablers for a composiiton by moving the
specified composiiton enabler behind a reference composiiton enabler.
|
void |
orderCompositionEnablers(Id[] composiitonEnablerIds,
Id composiitonId)
Reorders a set of composiiton enablers for a composiiton.
|
void |
unassignCompositionEnablerFromComposition(Id compositionEnablerId,
Id compositionId)
Removes a
CompositionEnabler from a Composition. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getRepositoryId()
Repository Id associated with
this session. Repository Id associated with this sessionmandatory - This method must be implemented. Repository getRepository() throws OperationFailedException, PermissionDeniedException
Repository associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignCompositionEnablers()
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 assignCompositionEnablerToComposition(Id compositionEnablerId, Id compositionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
CompositionEnabler to a
Composition. compositionEnablerId - the Id of the
CompositionEnabler compositionId - the Id of the Composition
AlreadyExistsException - compositionEnablerId
is already applied to compositionId NotFoundException - compositionEnablerId
or compositionId not foundNullArgumentException - compositionEnablerId
or compositionId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignCompositionEnablerFromComposition(Id compositionEnablerId, Id compositionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CompositionEnabler from a Composition.
compositionEnablerId - the Id of the
CompositionEnabler compositionId - the Id of the Composition
NotFoundException - compositionEnablerId
or compositionId not found or
compositionEnablerId not applied to
compositionId NullArgumentException - compositionEnablerId
or compositionId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequenceCompositionEnablers()
CompositionEnablers. 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 CompositionEnabler
ordering is not authorized, true otherwisemandatory - This method must be implemented. void moveCompositionEnablerAhead(Id composiitonEnablerId, Id composiitonId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
composiitonEnablerId - the Id of a
CompositionEnabler composiitonId - the Id of a Composition
referenceId - the reference composiiton enabler Id
NotFoundException - composiitonEnablerId,
composiitonId, or referenceId not found
or, composiitonEnablerId or referenceId
not related to composiitonId NullArgumentException - composiitonEnablerId,
composiitonId, or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void moveCompositionEnablerBehind(Id composiitonEnablerId, Id composiitonId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
composiitonEnablerId - the Id of a
CompositionEnabler composiitonId - the Id of a Composition
referenceId - the reference composiiton enabler Id
NotFoundException - composiitonEnablerId,
composiitonId, or referenceId not found
or, composiitonEnablerId or referenceId
not related to composiitonId NullArgumentException - composiitonEnablerId,
composiitonId, or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderCompositionEnablers(Id[] composiitonEnablerIds, Id composiitonId) throws NotFoundException, OperationFailedException, PermissionDeniedException
composiitonEnablerIds - the Ids for a set of
CompositionEnablers composiitonId - the Id of a Composition
NotFoundException - composiitonId not
found or, an composiitonEnablerId not related
to composiitonId NullArgumentException - composiitonEnablerIds
or composiitonId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.