Objective Bank¶
Objective Bank¶
-
class
dlkit.services.learning.ObjectiveBank(provider_manager, catalog, runtime, proxy, **kwargs)¶ Bases:
dlkit.osid.objects.OsidCatalog,dlkit.osid.sessions.OsidSessionan objective bank defines a collection of objectives.
-
get_objective_bank_record(objective_bank_record_type)¶ Gets the objective bank record corresponding to the given
ObjectiveBankrecordType.This method is used to retrieve an object implementing the requested record. The
objective_bank_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(objective_bank_record_type)istrue.Parameters: objective_bank_record_type ( osid.type.Type) – an objective bank record typeReturns: the objective bank record Return type: osid.learning.records.ObjectiveBankRecordRaise: NullArgument–objective_bank_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(objective_bank_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Objective Lookup Methods¶
ObjectiveBank.objective_bank_id¶Gets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bank¶Gets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_lookup_objectives()¶Tests if this user can perform
Objectivelookups.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: falseif lookup methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_comparative_objective_view()¶The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_plenary_objective_view()¶A complete view of the
Objectivereturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_federated_objective_bank_view()¶Federates the view for methods in this session.
A federated view will include proficiencies in objective banks which are children of this objective bank in the obective bank hierarchy.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_isolated_objective_bank_view()¶Isolates the view for methods in this session.
An isolated view restricts lookups to this objective bank only.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.get_objective(objective_id)¶Gets the
Objectivespecified by itsId.In plenary mode, the exact
Idis found or aNotFoundresults. Otherwise, the returnedObjectivemay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to anObjectiveand retained for compatibility.
Parameters: objective_id ( osid.id.Id) –Idof theObjectiveReturns: the objective Return type: osid.learning.ObjectiveRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.get_objectives_by_ids(objective_ids)¶Gets an
ObjectiveListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the objectives specified in the
Idlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleObjectivesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: objective_ids ( osid.id.IdList) – the list ofIdsto retrieveReturns: the returned ObjectivelistReturn type: osid.learning.ObjectiveListRaise: NotFound– anId wasnot foundRaise: NullArgument–objective_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objectives_by_genus_type(objective_genus_type)¶Gets an
ObjectiveListcorresponding to the given objective genusTypewhich does not include objectives of genus types derived from the specifiedType.In plenary mode, the returned list contains all known objectives or an error results. Otherwise, the returned list may contain only those objectives that are accessible through this session.
Parameters: objective_genus_type ( osid.type.Type) – an objective genus typeReturns: the returned ObjectivelistReturn type: osid.learning.ObjectiveListRaise: NullArgument–objective_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objectives_by_parent_genus_type(objective_genus_type)¶Gets an
ObjectiveListcorresponding to the given objective genusTypeand include any additional objective with genus types derived from the specifiedType.In plenary mode, the returned list contains all known objectives or an error results. Otherwise, the returned list may contain only those objectives that are accessible through this session
Parameters: objective_genus_type ( osid.type.Type) – an objective genus typeReturns: the returned ObjectivelistReturn type: osid.learning.ObjectiveListRaise: NullArgument–objective_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objectives_by_record_type(objective_record_type)¶Gets an
ObjectiveListcontaining the given objective recordType.In plenary mode, the returned list contains all known objectives or an error results. Otherwise, the returned list may contain only those objectives that are accessible through this session.
Parameters: objective_record_type ( osid.type.Type) – an objective record typeReturns: the returned ObjectivelistReturn type: osid.learning.ObjectiveListRaise: NullArgument–objective_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.objectives¶Gets all
Objectives.In plenary mode, the returned list contains all known objectives or an error results. Otherwise, the returned list may contain only those objectives that are accessible through this session.
Returns: an ObjectiveListReturn type: osid.learning.ObjectiveListRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Query Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_search_objectives()¶Tests if this user can perform
Objectivessearches.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.
Returns: falseif search methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_federated_objective_bank_view()Federates the view for methods in this session.
A federated view will include proficiencies in objective banks which are children of this objective bank in the obective bank hierarchy.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_isolated_objective_bank_view()Isolates the view for methods in this session.
An isolated view restricts lookups to this objective bank only.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.objective_query¶Gets an objective query.
Returns: the objective query Return type: osid.learning.ObjectiveQuerycompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objectives_by_query(objective_query)¶Gets a list of
Objectivesmatching the given objective query.
Parameters: objective_query ( osid.learning.ObjectiveQuery) – the objective queryReturns: the returned ObjectiveListReturn type: osid.learning.ObjectiveListRaise: NullArgument–objective_queryisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–objective_queryis not of this servicecompliance: mandatory – This method must be implemented.
Objective Admin Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_create_objectives()¶Tests if this user can create
Objectives.A return of true does not guarantee successful authorization. A return of false indicates that it is known creating an Objective will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.
Returns: falseifObjectivecreation is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.can_create_objective_with_record_types(objective_record_types)¶Tests if this user can create a single
Objectiveusing the desired record types.While
LearningManager.getObjectiveRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificObjective. Providing an empty array tests if anObjectivecan be created with no records.
Parameters: objective_record_types ( osid.type.Type[]) – array of objective record typesReturns: trueifObjectivecreation using the specified recordTypesis supported,falseotherwiseReturn type: booleanRaise: NullArgument–objective_record_typesisnullcompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_form_for_create(objective_record_types)¶Gets the objective form for creating new objectives.
A new form should be requested for each create transaction.
Parameters: objective_record_types ( osid.type.Type[]) – array of objective record typesReturns: the objective form Return type: osid.learning.ObjectiveFormRaise: NullArgument–objective_record_typesisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported– unable to get form for requested record typescompliance: mandatory – This method must be implemented.
ObjectiveBank.create_objective(objective_form)¶Creates a new
Objective.
Parameters: objective_form ( osid.learning.ObjectiveForm) – the form for thisObjectiveReturns: the new ObjectiveReturn type: osid.learning.ObjectiveRaise: IllegalState–objective_formalready used in a create transactionRaise: InvalidArgument– one or more of the form elements is invalidRaise: NullArgument–objective_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–objective_formdid not originate fromget_objective_form_for_create()compliance: mandatory – This method must be implemented.
ObjectiveBank.can_update_objectives()¶Tests if this user can update
Objectives.A return of true does not guarantee successful authorization. A return of false indicates that it is known updating an
Objectivewill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.
Returns: falseif objective modification is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_form_for_update(objective_id)¶Gets the objective form for updating an existing objective.
A new objective form should be requested for each update transaction.
Parameters: objective_id ( osid.id.Id) – theIdof theObjectiveReturns: the objective form Return type: osid.learning.ObjectiveFormRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.update_objective(objective_form)¶Updates an existing objective.
Parameters: objective_form ( osid.learning.ObjectiveForm) – the form containing the elements to be updatedRaise: IllegalState–objective_formalready used in an update transactionRaise: InvalidArgument– the form contains an invalid valueRaise: NullArgument–objective_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–objective_formdid not originate fromget_objective_form_for_update()compliance: mandatory – This method must be implemented.
ObjectiveBank.can_delete_objectives()¶Tests if this user can delete
Objectives.A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting an
Objectivewill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.
Returns: falseifObjectivedeletion is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.delete_objective(objective_id)¶Deletes the
Objectiveidentified by the givenId.
Parameters: objective_id ( osid.id.Id) – theIdof theObjectiveto deleteRaise: NotFound– anObjectivewas not found identified by the givenIdRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_manage_objective_aliases()¶Tests if this user can manage
Idaliases forObjectives.A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.
Returns: falseifObjectivealiasing is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.alias_objective(objective_id, alias_id)¶Adds an
Idto anObjectivefor the purpose of creating compatibility.The primary
Idof theObjectiveis determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another objective, it is reassigned to the given objectiveId.
Parameters:
- objective_id (
osid.id.Id) – theIdof anObjective- alias_id (
osid.id.Id) – the aliasIdRaise:
AlreadyExists–alias_idis already assignedRaise:
NotFound–objective_idnot foundRaise:
NullArgument–objective_idoralias_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Hierarchy Methods¶
ObjectiveBank.objective_hierarchy_id¶Gets the hierarchy
Idassociated with this session.
Returns: the hierarchy Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_hierarchy¶Gets the hierarchy associated with this session.
Returns: the hierarchy associated with this session Return type: osid.hierarchy.HierarchyRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_access_objective_hierarchy()¶Tests if this user can perform hierarchy queries.
A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied. This is intended as a hint to an an application that may not offer traversal functions to unauthorized users.
Returns: falseif hierarchy traversal methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_comparative_objective_view()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_plenary_objective_view()A complete view of the
Objectivereturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.root_objective_ids¶Gets the root objective
Idsin this hierarchy.
Returns: the root objective IdsReturn type: osid.id.IdListRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.root_objectives¶Gets the root objective in this objective hierarchy.
Returns: the root objective Return type: osid.learning.ObjectiveListRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.has_parent_objectives(objective_id)¶Tests if the
Objectivehas any parents.
Parameters: objective_id ( osid.id.Id) – theIdof an objectiveReturns: trueif the objective has parents,falseotherwiseReturn type: booleanRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.is_parent_of_objective(id_, objective_id)¶Tests if an
Idis a direct parent of an objective.
Parameters:
- id (
osid.id.Id) – anId- objective_id (
osid.id.Id) – theIdof an objectiveReturns:
trueif thisidis a parent ofobjective_id,falseotherwiseReturn type:
booleanRaise:
NotFound–objective_idis not foundRaise:
NullArgument–idorobjective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented. implementation notes: If
idnot found returnfalse.
ObjectiveBank.get_parent_objective_ids(objective_id)¶Gets the parent
Idsof the given objective.
Parameters: objective_id ( osid.id.Id) – theIdof an objectiveReturns: the parent Idsof the objectiveReturn type: osid.id.IdListRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_parent_objectives(objective_id)¶Gets the parents of the given objective.
Parameters: objective_id ( osid.id.Id) – theIdof an objectiveReturns: the parents of the objective Return type: osid.learning.ObjectiveListRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.is_ancestor_of_objective(id_, objective_id)¶Tests if an
Idis an ancestor of an objective.
Parameters:
- id (
osid.id.Id) – anId- objective_id (
osid.id.Id) – theIdof an objectiveReturns:
trueif thisidis an ancestor ofobjective_id,falseotherwiseReturn type:
booleanRaise:
NotFound–objective_idis not foundRaise:
NullArgument–idorobjective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented. implementation notes: If
idnot found returnfalse.
ObjectiveBank.has_child_objectives(objective_id)¶Tests if an objective has any children.
Parameters: objective_id ( osid.id.Id) – theIdof an objectiveReturns: trueif theobjective_idhas children,falseotherwiseReturn type: booleanRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.is_child_of_objective(id_, objective_id)¶Tests if an objective is a direct child of another.
Parameters:
- id (
osid.id.Id) – anId- objective_id (
osid.id.Id) – theIdof an objectiveReturns:
trueif theidis a child ofobjective_id,falseotherwiseReturn type:
booleanRaise:
NotFound–objective_idis not foundRaise:
NullArgument–idorobjective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented. implementation notes: If
idnot found returnfalse.
ObjectiveBank.get_child_objective_ids(objective_id)¶Gets the child
Idsof the given objective.
Parameters: objective_id ( osid.id.Id) – theIdto queryReturns: the children of the objective Return type: osid.id.IdListRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_child_objectives(objective_id)¶Gets the children of the given objective.
Parameters: objective_id ( osid.id.Id) – theIdto queryReturns: the children of the objective Return type: osid.learning.ObjectiveListRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.is_descendant_of_objective(id_, objective_id)¶Tests if an
Idis a descendant of an objective.
Parameters:
- id (
osid.id.Id) – anId- objective_id (
osid.id.Id) – theIdof an objectiveReturns:
trueif theidis a descendant of theobjective_id,falseotherwiseReturn type:
booleanRaise:
NotFound–objective_idis not foundRaise:
NullArgument–idorobjective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented. implementation notes: If
idis not found returnfalse.
ObjectiveBank.get_objective_node_ids(objective_id, ancestor_levels, descendant_levels, include_siblings)¶Gets a portion of the hierarchy for the given objective.
Parameters:
- objective_id (
osid.id.Id) – theIdto query- ancestor_levels (
cardinal) – the maximum number of ancestor levels to include. A value of 0 returns no parents in the node.- descendant_levels (
cardinal) – the maximum number of descendant levels to include. A value of 0 returns no children in the node.- include_siblings (
boolean) –trueto include the siblings of the given node,falseto omit the siblingsReturns: a catalog node
Return type:
osid.hierarchy.NodeRaise:
NotFound–objective_idnot foundRaise:
NullArgument–objective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_nodes(objective_id, ancestor_levels, descendant_levels, include_siblings)¶Gets a portion of the hierarchy for the given objective.
Parameters:
- objective_id (
osid.id.Id) – theIdto query- ancestor_levels (
cardinal) – the maximum number of ancestor levels to include. A value of 0 returns no parents in the node.- descendant_levels (
cardinal) – the maximum number of descendant levels to include. A value of 0 returns no children in the node.- include_siblings (
boolean) –trueto include the siblings of the given node,falseto omit the siblingsReturns: an objective node
Return type:
osid.learning.ObjectiveNodeRaise:
NotFound–objective_idnot foundRaise:
NullArgument–objective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Hierarchy Design Methods¶
ObjectiveBank.objective_hierarchy_idGets the hierarchy
Idassociated with this session.
Returns: the hierarchy Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_hierarchyGets the hierarchy associated with this session.
Returns: the hierarchy associated with this session Return type: osid.hierarchy.HierarchyRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_modify_objective_hierarchy()¶Tests if this user can change the hierarchy.
A return of true does not guarantee successful authorization. A return of false indicates that it is known performing any update will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer these operations to an unauthorized user.
Returns: falseif changing this hierarchy is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.add_root_objective(objective_id)¶Adds a root objective.
Parameters: objective_id ( osid.id.Id) – theIdof an objectiveRaise: AlreadyExists–objective_idis already in hierarchyRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.remove_root_objective(objective_id)¶Removes a root objective.
Parameters: objective_id ( osid.id.Id) – theIdof an objectiveRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.add_child_objective(objective_id, child_id)¶Adds a child to an objective.
Parameters:
- objective_id (
osid.id.Id) – theIdof an objective- child_id (
osid.id.Id) – theIdof the new childRaise:
AlreadyExists–objective_idis already a parent ofchild_idRaise:
NotFound–objective_idorchild_idnot foundRaise:
NullArgument–objective_idorchild_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.remove_child_objective(objective_id, child_id)¶Removes a child from an objective.
Parameters:
- objective_id (
osid.id.Id) – theIdof an objective- child_id (
osid.id.Id) – theIdof the new childRaise:
NotFound–objective_idnot a parent ofchild_idRaise:
NullArgument–objective_idorchild_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.remove_child_objectives(objective_id)¶Removes all children from an objective.
Parameters: objective_id ( osid.id.Id) – theIdof an objectiveRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Sequencing Methods¶
ObjectiveBank.objective_hierarchy_idGets the hierarchy
Idassociated with this session.
Returns: the hierarchy Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_hierarchyGets the hierarchy associated with this session.
Returns: the hierarchy associated with this session Return type: osid.hierarchy.HierarchyRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_sequence_objectives()¶Tests if this user can sequence objectives.
A return of true does not guarantee successful authorization. A return of false indicates that it is known performing any update will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer these operations to an unauthorized user.
Returns: falseif sequencing objectives is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.move_objective_ahead(parent_objective_id, reference_objective_id, objective_id)¶Moves an objective ahead of a refrence objective under the given parent.
Parameters:
- parent_objective_id (
osid.id.Id) – theIdof the parent objective- reference_objective_id (
osid.id.Id) – theIdof the objective- objective_id (
osid.id.Id) – theIdof the objective to move ahead ofreference_objective_idRaise:
NotFound–parent_objective_id, reference_objective_id,orobjective_idnot found, orreference_objective_idorobjective_idis not a child ofparent_objective_idRaise:
NullArgument–parent_objective_id, reference_objective_id,oridisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.move_objective_behind(parent_objective_id, reference_objective_id, objective_id)¶Moves an objective behind a refrence objective under the given parent.
Parameters:
- parent_objective_id (
osid.id.Id) – theIdof the parent objective- reference_objective_id (
osid.id.Id) – theIdof the objective- objective_id (
osid.id.Id) – theIdof the objective to move behindreference_objective_idRaise:
NotFound–parent_objective_id, reference_objective_id,orobjective_idnot found, orreference_objective_idorobjective_idis not a child ofparent_objective_idRaise:
NullArgument–parent_objective_id, reference_objective_id,oridisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.sequence_objectives(parent_objective_id, objective_ids)¶Sequences a set of objectives under a parent.
Parameters:
- parent_objective_id (
osid.id.Id) – theIdof the parent objective- objective_ids (
osid.id.Id[]) – theIdof the objectivesRaise:
NotFound–parent_idor anobjective_idnot found, or anobjective_idis not a child ofparent_objective_idRaise:
NullArgument–paren_objectivet_idorobjective_idsisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Objective Bank Methods¶
ObjectiveBank.can_lookup_objective_objective_bank_mappings()¶Tests if this user can perform lookups of objective/objective bank mappings.
A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: falseif looking up mappings is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_comparative_objective_bank_view()¶The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_plenary_objective_bank_view()¶A complete view of the
ActivityandObjectiveBankreturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.get_objective_ids_by_objective_bank(objective_bank_id)¶Gets the list of
ObjectiveIdsassociated with anObjectiveBank.
Parameters: objective_bank_id ( osid.id.Id) –Idof theObjectiveBankReturns: list of related objectives Return type: osid.id.IdListRaise: NotFound–objective_bank_idis not foundRaise: NullArgument–objective_bank_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objectives_by_objective_bank(objective_bank_id)¶Gets the list of
Objectivesassociated with anObjectiveBank.
Parameters: objective_bank_id ( osid.id.Id) –Idof theObjectiveBankReturns: list of related objective IdsReturn type: osid.learning.ObjectiveListRaise: NotFound–objective_bank_idis not foundRaise: NullArgument–objective_bank_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_ids_by_objective_banks(objective_bank_ids)¶Gets the list of
Objective Idscorresponding to a list ofObjectiveBanks.
Parameters: objective_bank_ids ( osid.id.IdList) – list of objective bankIdsReturns: list of objective IdsReturn type: osid.id.IdListRaise: NullArgument–objective_bank_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objectives_by_objective_banks(objective_bank_ids)¶Gets the list of
Objectivescorresponding to a list ofObjectiveBanks.
Parameters: objective_bank_ids ( osid.id.IdList) – list of objective bankIdsReturns: list of objectives Return type: osid.learning.ObjectiveListRaise: NullArgument–objective_bank_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_bank_ids_by_objective(objective_id)¶Gets the list of
ObjectiveBankIdsmapped to anObjective.
Parameters: objective_id ( osid.id.Id) –Idof anObjectiveReturns: list of objective bank IdsReturn type: osid.id.IdListRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_banks_by_objective(objective_id)¶Gets the list of
ObjectiveBanksmapped to anObjective.
Parameters: objective_id ( osid.id.Id) –Idof anObjectiveReturns: list of objective banks Return type: osid.learning.ObjectiveBankListRaise: NotFound–objective_idis not foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Objective Bank Assignment Methods¶
ObjectiveBank.can_assign_objectives()¶Tests if this user can alter objective/objective bank 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
PermissionDenied. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.
Returns: falseif mapping is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.can_assign_objectives_to_objective_bank(objective_bank_id)¶Tests if this user can alter objective/objective bank 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
PermissionDenied. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.
Parameters: objective_bank_id ( osid.id.Id) – theIdof theObjectiveBankReturns: falseif mapping is not authorized,trueotherwiseReturn type: booleanRaise: NullArgument–objective_bank_idisnullcompliance: mandatory – This method must be implemented.
ObjectiveBank.get_assignable_objective_bank_ids(objective_bank_id)¶Gets a list of objective banks including and under the given objective bank node in which any activity can be assigned.
Parameters: objective_bank_id ( osid.id.Id) – theIdof theObjectiveBankReturns: list of assignable objective bank IdsReturn type: osid.id.IdListRaise: NullArgument–objective_bank_idisnullRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
ObjectiveBank.get_assignable_objective_bank_ids_for_objective(objective_bank_id, objective_id)¶Gets a list of objective banks including and under the given objective bank node in which a specific objective can be assigned.
Parameters:
- objective_bank_id (
osid.id.Id) – theIdof theObjectiveBank- objective_id (
osid.id.Id) – theIdof theObjectiveReturns: list of assignable objective bank
IdsReturn type:
osid.id.IdListRaise:
NullArgument–objective_idorobjective_bank_idisnullRaise:
OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
ObjectiveBank.assign_objective_to_objective_bank(objective_id, objective_bank_id)¶Adds an existing
Objectiveto anObjectiveBank.
Parameters:
- objective_id (
osid.id.Id) – theIdof theObjective- objective_bank_id (
osid.id.Id) – theIdof theObjectiveBankRaise:
AlreadyExists–objective_idalready mapped toobjective_bank_idRaise:
NotFound–objective_idorobjective_bank_idnot foundRaise:
NullArgument–objective_idorobjective_bank_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.unassign_objective_from_objective_bank(objective_id, objective_bank_id)¶Removes an
Objectivefrom anObjectiveBank.
Parameters:
- objective_id (
osid.id.Id) – theIdof theObjective- objective_bank_id (
osid.id.Id) – theIdof theObjectiveBankRaise:
NotFound–objective_idorobjective_bank_idnot found orobjective_idnot mapped toobjective_bank_idRaise:
NullArgument–objective_idorobjective_bank_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.reassign_proficiency_to_objective_bank(objective_id, from_objective_bank_id, to_objective_bank_id)¶Moves an
Objectivefrom oneObjectiveBankto another.Mappings to other
ObjectiveBanksare unaffected.
Parameters:
- objective_id (
osid.id.Id) – theIdof theObjective- from_objective_bank_id (
osid.id.Id) – theIdof the currentObjectiveBank- to_objective_bank_id (
osid.id.Id) – theIdof the destinationObjectiveBankRaise:
NotFound–objective_id, from_objective_bank_id,orto_objective_bank_idnot found orobjective_idnot mapped tofrom_objective_bank_idRaise:
NullArgument–objective_id, from_objective_bank_id,orto_objective_bank_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Requisite Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_lookup_objective_prerequisites()¶Tests if this user can perform
Objectivelookups.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: falseif lookup methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_comparative_objective_view()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_plenary_objective_view()A complete view of the
Objectivereturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_federated_objective_bank_view()Federates the view for methods in this session.
A federated view will include proficiencies in objective banks which are children of this objective bank in the obective bank hierarchy.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_isolated_objective_bank_view()Isolates the view for methods in this session.
An isolated view restricts lookups to this objective bank only.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.get_requisite_objectives(objective_id)¶Gets a list of
Objectivesthat are the immediate requisites for the givenObjective.In plenary mode, the returned list contains all of the immediate requisites, or an error results if an
Objectiveis not found or inaccessible. Otherwise, inaccessibleObjectivesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: objective_id ( osid.id.Id) –Idof theObjectiveReturns: the returned requisite ObjectivesReturn type: osid.learning.ObjectiveListRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.get_all_requisite_objectives(objective_id)¶Gets a list of
Objectivesthat are the requisites for the givenObjectiveincluding the requistes of the requisites, and so on.In plenary mode, the returned list contains all of the immediate requisites, or an error results if an
Objectiveis not found or inaccessible. Otherwise, inaccessibleObjectivesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: objective_id ( osid.id.Id) –Idof theObjectiveReturns: the returned ObjectivelistReturn type: osid.learning.ObjectiveListRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_dependent_objectives(objective_id)¶Gets a list of
Objectivesthat require the givenObjective.In plenary mode, the returned list contains all of the immediate requisites, or an error results if an Objective is not found or inaccessible. Otherwise, inaccessible
Objectivesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: objective_id ( osid.id.Id) –Idof theObjectiveReturns: the returned ObjectivelistReturn type: osid.learning.ObjectiveListRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.is_objective_required(objective_id, required_objective_id)¶Tests if an objective is required before proceeding with an objective.
One objective may indirectly depend on another objective by way of one or more other objectives.
Parameters:
- objective_id (
osid.id.Id) –Idof the dependentObjective- required_objective_id (
osid.id.Id) –Idof the requiredObjectiveReturns:
trueifobjective_iddepends onrequired_objective_id,falseotherwiseReturn type:
booleanRaise:
NotFound–objective_idnot foundRaise:
NullArgument–objective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_equivalent_objectives(objective_id)¶Gets a list of
Objectivesthat are equivalent to the givenObjectivefor the purpose of requisites.An equivalent objective can satisfy the given objective. In plenary mode, the returned list contains all of the equivalent requisites, or an error results if an Objective is not found or inaccessible. Otherwise, inaccessible
Objectivesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: objective_id ( osid.id.Id) –Idof theObjectiveReturns: the returned ObjectivelistReturn type: osid.learning.ObjectiveListRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Objective Requisite Assignment Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_assign_requisites()¶Tests if this user can manage objective requisites.
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
PermissionDenied. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.
Returns: falseif mapping is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.assign_objective_requisite(objective_id, requisite_objective_id)¶Creates a requirement dependency between two
Objectives.
Parameters:
- objective_id (
osid.id.Id) – theIdof the dependentObjective- requisite_objective_id (
osid.id.Id) – theIdof the requiredObjectiveRaise:
AlreadyExists–objective_idalready mapped torequisite_objective_idRaise:
NotFound–objective_idorrequisite_objective_idnot foundRaise:
NullArgument–objective_idorrequisite_objective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.unassign_objective_requisite(objective_id, requisite_objective_id)¶Removes an
Objectiverequisite from anObjective.
Parameters:
- objective_id (
osid.id.Id) – theIdof theObjective- requisite_objective_id (
osid.id.Id) – theIdof the requiredObjectiveRaise:
NotFound–objective_idorrequisite_objective_idnot found orobjective_idnot mapped torequisite_objective_idRaise:
NullArgument–objective_idorrequisite_objective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.assign_equivalent_objective(objective_id, equivalent_objective_id)¶Makes an objective equivalent to another objective for the purposes of satisfying a requisite.
Parameters:
- objective_id (
osid.id.Id) – theIdof the principalObjective- equivalent_objective_id (
osid.id.Id) – theIdof the equivalentObjectiveRaise:
AlreadyExists–objective_idalready mapped toequiavelnt_objective_idRaise:
NotFound–objective_idorequivalent_objective_idnot foundRaise:
NullArgument–objective_idorequivalent_objective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.unassign_equivalent_objective(objective_id, equivalent_objective_id)¶Removes an
Objectiverequisite from anObjective.
Parameters:
- objective_id (
osid.id.Id) – theIdof the principalObjective- equivalent_objective_id (
osid.id.Id) – theIdof the equivalentObjectiveRaise:
NotFound–objective_idorequivalent_objective_idnot found orobjective_idis already equivalent toequivalent_objective_idRaise:
NullArgument–objective_idorequivalent_objective_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Activity Lookup Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_lookup_activities()¶Tests if this user can perform
Activitylookups.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: falseif lookup methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_comparative_activity_view()¶The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_plenary_activity_view()¶A complete view of the
Activityreturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_federated_objective_bank_view()Federates the view for methods in this session.
A federated view will include proficiencies in objective banks which are children of this objective bank in the obective bank hierarchy.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_isolated_objective_bank_view()Isolates the view for methods in this session.
An isolated view restricts lookups to this objective bank only.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.get_activity(activity_id)¶Gets the
Activityspecified by itsId.In plenary mode, the exact
Idis found or aNotFoundresults. Otherwise, the returnedActivitymay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aActivityand retained for compatibility.
Parameters: activity_id ( osid.id.Id) –Idof theActivityReturns: the activity Return type: osid.learning.ActivityRaise: NotFound–activity_idnot foundRaise: NullArgument–activity_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.get_activities_by_ids(activity_ids)¶Gets an
ActivityListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the activities specified in the
Idlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleActivitiesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: activity_ids ( osid.id.IdList) – the list ofIdsto retrieveReturns: the returned ActivitylistReturn type: osid.learning.ActivityListRaise: NotFound– anId wasnot foundRaise: NullArgument–activity_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activities_by_genus_type(activity_genus_type)¶Gets an
ActivityListcorresponding to the given activity genusTypewhich does not include activities of genus types derived from the specifiedType.In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session.
Parameters: activity_genus_type ( osid.type.Type) – an activity genus typeReturns: the returned ActivitylistReturn type: osid.learning.ActivityListRaise: NullArgument–activity_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activities_by_parent_genus_type(activity_genus_type)¶Gets an
ActivityListcorresponding to the given activity genusTypeand include any additional activity with genus types derived from the specifiedType.In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session.
Parameters: activity_genus_type ( osid.type.Type) – an activity genus typeReturns: the returned ActivitylistReturn type: osid.learning.ActivityListRaise: NullArgument–activity_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activities_by_record_type(activity_record_type)¶Gets a
ActivityListcontaining the given activity recordType.In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session.
Parameters: activity_record_type ( osid.type.Type) – an activity record typeReturns: the returned ActivitylistReturn type: osid.learning.ActivityListRaise: NullArgument–activity_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activities_for_objective(objective_id)¶Gets the activities for the given objective.
In plenary mode, the returned list contains all of the activities mapped to the objective
Idor an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessibleActivitiesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: objective_id ( osid.id.Id) –Idof theObjectiveReturns: list of enrollments Return type: osid.learning.ActivityListRaise: NotFound–objective_idnot foundRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.get_activities_for_objectives(objective_ids)¶Gets the activities for the given objectives.
In plenary mode, the returned list contains all of the activities specified in the objective
Idlist, in the order of the list, including duplicates, or an error results if a course offeringIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleActivitiesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: objective_ids ( osid.id.IdList) – list of objectiveIdsReturns: list of activities Return type: osid.learning.ActivityListRaise: NotFound– anobjective_idnot foundRaise: NullArgument–objective_id_listisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.get_activities_by_asset(asset_id)¶Gets the activities for the given asset.
In plenary mode, the returned list contains all of the activities mapped to the asset
Idor an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleActivitiesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: asset_id ( osid.id.Id) –Idof anAssetReturns: list of activities Return type: osid.learning.ActivityListRaise: NotFound–asset_idnot foundRaise: NullArgument–asset_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.get_activities_by_assets(asset_ids)¶Gets the activities for the given asset.
In plenary mode, the returned list contains all of the activities mapped to the asset
Idor an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleActivitiesmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: asset_ids ( osid.id.IdList) –IdsofAssetsReturns: list of activities Return type: osid.learning.ActivityListRaise: NotFound– anasset_idnot foundRaise: NullArgument–asset_id_listisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
ObjectiveBank.activities¶Gets all
Activities.In plenary mode, the returned list contains all known activites or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session.
Returns: a ActivityListReturn type: osid.learning.ActivityListRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Activity Admin Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_create_activities()¶Tests if this user can create
Activities.A return of true does not guarantee successful authorization. A return of false indicates that it is known creating an
Activitywill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.
Returns: falseifActivitycreation is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.can_create_activity_with_record_types(activity_record_types)¶Tests if this user can create a single
Activityusing the desired record types.While
LearningManager.getActivityRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificActivity. Providing an empty array tests if anActivitycan be created with no records.
Parameters: activity_record_types ( osid.type.Type[]) – array of activity record typesReturns: trueifActivitycreation using the specified recordTypesis supported,falseotherwiseReturn type: booleanRaise: NullArgument–activity_record_typesisnullcompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activity_form_for_create(objective_id, activity_record_types)¶Gets the activity form for creating new activities.
A new form should be requested for each create transaction.
Parameters:
- objective_id (
osid.id.Id) – theIdof theObjective- activity_record_types (
osid.type.Type[]) – array of activity record typesReturns: the activity form
Return type:
osid.learning.ActivityFormRaise:
NotFound–objective_idis not foundRaise:
NullArgument–objective_idoractivity_record_typesisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failureRaise:
Unsupported– unable to get form for requested record typescompliance: mandatory – This method must be implemented.
ObjectiveBank.create_activity(activity_form)¶Creates a new
Activity.
Parameters: activity_form ( osid.learning.ActivityForm) – the form for thisActivityReturns: the new ActivityReturn type: osid.learning.ActivityRaise: IllegalState–activity_formalready used in a create transactionRaise: InvalidArgument– one or more of the form elements is invalidRaise: NullArgument–activity_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–activity_formdid not originate fromget_activity_form_for_create()compliance: mandatory – This method must be implemented.
ObjectiveBank.can_update_activities()¶Tests if this user can update
Activities.A return of true does not guarantee successful authorization. A return of false indicates that it is known updating an
Activitywill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.
Returns: falseif activity modification is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activity_form_for_update(activity_id)¶Gets the activity form for updating an existing activity.
A new activity form should be requested for each update transaction.
Parameters: activity_id ( osid.id.Id) – theIdof theActivityReturns: the activity form Return type: osid.learning.ActivityFormRaise: NotFound–activity_idis not foundRaise: NullArgument–activity_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.update_activity(activity_form)¶Updates an existing activity,.
Parameters: activity_form ( osid.learning.ActivityForm) – the form containing the elements to be updatedRaise: IllegalState–activity_formalready used in an update transactionRaise: InvalidArgument– the form contains an invalid valueRaise: NullArgument–activity_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–activity_formdid not originate fromget_activity_form_for_update()compliance: mandatory – This method must be implemented.
ObjectiveBank.can_delete_activities()¶Tests if this user can delete
Activities.A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting an
Activitywill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.
Returns: falseifActivitydeletion is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.delete_activity(activity_id)¶Deletes the
Activityidentified by the givenId.
Parameters: activity_id ( osid.id.Id) – theIdof theActivityto deleteRaise: NotFound– anActivitywas not found identified by the givenIdRaise: NullArgument–activity_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_manage_activity_aliases()¶Tests if this user can manage
Idaliases for activities.A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.
Returns: falseifActivityaliasing is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.alias_activity(activity_id, alias_id)¶Adds an
Idto anActivityfor the purpose of creating compatibility.The primary
Idof theActivityis determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another activity, it is reassigned to the given activityId.
Parameters:
- activity_id (
osid.id.Id) – theIdof anActivity- alias_id (
osid.id.Id) – the aliasIdRaise:
AlreadyExists–alias_idis already assignedRaise:
NotFound–activity_idnot foundRaise:
NullArgument–activity_idoralias_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Activity Objective Bank Methods¶
ObjectiveBank.can_lookup_activity_objective_bank_mappings()¶Tests if this user can perform lookups of activity/objective bank mappings.
A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: falseif looking up mappings is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_comparative_objective_bank_view()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_plenary_objective_bank_view()A complete view of the
ActivityandObjectiveBankreturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.get_activity_ids_by_objective_bank(objective_bank_id)¶Gets the list of
ActivityIdsassociated with anObjectiveBank.
Parameters: objective_bank_id ( osid.id.Id) –Idof theObjectiveBankReturns: list of related activity IdsReturn type: osid.id.IdListRaise: NotFound–objective_bank_idis not foundRaise: NullArgument–objective_bank_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activities_by_objective_bank(objective_bank_id)¶Gets the list of
Activitiesassociated with anObjectiveBank.
Parameters: objective_bank_id ( osid.id.Id) –Idof theObjectiveBankReturns: list of related activities Return type: osid.learning.ActivityListRaise: NotFound–objective_bank_idis not foundRaise: NullArgument–objective_bank_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activity_ids_by_objective_banks(objective_bank_ids)¶Gets the list of
Activity Idscorresponding to a list ofObjectiveBanks.
Parameters: objective_bank_ids ( osid.id.IdList) – list of objective bankIdsReturns: list of activity IdsReturn type: osid.id.IdListRaise: NullArgument–objective_bank_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_activities_by_objective_banks(objective_bank_ids)¶Gets the list of
Activitiescorresponding to a list ofObjectiveBanks.
Parameters: objective_bank_ids ( osid.id.IdList) – list of objective bankIdsReturns: list of activities Return type: osid.learning.ActivityListRaise: NullArgument–objective_bank_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_bank_ids_by_activity(activity_id)¶Gets the list of
ObjectiveBank Idsmapped to aActivity.
Parameters: activity_id ( osid.id.Id) –Idof aActivityReturns: list of objective bank IdsReturn type: osid.id.IdListRaise: NotFound–activity_idis not foundRaise: NullArgument–activity_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_objective_banks_by_activity(activity_id)¶Gets the list of
ObjectiveBanksmapped to aActivity.
Parameters: activity_id ( osid.id.Id) –Idof aActivityReturns: list of objective bank IdsReturn type: osid.learning.ObjectiveBankListRaise: NotFound–activity_idis not foundRaise: NullArgument–activity_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Activity Objective Bank Assignment Methods¶
ObjectiveBank.can_assign_activities()¶Tests if this user can alter activity/objective bank 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
PermissionDenied. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.
Returns: falseif mapping is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.can_assign_activities_to_objective_bank(objective_bank_id)¶Tests if this user can alter activity/objective bank 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
PermissionDenied. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.
Parameters: objective_bank_id ( osid.id.Id) – theIdof theObjectiveBankReturns: falseif mapping is not authorized,trueotherwiseReturn type: booleanRaise: NullArgument–objective_bank_idisnullcompliance: mandatory – This method must be implemented.
ObjectiveBank.get_assignable_objective_bank_ids(objective_bank_id)Gets a list of objective banks including and under the given objective bank node in which any activity can be assigned.
Parameters: objective_bank_id ( osid.id.Id) – theIdof theObjectiveBankReturns: list of assignable objective bank IdsReturn type: osid.id.IdListRaise: NullArgument–objective_bank_idisnullRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
ObjectiveBank.get_assignable_objective_bank_ids_for_activity(objective_bank_id, activity_id)¶Gets a list of objective banks including and under the given objective bank node in which a specific activity can be assigned.
Parameters:
- objective_bank_id (
osid.id.Id) – theIdof theObjectiveBank- activity_id (
osid.id.Id) – theIdof theActivityReturns: list of assignable objective bank
IdsReturn type:
osid.id.IdListRaise:
NullArgument–activity_idorobjective_bank_idisnullRaise:
OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
ObjectiveBank.assign_activity_to_objective_bank(activity_id, objective_bank_id)¶Adds an existing
Activityto aObjectiveBank.
Parameters:
- activity_id (
osid.id.Id) – theIdof theActivity- objective_bank_id (
osid.id.Id) – theIdof theObjectiveBankRaise:
AlreadyExists–activity_idalready mapped toobjective_bank_idRaise:
NotFound–activity_idorobjective_bank_idnot foundRaise:
NullArgument–activity_idorobjective_bank_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.unassign_activity_from_objective_bank(activity_id, objective_bank_id)¶Removes a
Activityfrom aObjectiveBank.
Parameters:
- activity_id (
osid.id.Id) – theIdof theActivity- objective_bank_id (
osid.id.Id) – theIdof theObjectiveBankRaise:
NotFound–activity_idorobjective_bank_idnot found oractivity_idnot mapped toobjective_bank_idRaise:
NullArgument–activity_idorobjective_bank_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.reassign_activity_to_objective_bank(activity_id, from_objective_bank_id, to_objective_bank_id)¶Moves an
Activityfrom oneObjectiveBankto another.Mappings to other
ObjectiveBanksare unaffected.
Parameters:
- activity_id (
osid.id.Id) – theIdof theActivity- from_objective_bank_id (
osid.id.Id) – theIdof the currentObjectiveBank- to_objective_bank_id (
osid.id.Id) – theIdof the destinationObjectiveBankRaise:
NotFound–activity_id, from_objective_bank_id,orto_objective_bank_idnot found oractivity_idnot mapped tofrom_objective_bank_idRaise:
NullArgument–activity_id, from_objective_bank_id,orto_objective_bank_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Proficiency Lookup Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_lookup_proficiencies()¶Tests if this user can perform
Proficiencylookups.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.
Returns: falseif lookup methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_comparative_proficiency_view()¶The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_plenary_proficiency_view()¶A complete view of the
Proficiencyreturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_federated_objective_bank_view()Federates the view for methods in this session.
A federated view will include proficiencies in objective banks which are children of this objective bank in the obective bank hierarchy.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_isolated_objective_bank_view()Isolates the view for methods in this session.
An isolated view restricts lookups to this objective bank only.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_effective_proficiency_view()¶Only proficiencies whose effective dates are current are returned by methods in this session.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_any_effective_proficiency_view()¶All proficienies of any effective dates are returned by methods in this session.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.get_proficiency(proficiency_id)¶Gets the
Proficiencyspecified by itsId.
Parameters: proficiency_id ( osid.id.Id) – theIdof theProficiencyto retrieveReturns: the returned ProficiencyReturn type: osid.learning.ProficiencyRaise: NotFound– noProficiencyfound with the givenIdRaise: NullArgument–proficiency_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_ids(proficiency_ids)¶Gets a
ProficiencyListcorresponding to the givenIdList.
Parameters: proficiency_ids ( osid.id.IdList) – the list ofIdsto retrieveReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NotFound– anIdwas not foundRaise: NullArgument–proficiency_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type(proficiency_genus_type)¶Gets a
ProficiencyListcorresponding to the given proficiency genusTypewhich does not include proficiencies of types derived from the specifiedType.
Parameters: proficiency_genus_type ( osid.type.Type) – a proficiency genus typeReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NullArgument–proficiency_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_parent_genus_type(proficiency_genus_type)¶Gets a
ProficiencyListcorresponding to the given proficiency genusTypeand include any additional proficiencies with genus types derived from the specifiedType.
Parameters: proficiency_genus_type ( osid.type.Type) – a proficiency genus typeReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NullArgument–proficiency_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_record_type(proficiency_record_type)¶Gets a
ProficiencyListcontaining the given proficiency recordType.
Parameters: proficiency_record_type ( osid.type.Type) – a proficiency record typeReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NullArgument–proficiency_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_on_date(from_, to)¶Gets a
ProficiencyListeffecyive during the entire given date range inclusive but not confined to the date range.
Parameters:
- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type_on_date(proficiency_genus_type, from_, to)¶Gets a
ProficiencyListof the given proficiency genus type effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- proficiency_genus_type (
osid.type.Type) – a proficiency genus type- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–proficiency_genus_type, from,ortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_objective(objective_id)¶Gets a
ProficiencyListrelating to the given objective.
Parameters: objective_id ( osid.id.Id) – an objectiveIdReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NullArgument–objective_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_objective_on_date(objective_id, from_, to)¶Gets a
ProficiencyListrelating to the given objective effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- objective_id (
osid.id.Id) – an objectiveId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–objective_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type_for_objective(objective_id, proficiency_genus_type)¶Gets a
ProficiencyListrelating to the given objective and proficiency genusType.
Parameters:
- objective_id (
osid.id.Id) – an objectiveId- proficiency_genus_type (
osid.type.Type) – a proficiency genus typeReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
NullArgument–objective_idorproficiency_genus_typeisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type_for_objective_on_date(objective_id, proficiency_genus_type, from_, to)¶Gets a
ProficiencyListof the given proficiency genus type relating to the given objective effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- objective_id (
osid.id.Id) – an objectiveId- proficiency_genus_type (
osid.type.Type) – a proficiency genus type- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–objective_id, proficiency_genus_type, from,ortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_objectives(objective_ids)¶Gets a
ProficiencyListrelating to the given objectives.
Parameters: objective_ids ( osid.id.IdList) – the objectiveIdsReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NullArgument–objective_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_resource(resource_id)¶Gets a
ProficiencyListrelating to the given resource.
Parameters: resource_id ( osid.id.Id) – a resourceIdReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NullArgument–resource_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_resource_on_date(resource_id, from_, to)¶Gets a
ProficiencyListrelating to the given resource effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- resource_id (
osid.id.Id) – a resourceId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–resource_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type_for_resource(resource_id, proficiency_genus_type)¶Gets a
ProficiencyListrelating to the given resource and proficiency genusType.
Parameters:
- resource_id (
osid.id.Id) – a resourceId- proficiency_genus_type (
osid.type.Type) – a proficiency genus typeReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
NullArgument–resource_idorproficiency_genus_typeisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type_for_resource_on_date(resource_id, proficiency_genus_type, from_, to)¶Gets a
ProficiencyListof the given proficiency genus type relating to the given resource effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- resource_id (
osid.id.Id) – a resourceId- proficiency_genus_type (
osid.type.Type) – a proficiency genus type- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–resource_id, proficiency_genus_type, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_resources(resource_ids)¶Gets a
ProficiencyListrelating to the given resources.
Parameters: resource_ids ( osid.id.IdList) – the resourceIdsReturns: the returned ProficiencylistReturn type: osid.learning.ProficiencyListRaise: NullArgument–resource_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_objective_and_resource(objective_id, resource_id)¶Gets a
ProficiencyListrelating to the given objective and resource ````.
Parameters:
- objective_id (
osid.id.Id) – an objectiveId- resource_id (
osid.id.Id) – a resourceIdReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
NullArgument–objective_idorresource_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_for_objective_and_resource_on_date(objective_id, resource_id, from_, to)¶Gets a
ProficiencyListrelating to the given resource and objective effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- objective_id (
osid.id.Id) – an objectiveId- resource_id (
osid.id.Id) – a resourceId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–objective_id, resource_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type_for_objective_and_resource(objective_id, resource_id, proficiency_genus_type)¶Gets a
ProficiencyListof the given genus type relating to the given objective and resource ````.
Parameters:
- objective_id (
osid.id.Id) – an objectiveId- resource_id (
osid.id.Id) – a resourceId- proficiency_genus_type (
osid.type.Type) – a proficiency genus typeReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
NullArgument–objective_id, resource_idorproficiency_genus_typeisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_genus_type_for_objective_and_resource_on_date(objective_id, resource_id, proficiency_genus_type, from_, to)¶Gets a
ProficiencyListof the given genus type relating to the given resource and objective effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- objective_id (
osid.id.Id) – an objectiveId- resource_id (
osid.id.Id) – a resourceId- proficiency_genus_type (
osid.type.Type) – a proficiency genus type- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
ProficiencylistReturn type:
osid.learning.ProficiencyListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–objective_id, resource_id, proficiency_genus_type, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.proficiencies¶Gets all
Proficiencies.
Returns: a list of ProficienciesReturn type: osid.learning.ProficiencyListRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Proficiency Query Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_search_proficiencies()¶Tests if this user can perform
Proficiencylookups.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.
Returns: falseif search methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.use_federated_objective_bank_view()Federates the view for methods in this session.
A federated view will include proficiencies in objective banks which are children of this objective bank in the obective bank hierarchy.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.use_isolated_objective_bank_view()Isolates the view for methods in this session.
An isolated view restricts lookups to this objective bank only.
compliance: mandatory – This method is must be implemented.
ObjectiveBank.proficiency_query¶Gets a proficiency query.
Returns: the proficiency query Return type: osid.learning.ProficiencyQuerycompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiencies_by_query(proficiency_query)¶Gets a list of
Proficienciesmatching the given proficiency query.
Parameters: proficiency_query ( osid.learning.ProficiencyQuery) – the proficiency queryReturns: the returned ProficiencyListReturn type: osid.learning.ProficiencyListRaise: NullArgument–proficiency_queryisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–proficiency_queryis not of this servicecompliance: mandatory – This method must be implemented.
Proficiency Admin Methods¶
ObjectiveBank.objective_bank_idGets the
ObjectiveBankIdassociated with this session.
Returns: the ObjectiveBank Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
ObjectiveBank.objective_bankGets the
ObjectiveBankassociated with this session.
Returns: the obective bank Return type: osid.learning.ObjectiveBankRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_create_proficiencies()¶Tests if this user can create
Proficiencies.A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a
Proficiencywill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.
Returns: falseifProficiencycreation is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.can_create_proficiency_with_record_types(proficiency_record_types)¶Tests if this user can create a single
Proficiencyusing the desired record types.While
LearningManager.getProficiencyRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificProficiency. Providing an empty array tests if aProficiencycan be created with no records.
Parameters: proficiency_record_types ( osid.type.Type[]) – array of proficiency record typesReturns: trueifProficiencycreation using the specified recordTypesis supported,falseotherwiseReturn type: booleanRaise: NullArgument–proficiency_record_typesisnullcompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiency_form_for_create(objective_id, resource_id, proficiency_record_types)¶Gets the proficiency form for creating new proficiencies.
A new form should be requested for each create transaction.
Parameters:
- objective_id (
osid.id.Id) – theIdof theObjective- resource_id (
osid.id.Id) – theIdof theResource- proficiency_record_types (
osid.type.Type[]) – array of proficiency record typesReturns: the proficiency form
Return type:
osid.learning.ProficiencyFormRaise:
NotFound–objective_idorresource_idis not foundRaise:
NullArgument–objective_id, resource_id,orproficieny_record_typesisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failureRaise:
Unsupported– unable to get form for requested record typescompliance: mandatory – This method must be implemented.
ObjectiveBank.create_proficiency(proficiency_form)¶Creates a new
Proficiency.A new form should be requested for each create transaction.
Parameters: proficiency_form ( osid.learning.ProficiencyForm) – the form for thisProficiencyReturns: the new ProficiencyReturn type: osid.learning.ProficiencyRaise: IllegalState–proficiency_formalready used in a create transactionRaise: InvalidArgument– one or more of the form elements is invalidRaise: NullArgument–proficiency_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–proficiency_formdid not originate fromget_proficiency_form_for_create()compliance: mandatory – This method must be implemented.
ObjectiveBank.can_update_proficiencies()¶Tests if this user can update
Proficiencies.A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a
Proficiencywill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.
Returns: falseifProficiencymodification is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.get_proficiency_form_for_update(proficiency_id)¶Gets the proficiency form for updating an existing proficiency.
Parameters: proficiency_id ( osid.id.Id) – theIdof theProficiencyReturns: the proficiency form Return type: osid.learning.ProficiencyFormRaise: NotFound–proficiency_idis not foundRaise: NullArgument–proficiency_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.update_proficiency(proficiency_form)¶Updates an existing proficiency.
Parameters: proficiency_form ( osid.learning.ProficiencyForm) – the form containing the elements to be updatedRaise: IllegalState–proficiency_formalready used in an update transactionRaise: InvalidArgument– the form contains an invalid valueRaise: NullArgument–proficiency_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–proficiency_formdid not originate fromget_proficiency_form_for_update()compliance: mandatory – This method must be implemented.
ObjectiveBank.can_delete_proficiencies()¶Tests if this user can delete
Proficiencies.A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a
Proficiencywill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.
Returns: falseifProficiencydeletion is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.delete_proficiency(proficiency_id)¶Deletes a
Proficiency.
Parameters: proficiency_id ( osid.id.Id) – theIdof theProficiencyto removeRaise: NotFound–proficiency_idnot foundRaise: NullArgument–proficiency_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.delete_proficiencies()¶Deletes all proficiencies in this
ObjectiveBank.
Raise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
ObjectiveBank.can_manage_proficiency_aliases()¶Tests if this user can manage
Idaliases for proficiency entries.A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.
Returns: falseifProficiencyaliasing is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
ObjectiveBank.alias_proficiency(proficiency_id, alias_id)¶Adds an
Idto aProficiencyfor the purpose of creating compatibility.The primary
Idof theProficiencyis determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another proficiency, it is reassigned to the given proficiencyId.
Parameters:
- proficiency_id (
osid.id.Id) – theIdof aProficiency- alias_id (
osid.id.Id) – the aliasIdRaise:
AlreadyExists–alias_idis already assignedRaise:
NotFound–proficiency_idnot foundRaise:
NullArgument–proficiency_idoralias_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.