Represents an independent search definition. More...
Public Member Functions | |
virtual void | Close () |
Called when the search definition is no longer needed for searching. After this is called, no searches will be called on this definition. | |
virtual void | Init () |
This method is called when the search definition has been created. This could be used if the search definition need to initialize variables. | |
Protected Member Functions | |
virtual void | FireErrorOccurredEvent (Guid sessionId, SearchError searchError) |
Invoke this method when a run-time error occurred. The search could continue after calling this method. | |
virtual void | FireSearchResultsReadyEvent (Guid sessionId, IEnumerable< SearchResultData > searchResults) |
Invoke this method when a partial result is ready to be offloaded. | |
virtual void | Search (Guid sessionId, DateTime from, DateTime to, IEnumerable< Item > items, CancellationToken cancellationToken) |
Override this method to implement your search for pre 2020 R1 VMS. To support search in 2020 R1 VMS and newer, please override the overload Search(VideoOS.Platform.Search.SearchInput,System.Threading.CancellationToken). Note: The search is considered finished when this method returns. Use FireSearchResultsReadyEvent when search results are ready. | |
virtual void | Search (SearchInput searchInput, CancellationToken cancellationToken) |
Override this method to implement your search. Note: The search is considered finished when this method returns. Use FireSearchResultsReadyEvent when search results are ready. | |
SearchDefinition (SearchScope searchScope) | |
Default constructor invoked by all base classes. | |
Properties | |
Guid | SearchAgentPluginId [get, set] |
The ID of the SearchAgentPlugin which created this search definition. | |
SearchCriteria | SearchCriteria [get] |
The search criteria container associated with this search definition. There is always a 1-to-1 relationship between a SearchDefinition and a Platform.Search.SearchCriteria. | |
SearchScope | SearchScope [get] |
Gets the search scope associated with the edit control. | |
Represents an independent search definition.
|
inlineprotected |
Default constructor invoked by all base classes.
|
inlinevirtual |
Called when the search definition is no longer needed for searching. After this is called, no searches will be called on this definition.
|
inlineprotectedvirtual |
Invoke this method when a run-time error occurred. The search could continue after calling this method.
sessionId | The session id identifying the current search. |
searchError | The search error that occurred. |
|
inlineprotectedvirtual |
Invoke this method when a partial result is ready to be offloaded.
sessionId | The session id identifying the current search. |
searchResults | The chunk of search results ready to be offloaded. |
|
inlinevirtual |
This method is called when the search definition has been created. This could be used if the search definition need to initialize variables.
|
inlineprotectedvirtual |
Override this method to implement your search for pre 2020 R1 VMS. To support search in 2020 R1 VMS and newer, please override the overload Search(VideoOS.Platform.Search.SearchInput,System.Threading.CancellationToken). Note: The search is considered finished when this method returns. Use FireSearchResultsReadyEvent when search results are ready.
sessionId | A unique session id identifying the started search. |
from | The start of the time span in which to search. |
to | The end of the time span in which to search. |
items | The items (i.e. cameras) to include in the search. |
cancellationToken | Cancellation token which can be used to cancel an ongoing search (if the implementation allows it). |
|
inlineprotectedvirtual |
Override this method to implement your search. Note: The search is considered finished when this method returns. Use FireSearchResultsReadyEvent when search results are ready.
searchInput | Input for the search |
cancellationToken | Cancellation token which can be used to cancel an ongoing search (if the implementation allows it). |
|
getset |
The ID of the SearchAgentPlugin which created this search definition.
|
get |
The search criteria container associated with this search definition. There is always a 1-to-1 relationship between a SearchDefinition and a Platform.Search.SearchCriteria.
|
get |
Gets the search scope associated with the edit control.