public interface InstructionEngineAssignmentSession extends OsidSession
This session provides methods to re-assign  Instructions  
  to  Engine  mappings. An  Instruction  may 
  appear in multiple  Engine  objects and removing the last 
  reference to an  Instruction  is the equivalent of deleting 
  it. Each  Engine  may have its own authorizations governing 
  who is allowed to operate on it. 
 Adding a reference of an  Instruction  to another  
  Engine  is not a copy operation (eg: does not change its  Id 
   ). 
| Modifier and Type | Method and Description | 
|---|---|
void | 
assignInstructionToEngine(Id instructionId,
                         Id engineId)
Adds an existing  
 Instruction  to a  Engine. | 
boolean | 
canAssignInstructions()
Tests if this user can alter instruction/engine mappings. 
 | 
boolean | 
canAssignInstructionsToEngine(Id engineId)
Tests if this user can alter instruction/engine mappings. 
 | 
IdList | 
getAssignableEngineIds(Id engineId)
Gets a list of engines including and under the given engine node in 
  which any instruction can be assigned. 
 | 
IdList | 
getAssignableEngineIdsForInstruction(Id engineId,
                                    Id instructionId)
Gets a list of engines including and under the given engine node in 
  which a specific instruction can be assigned. 
 | 
void | 
unassignInstructionFromEngine(Id instructionId,
                             Id engineId)
Removes an  
 Instruction  from a  Engine. | 
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignInstructions()
 PERMISSION_DENIED.  This is intended as a hint to 
  an application that may opt not to offer lookup operations to 
  unauthorized users. false  if instruction is not authorized,  
          true  otherwisemandatory - This method must be implemented. boolean canAssignInstructionsToEngine(Id engineId)
 PERMISSION_DENIED.  This is intended as a hint to 
  an application that may opt not to offer lookup operations to 
  unauthorized users.engineId - the  Id  of the  Engine  false  if mapping is not authorized,  true 
           otherwiseNullArgumentException -  engineId  is 
           null mandatory - This method must be implemented. IdList getAssignableEngineIds(Id engineId) throws OperationFailedException
engineId - the  Id  of the  Engine  Ids NullArgumentException -  engineId  is 
           null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableEngineIdsForInstruction(Id engineId, Id instructionId) throws OperationFailedException
engineId - the  Id  of the  Engine instructionId - the  Id  of the  Instruction 
           Ids NullArgumentException -  engineId  or 
           instructionId  is  null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignInstructionToEngine(Id instructionId, Id engineId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
 Instruction  to a  Engine. 
  instructionId - the  Id  of the  Instruction 
          engineId - the  Id  of the  Engine AlreadyExistsException -  instructionId  
          is already assigned to  engineId NotFoundException -  instructionId  or 
           engineId  not foundNullArgumentException -  instructionId  or 
           engineId  is  null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignInstructionFromEngine(Id instructionId, Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
 Instruction  from a  Engine. instructionId - the  Id  of the  Instruction 
          engineId - the  Id  of the  Engine NotFoundException -  instructionId  or 
           engineId  not found or  instructionId 
           not assigned to  engineId NullArgumentException -  instructionId  or 
           engineId  is  null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.