public interface EngineHierarchyDesignSession extends OsidSession
This session manages a hierarchy of engines. Engines may be organized
into a hierarchy for organizing or federating. A parent Engine
includes all of the search of its children such that a single root
node contains all of the search of the federation.
| Modifier and Type | Method and Description |
|---|---|
void |
addChildEngine(Id engineId,
Id childId)
Adds a child to an engine.
|
void |
addRootEngine(Id engineId)
Adds a root engine.
|
boolean |
canModifyEngineHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getEngineHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getEngineHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildEngine(Id engineId,
Id childId)
Removes a child from an engine.
|
void |
removeChildEngines(Id engineId)
Removes all children from an engine.
|
void |
removeRootEngine(Id engineId)
Removes a root engine.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getEngineHierarchyId()
Id associated with this session. Id associated with this sessionmandatory - This method must be implemented. Hierarchy getEngineHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canModifyEngineHierarchy()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer these operations to an
unauthorized user. false if changing this hierarchy is not
authorized, true otherwisemandatory - This method must be implemented. void addRootEngine(Id engineId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
engineId - the Id of an engineAlreadyExistsException - engineId is
already in hierarchyNotFoundException - engineId not foundNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeRootEngine(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
engineId - the Id of an engineNotFoundException - engineId not a rootNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void addChildEngine(Id engineId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
engineId - the Id of an enginechildId - the Id of the new childAlreadyExistsException - engineId is
already a parent of childId NotFoundException - engineId or
childId not foundNullArgumentException - engineId or
childId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeChildEngine(Id engineId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
engineId - the Id of an enginechildId - the Id of the new childNotFoundException - engineId not a
parent of childId NullArgumentException - engineId or
childId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeChildEngines(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
engineId - the Id of an engineNotFoundException - engineId not in
hierarchyNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.