public interface AgentSmartAgencySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An AgentQuery
can be retrieved from this session
and mapped to this Agency
to create a virtual collection of
Agents.
The agents may be sequenced using the
AgentSearchOrder
from this session.
This Agency
has a default query that matches any agent
and a default search order that specifies no sequencing. The queries may
be examined using an AgentQueryInspector.
The query may be
modified by converting the inspector back to an AgentQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyAgentQuery(AgentQuery agentQuery)
Applies an agent query to this agency.
|
void |
applyAgentSequencing(AgentSearchOrder agentSearchOrder)
Applies an agent search order to this agency.
|
boolean |
canManageSmartAgencies()
Tests if this user can manage smart agencies.
|
Agency |
getAgency()
Gets the
Agency associated with this session. |
Id |
getAgencyId()
Gets the
Agency Id associated with this
session. |
AgentQuery |
getAgentQuery()
Gets an agent query.
|
AgentQuery |
getAgentQueryFromInspector(AgentQueryInspector agentQueryInspector)
Gets an agent query from an inspector.
|
AgentSearchOrder |
getAgentSearchOrder()
Gets an agent search order.
|
AgentQueryInspector |
inspectAgentQuery()
Gets an agent query inspector for this agency.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getAgencyId()
Agency
Id
associated with this
session. Agency Id
associated with this sessionmandatory
- This method must be implemented. Agency getAgency() throws OperationFailedException, PermissionDeniedException
Agency
associated with this session. Agency
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartAgencies()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart agency management is not
authorized, true
otherwisemandatory
- This method must be implemented. AgentQuery getAgentQuery()
mandatory
- This method must be implemented. AgentSearchOrder getAgentSearchOrder()
mandatory
- This method must be implemented. void applyAgentQuery(AgentQuery agentQuery) throws OperationFailedException, PermissionDeniedException
agentQuery
- the agent queryNullArgumentException
- agentQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- agentQuery
not of
this servicemandatory
- This method must be implemented. AgentQueryInspector inspectAgentQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyAgentSequencing(AgentSearchOrder agentSearchOrder) throws OperationFailedException, PermissionDeniedException
agentSearchOrder
- the agent search orderNullArgumentException
- agentSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- agentSearchOrder
not of this servicemandatory
- This method must be implemented. AgentQuery getAgentQueryFromInspector(AgentQueryInspector agentQueryInspector)
agentQueryInspector
- a query inspectorNullArgumentException
- agentQueryInspector
is null
UnsupportedException
- agentQueryInspector
is not of this servicemandatory
- This method must be implemented.