public interface ActivityQuerySession extends OsidSession
This session provides methods for searching Activity
objects. The search query is constructed using the ActivityQuery.
The activity record Type also specifies the record
for the activity query.
This session defines views that offer differing behaviors for searching.
Activities may have a query record indicated by their respective
record types. The query record is accessed via the ActivityQuery.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSearchActivities()
Tests if this user can perform
Activity searches. |
ActivityList |
getActivitiesByQuery(ActivityQuery activityQuery)
Gets a list of
Activities matching the given activity
query. |
ActivityQuery |
getActivityQuery()
Gets an activity query.
|
ObjectiveBank |
getObjectiveBank()
Gets the
ObjectiveBank associated with this session. |
Id |
getObjectiveBankId()
Gets the
ObjectiveBank Id associated
with this session. |
void |
useFederatedObjectiveBankView()
Federates the view for methods in this session.
|
void |
useIsolatedObjectiveBankView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getObjectiveBankId()
ObjectiveBank Id associated
with this session. ObjectiveBank Id associated with this
sessionmandatory - This method must be implemented. ObjectiveBank getObjectiveBank() throws OperationFailedException, PermissionDeniedException
ObjectiveBank associated with this session. ObjectiveBank associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSearchActivities()
Activity searches. 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 PERMISSION_DENIED. This is intended as a
hint to an application that may opt not to offer search operations to
unauthorized users. false if search methods are not authorized,
true otherwisemandatory - This method must be implemented. void useFederatedObjectiveBankView()
mandatory - This method is must be implemented. void useIsolatedObjectiveBankView()
mandatory - This method is must be implemented. ActivityQuery getActivityQuery()
mandatory - This method must be implemented. ActivityList getActivitiesByQuery(ActivityQuery activityQuery) throws OperationFailedException, PermissionDeniedException
Activities matching the given activity
query.activityQuery - the activity query ActivityList NullArgumentException - activityQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - activityQuery is
not of this servicemandatory - This method must be implemented.