Interface CompositionEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCompositionEnablerToComposition(Id compositionEnablerId, Id compositionId) Adds an existingCompositionEnablerto aComposition.booleanTests if this user can alter composition enabler/composition mappings.booleanTests if this user can orderCompositionEnablers.Gets theRepositoryassociated with this session.Gets theRepositoryIdassociated with this session.voidmoveCompositionEnablerAhead(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.voidmoveCompositionEnablerBehind(Id composiitonEnablerId, Id composiitonId, Id referenceId) Reorders composiiton enablers for a composiiton by moving the specified composiiton enabler behind a reference composiiton enabler.voidorderCompositionEnablers(Id[] composiitonEnablerIds, Id composiitonId) Reorders a set of composiiton enablers for a composiiton.voidunassignCompositionEnablerFromComposition(Id compositionEnablerId, Id compositionId) Removes aCompositionEnablerfrom aComposition.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
-
getRepositoryId
Id getRepositoryId()Gets theRepositoryIdassociated with this session.- Returns:
- the
Repository Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getRepository
Gets theRepositoryassociated with this session.- Returns:
- the repository
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignCompositionEnablers
boolean canAssignCompositionEnablers()Tests if this user can alter composition enabler/composition 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.
-
assignCompositionEnablerToComposition
void assignCompositionEnablerToComposition(Id compositionEnablerId, Id compositionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCompositionEnablerto aComposition.- Parameters:
compositionEnablerId- theIdof theCompositionEnablercompositionId- theIdof theComposition- Throws:
AlreadyExistsException-compositionEnablerIdis already applied tocompositionIdNotFoundException-compositionEnablerIdorcompositionIdnot foundNullArgumentException-compositionEnablerIdorcompositionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCompositionEnablerFromComposition
void unassignCompositionEnablerFromComposition(Id compositionEnablerId, Id compositionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCompositionEnablerfrom aComposition.- Parameters:
compositionEnablerId- theIdof theCompositionEnablercompositionId- theIdof theComposition- Throws:
NotFoundException-compositionEnablerIdorcompositionIdnot found orcompositionEnablerIdnot applied tocompositionIdNullArgumentException-compositionEnablerIdorcompositionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceCompositionEnablers
boolean canSequenceCompositionEnablers()Tests if this user can orderCompositionEnablers. 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:
falseifCompositionEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveCompositionEnablerAhead
void moveCompositionEnablerAhead(Id composiitonEnablerId, Id composiitonId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders composiiton enablers for a composiiton by moving the specified composiiton enabler in front of a reference composiiton enabler.- Parameters:
composiitonEnablerId- theIdof aCompositionEnablercomposiitonId- theIdof aCompositionreferenceId- the reference composiiton enablerId- Throws:
NotFoundException-composiitonEnablerId, composiitonId, orreferenceIdnot found or,composiitonEnablerIdorreferenceIdnot related tocomposiitonIdNullArgumentException-composiitonEnablerId, composiitonId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveCompositionEnablerBehind
void moveCompositionEnablerBehind(Id composiitonEnablerId, Id composiitonId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders composiiton enablers for a composiiton by moving the specified composiiton enabler behind a reference composiiton enabler.- Parameters:
composiitonEnablerId- theIdof aCompositionEnablercomposiitonId- theIdof aCompositionreferenceId- the reference composiiton enablerId- Throws:
NotFoundException-composiitonEnablerId, composiitonId, orreferenceIdnot found or,composiitonEnablerIdorreferenceIdnot related tocomposiitonIdNullArgumentException-composiitonEnablerId, composiitonId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderCompositionEnablers
void orderCompositionEnablers(Id[] composiitonEnablerIds, Id composiitonId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of composiiton enablers for a composiiton.- Parameters:
composiitonEnablerIds- theIdsfor a set ofCompositionEnablerscomposiitonId- theIdof aComposition- Throws:
NotFoundException-composiitonIdnot found or, ancomposiitonEnablerIdnot related tocomposiitonIdNullArgumentException-composiitonEnablerIdsorcomposiitonIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-