...
This is an example subset of the Learning OSID where two of the OsidSessions manage retrieval and querying of learning objectives.
Method | supportsObjectiveLookup | ||
---|---|---|---|
Description | Tests if an objective lookup service is supported. An objective lookup service defines methods to access objectives. | ||
Return | boolean | true if objective lookup is supported, false otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getObjectiveLookupSession | ||
Description | Gets the OsidSession associated with the objective lookup service. | ||
Return | osid.learning.ObjectiveLookupSession | an ObjectiveLookupSession | |
Errors | OPERATION_FAILED | unable to complete request | |
UNIMPLEMENTED | supportsObjectiveLookup() is false | ||
Compliance | optional | This method must be implemented if supportsObjectiveLookup() is true. | |
Method | supportsObjectiveQuery | ||
Description | Tests if an objective query service is supported. | ||
Return | boolean | true if objective query is supported, false otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getObjectiveQuerySession | ||
Description | Gets the OsidSession associated with the objective query service. | ||
Return | osid.learning.ObjectiveQuerySession | an ObjectiveQuerySession | |
Errors | OPERATION_FAILED | unable to complete request | |
UNIMPLEMENTED | supportsObjectiveQuery() is false | ||
Compliance | optional | This method must be implemented if supportsObjectiveQuery() is true. |
Java Consumer
Code Block |
---|
if (learningManager.supportsObjectiveQuery()) { try { org.osid.learning.ObjectiveQuerySession querySession = manager.getObjectiveQuerySession(); } catch (org.osid.OperationFailedException oe) { log ("error getting query session", oe); } } |
See Also