| Interface | osid.resourcing.rules.JobConstrainerAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session creates and removes job constrainers. The data 
                for create and update is provided via the   | ||
| Method | getFoundryId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Foundry Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFoundry | ||
| Description | 
                     Gets the   | ||
| Return | osid.resourcing.Foundry | the foundry | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateJobConstrainer | ||
| Description | 
                     Tests if this user can create job constrainers. A 
                    return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known creating a   | ||
| Return | boolean |  false  if  JobConstrainer  creation is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateJobConstrainerWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | jobConstrainerRecordTypes | array of job constrainer record types | 
| Return | boolean |  true  if  JobConstrainer  creation using the 
specified record  Types  is supported,  false  
otherwise  | |
| Errors | NULL_ARGUMENT |  jobConstrainerRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getJobConstrainerFormForCreate | ||
| Description | 
                     Gets the job constrainer form for creating new job constrainers. A new form should be requested for each create transaction.  | ||
| Parameters | osid.type.Type[] | jobConstrainerRecordTypes | array of job constrainer record types | 
| Return | osid.resourcing.rules.JobConstrainerForm | the job constrainer form | |
| Errors | NULL_ARGUMENT |  jobConstrainerRecordTypes  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form with requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createJobConstrainer | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.resourcing.rules.JobConstrainerForm | jobConstrainerForm | the form for this  JobConstrainer   | 
| Return | osid.resourcing.rules.JobConstrainer | the new  JobConstrainer   | |
| Errors | ILLEGAL_STATE |  jobConstrainerForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  jobConstrainerForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  jobConstrainerForm  did not originate from  
getJobConstrainerFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateJobConstrainers | ||
| Description | 
                     Tests if this user can update job constrainers. A 
                    return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known updating a   | ||
| Return | boolean |  false  if  JobConstrainer  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getJobConstrainerFormForUpdate | ||
| Description | 
                     Gets the job constrainer form for updating an existing job constrainer. A new job constrainer form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | jobConstrainerId | the  Id  of the  JobConstrainer   | 
| Return | osid.resourcing.rules.JobConstrainerForm | the job constrainer form | |
| Errors | NOT_FOUND |  jobConstrainerId  is not found  |                 |
| NULL_ARGUMENT |  jobConstrainerId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateJobConstrainer | ||
| Description | 
                     Updates an existing job constrainer.  | ||
| Parameters | osid.resourcing.rules.JobConstrainerForm | jobConstrainerForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  jobConstrainerForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  jobConstrainerForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  jobConstrainerForm  did not originate from  
getJobConstrainerFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteJobConstrainers | ||
| Description | 
                     Tests if this user can delete job constrainers. A 
                    return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known deleting a   | ||
| Return | boolean |  false  if  JobConstrainer  deletion is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteJobConstrainer | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | jobConstrainerId | the  Id  of the  JobConstrainer  to remove  | 
| Errors | NOT_FOUND |  jobConstrainerId  not found  |                 |
| NULL_ARGUMENT |  jobConstrainerId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageJobConstrainerAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  JobConstrainer  aliasing is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasJobConstrainer | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | jobConstrainerId | the  Id  of a  JobConstrainer   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  jobConstrainerId  not found  |                 ||
| NULL_ARGUMENT |  jobConstrainerId  or  aliasId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |