public ImportJob(IServicesMgr svcMgr, IArtifactQueries artifactQueries, IDBContext dbContext, ISqlQueryHelper sqlQueryHelper, Int32 workspaceArtifactId, ExecutionIdentity identity, Artifact activeArtifact, IAPILog logger) { SvcManager = svcMgr; ArtifactQueries = artifactQueries; DbContext = dbContext; SqlQueryHelper = sqlQueryHelper; WorkspaceArtifactId = workspaceArtifactId; IdentityCurrentUser = identity; ActiveArtifact = activeArtifact; Logger = logger; }
private void LoadByName(IServicesMgr svcMgr, ExecutionIdentity identity, Int32 workspaceArtifactId) { ArtifactId = Rsapi.Custodian.GetByName(svcMgr, identity, workspaceArtifactId, FullName); }
private void Create(IServicesMgr svcMgr, ExecutionIdentity identity, Int32 workspaceArtifactId, DestinationEnum destination) { ArtifactId = Rsapi.Custodian.Create(svcMgr, identity, workspaceArtifactId, FullName, FirstName, LastName, destination); }
public static kCura.Relativity.Client.DTOs.Artifact Create(IServicesMgr svcMgr, ExecutionIdentity identity, Int32 workspaceArtifactId, String processingSetName, Int32 processingProfileArtifactId, string emailRecipients) { kCura.Relativity.Client.DTOs.WriteResultSet <kCura.Relativity.Client.DTOs.RDO> results; using (var client = svcMgr.CreateProxy <IRSAPIClient>(identity)) { client.APIOptions.WorkspaceID = workspaceArtifactId; var r = new kCura.Relativity.Client.DTOs.RDO { ArtifactTypeGuids = new List <Guid> { Helpers.Constants.Guids.ObjectType.ProcessingSet } }; r.Fields.Add(new kCura.Relativity.Client.DTOs.FieldValue(Helpers.Constants.Guids.Fields.ProcessingSet.Name, processingSetName)); r.Fields.Add( new kCura.Relativity.Client.DTOs.FieldValue(Helpers.Constants.Guids.Fields.ProcessingSet.RelatedProcessingProfile, processingProfileArtifactId)); r.Fields.Add(new kCura.Relativity.Client.DTOs.FieldValue( Helpers.Constants.Guids.Fields.ProcessingSet.DiscoverStatus, Helpers.Constants.Guids.Choices.ProcessingSet.DiscoverStatusNotStarted)); r.Fields.Add( new kCura.Relativity.Client.DTOs.FieldValue(Helpers.Constants.Guids.Fields.ProcessingSet.InventoryStatus, Helpers.Constants.Guids.Choices.ProcessingSet.InventoryStatusNotStarted)); r.Fields.Add(new kCura.Relativity.Client.DTOs.FieldValue( Helpers.Constants.Guids.Fields.ProcessingSet.PublishStatus, Helpers.Constants.Guids.Choices.ProcessingSet.PublishStatusNotStarted)); if (emailRecipients != String.Empty) { r.Fields.Add(new kCura.Relativity.Client.DTOs.FieldValue(Helpers.Constants.Guids.Fields.ProcessingSet.EmailRecipients, emailRecipients)); } results = client.Repositories.RDO.Create(r); var res = new Response <kCura.Relativity.Client.DTOs.Artifact> { Results = results.Results.Any() ? results.Results.FirstOrDefault().Artifact : null, Success = results.Success, Message = MessageFormatter.FormatMessage(results.Results.Select(x => x.Message).ToList(), results.Message, results.Success) }; if (res.Success) { return(res.Results); } throw new Exception(res.Message.ToString()); } }
public static kCura.Relativity.Client.DTOs.Artifact Read(IServicesMgr svcMgr, ExecutionIdentity identity, Int32 workspaceArtifactId, Int32 artifactId) { using (var client = svcMgr.CreateProxy <IRSAPIClient>(identity)) { client.APIOptions.WorkspaceID = workspaceArtifactId; return(client.Repositories.RDO.ReadSingle(artifactId)); } }
public ExportConsoleJob(IServicesMgr svcManager, IDBContext dbContextEdds, IDBContext dbContext, ExecutionIdentity currentUserIdentity, ExecutionIdentity systemIdentity, IArtifactQueries artifactQueries, ISqlQueryHelper sqlQueryHelper, IAPILog logger, int workspaceArtifactId, int currentArtifactId, string buttonName, string selectedObjectType, int priority) { SvcManager = svcManager; DbContextEdds = dbContextEdds; DbContext = dbContext; IdentityCurrentUser = currentUserIdentity; IdentitySystem = systemIdentity; ArtifactQueries = artifactQueries; SqlQueryHelper = sqlQueryHelper; WorkspaceArtifactId = workspaceArtifactId; CurrentArtifactId = currentArtifactId; ButtonName = buttonName; SelectedObjectType = selectedObjectType; Logger = logger; Priority = priority; }
private async Task UpdateJobStatusAsync(IServicesMgr svcManager, Int32 workspaceArtifactId, ExecutionIdentity identity, Guid objectTypeGuid, Int32 artifactId, Guid fieldGuid, String status) { await ArtifactQueries.UpdateRdoJobTextFieldAsync(svcManager, workspaceArtifactId, identity, objectTypeGuid, artifactId, fieldGuid, status); }
private async Task ResetJobStatisticsAsync(IServicesMgr svcManager, Int32 workspaceArtifactId, ExecutionIdentity identity, Int32 artifactId) { await ArtifactQueries.ResetExportJobStatisticsAsync(svcManager, workspaceArtifactId, identity, artifactId); }
public async Task <string> RetrieveJobStatusAsync(IServicesMgr svcManager, Int32 workspaceArtifactId, ExecutionIdentity identity, Int32 artifactId) { var status = await ArtifactQueries.RetrieveRdoJobStatusAsync(svcManager, workspaceArtifactId, identity, artifactId); return(status); }
public ConsoleJob(IServicesMgr svcMgr, IArtifactQueries artifactQueries, ISqlQueryHelper sqlQueryHelper, ExecutionIdentity executionCurrentUserIdentity, IDBContext eddsDbContext, int workspaceArtifactId, int activeArtifactId, int?savedSearchArtifactId, int?extractorProfileArtifactId, int?sourceLongTextFieldArtifactId, string buttonName) { SvcMgr = svcMgr; ArtifactQueries = artifactQueries; SqlQueryHelper = sqlQueryHelper; ExecutionCurrentUserIdentity = executionCurrentUserIdentity; EddsDbContext = eddsDbContext; WorkspaceArtifactId = workspaceArtifactId; ActiveArtifactId = activeArtifactId; SavedSearchArtifactId = savedSearchArtifactId; ExtractorProfileArtifactId = extractorProfileArtifactId; SourceLongTextFieldArtifactId = sourceLongTextFieldArtifactId; ButtonName = buttonName; }