Interface AgentSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
AgentSearch defines the interface for specifying agent search
options. This example gets a limited set of squid-like agents.
AgentSearch as = session.getAgentSearch(); as.limitResultSet(25, 50); AgentQuery queries[1]; queries[0] = session.getAgentQuery(); String kword = "squid"; queries[0].matchKeywords(kword, true); AgentSearchResults results = session.getAgentsBySearch(queries, as); AgentList list = results.getAgents();
-
Method Summary
Modifier and TypeMethodDescriptiongetAgentSearchRecord(Type agentSearchRecordType) Gets the record corresponding to the given agent search recordType.voidorderAgentResults(AgentSearchOrder agentSearchOrder) Specify an ordering to the search results.voidsearchAmongAgents(IdList agentIds) Execute this search among the given list of agents.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongAgents
Execute this search among the given list of agents.- Parameters:
agentIds- list of agents- Throws:
NullArgumentException-agentIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderAgentResults
Specify an ordering to the search results.- Parameters:
agentSearchOrder- agent search order- Throws:
NullArgumentException-agentSearchOrderisnullUnsupportedException-agentSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getAgentSearchRecord
Gets the record corresponding to the given agent search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
agentSearchRecordType- an agent search record type- Returns:
- the agent search record
- Throws:
NullArgumentException-agentSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(agentSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-