<PackageReference Include="Relativity.Server.Services.Interfaces.SDK" Version="5000.0.2" />

Relativity.Services.Search.IDataGridSearchManager

public interface IDataGridSearchManager : IDisposable
IDataGridSearchManager interface enables interaction with Relativity DataGrid search.
Task<SavedSearchRef> CopySingleAsync(int workspaceArtifactID, int searchArtifactID)

Asynchronously copies an instance of DataGrid saved search.

Task<int> CreateSingleAsync(int workspaceArtifactID, DataGridSearch searchDTO)

Asynchronously creates an instance of DataGrid saved search in a workspace.

Task DeleteSingleAsync(int workspaceArtifactID, int searchArtifactID)

Asyncronously deletes an instance of DataGrid saved search.

Task<SearchAccessStatus> GetAccessStatusAsync(int workspaceArtifactID, int artifactID, List<int> ancestorArtifactIDs)

Asynchronously gets information about user's ability to access the saved search.

Task<string> GetEmailToLinkUrlAsync(int workspaceArtifactID, int searchArtifactID)

Asychronously returns the email link to a specified DataGrid saved search.

Task<List<FieldRef>> GetFieldsForCriteriaConditionAsync(int workspaceArtifactID, int artifactTypeID)

Asychronously returns all workspace fields available to the user that can be included in a saved search condition.

Task<List<FieldRef>> GetFieldsForObjectCriteriaCollectionAsync(int workspaceArtifactID, FieldRef field, int artifactTypeID)

Asychronously returns all workspace fields available to the user that can be specified as a subcondition for a given field in a saved search condition. Use to populate field values for batch and multi-object conditions.

Task<SearchResultViewFields> GetFieldsForSearchResultViewAsync(int workspaceArtifactID, int artifactTypeID)

Asychronously returns all workspace fields available to the user as the SearchResultViewFields.FieldsNotIncluded property. Use to populate the DataGridSearch.Fields property.

Task<SearchResultViewFields> GetFieldsForSearchResultViewAsync(int workspaceArtifactID, int artifactTypeID, int searchArtifactID)

Asychronously returns all fields included in the search as SearchResultViewFields.FieldsIncluded property. Use to populate the DataGridSearch.Fields property.

Task<List<int>> GetReferencedSavedSearchesAsync(int workspaceArtifactID, int searchArtifactID)

Asychronously returns all referenced saved search artifact id's for a given saved search.

Task<List<FieldRef>> GetSearchIncludesAsync(int workspaceArtifactID)

Asychronously returns all relational fields available to the user in the workspace. Use to populate the DataGridSearch.Includes property.

Task<List<UserRef>> GetSearchOwnersAsync(int workspaceArtifactID)

Asychronously returns all users in the workspace with permissions to view saved searches. Use to populate the DataGridSearch.Owners property.

Task<SavedSearchMoveResultSet> MoveAsync(int workspaceArtifactID, int artifactID, int destinationContainerID)

Moves an existing DataGrid saved search. Specify the workspace, search, and destination folder by Artifact ID.

Task<SavedSearchMoveResultSet> MoveAsync(int workspaceArtifactID, int artifactID, int destinationContainerID, CancellationToken cancel)

Moves an existing DataGrid saved search. Specify the workspace, search, and destination folder by Artifact ID. Specify the CancellationToken object to enable cancellation.

Task<SavedSearchMoveResultSet> MoveAsync(int workspaceArtifactID, int artifactID, int destinationContainerID, IProgress<MoveProcessStateProgress> progress)

Moves an existing DataGrid saved search. Specify the workspace, search, and destination folder by Artifact ID. Specify the MoveProgressState object to display the progress of the operation.

Task<SavedSearchMoveResultSet> MoveAsync(int workspaceArtifactID, int artifactID, int destinationContainerID, CancellationToken cancel, IProgress<MoveProcessStateProgress> progress)

Moves an existing DataGrid saved search. Specify the workspace, search, and destination folder by Artifact ID. Specify the MoveProgressState and CancellationToken objects to display progress and enable cancellation.

Task<DataGridSearchQueryResultSet> QueryAsync(int workspaceArtifactID, Query query)

Returns a result set of DataGridSearch objects matching the specified query.

Task<DataGridSearchQueryResultSet> QueryAsync(int workspaceArtifactID, Query query, int length)

Returns a result set of DataGridSearch objects matching the specified query.

Task<DataGridSearchQueryResultSet> QuerySubsetAsync(int workspaceArtifactID, string queryToken, int start, int length)

Returns a subset of a result set of DataGridSearch objects matching the specified query token.

Task<DataGridSearch> ReadSingleAsync(int workspaceArtifactID, int searchArtifactID)

Asynchronously returns an instance of DataGrid saved search as a DataGridSearch object.

Task UpdateSingleAsync(int workspaceArtifactID, DataGridSearch searchDTO)

Asynchronously updates an instance of a DataGrid saved search.