| Interface | osid.resourcing.rules.JobConstrainerEnablerFoundryAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods to re-assign   Adding a reference of a   | ||
| Method | canAssignJobConstrainerEnablers | ||
| Description | 
                     Tests if this user can alter job constrainer 
                    enabler/foundry 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 a   | ||
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignJobConstrainerEnablersToFoundry | ||
| Description | 
                     Tests if this user can alter job constrainer 
                    enabler/foundry 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 a   | ||
| Parameters | osid.id.Id | foundryId | the  Id  of the  Foundry   | 
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Errors | NULL_ARGUMENT |  foundryId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableFoundryIds | ||
| Description | 
                     Gets a list of foundries including and under the given foundry node in which any job constrainer enabler can be assigned.  | ||
| Parameters | osid.id.Id | foundryId | the  Id  of the  Foundry   | 
| Return | osid.id.IdList | list of assignable foundry  Ids   | |
| Errors | NULL_ARGUMENT |  foundryId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableFoundryIdsForJobConstrainerEnabler | ||
| Description | 
                     Gets a list of foundries including and under the given foundry node in which a specific job constrainer enabler can be assigned.  | ||
| Parameters | osid.id.Id | foundryId | the  Id  of the  Foundry   | 
osid.id.Id | jobConstrainerEnablerId | the  Id  of the  JobConstrainerEnabler   | |
| Return | osid.id.IdList | list of assignable foundry  Ids   | |
| Errors | NULL_ARGUMENT |  foundryId  or  jobConstrainerEnablerId  is 
 null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignJobConstrainerEnablerToFoundry | ||
| Description | 
                     Adds an existing   | ||
| Parameters | osid.id.Id | jobConstrainerEnablerId | the  Id  of the  JobConstrainerEnabler   | 
osid.id.Id | foundryId | the  Id  of the  Foundry   | |
| Errors | ALREADY_EXISTS |  jobConstrainerEnablerId  is already assigned to  
foundryId   |                 |
| NOT_FOUND |  jobConstrainerEnablerId  or  foundryId  not 
found  |                 ||
| NULL_ARGUMENT |  jobConstrainerEnablerId  or  foundryId  is 
 null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignJobConstrainerEnablerFromFoundry | ||
| Description | 
                     Removes a   | ||
| Parameters | osid.id.Id | jobConstrainerEnablerId | the  Id  of the  JobConstrainerEnabler   | 
osid.id.Id | foundryId | the  Id  of the  Foundry   | |
| Errors | NOT_FOUND |  jobConstrainerEnablerId  or  foundryId  not 
found or  jobConstrainerEnablerId  not assigned to  
foundryId   |                 |
| NULL_ARGUMENT |  jobConstrainerEnablerId  or  foundryId  is 
 null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |