Esempio n. 1
0
        public DocumentBatch(IArtifactQueries artifactQueries, IServicesMgr servicesMgr)
        {
            ServicesMgr = servicesMgr;
            ArtQueries  = artifactQueries;

            resultSet = new QueryResultSet <Document>();
        }
Esempio n. 2
0
        public ExtractorRegullarExpression(IArtifactQueries artifactQueries, Int32 workspaceArtifactId, RDO extractorRegullarExpressionRdo, ErrorLogModel errorLogModel)
        {
            WorkspaceArtifactId = workspaceArtifactId;
            ArtifactQueries     = artifactQueries;
            ErrorLogModel       = errorLogModel;

            SetMyProperties(extractorRegullarExpressionRdo);
        }
 public ExportJob(IServicesMgr svcMgr, IArtifactQueries artifactQueries, Int32 workspaceArtifactId, ExecutionIdentity identity, Int32 activeArtifactId, IAPILog logger)
 {
     SvcManager          = svcMgr;
     ArtifactQueries     = artifactQueries;
     IdentityCurrentUser = identity;
     WorkspaceArtifactId = workspaceArtifactId;
     ActiveArtifactId    = activeArtifactId;
     Logger = logger;
 }
 public RelativityTestAgentJob(IArtifactQueries artifactQueries, IAPILog logger, IServicesMgr svcManager, ExecutionIdentity userIdentity, int workspaceId, IAgentHelper agentHelper)
 {
     ArtifactQueries     = artifactQueries;
     Logger              = logger;
     WorkspaceArtifactId = workspaceId;
     SvcManager          = svcManager;
     CurrentUserIdentity = userIdentity;
     AgentHelper         = agentHelper;
 }
Esempio n. 5
0
        public ExtractorSet(IArtifactQueries artifactQueries, IServicesMgr servicesMgr, ExecutionIdentity executionIdentity, Int32 workspaceArtifactId, ExtractorSetReporting extractorSetReporting, RDO extractorSetRdo)
        {
            ServicesMgr           = servicesMgr;
            ExtractorSetReporting = extractorSetReporting;
            ArtifactQueries       = artifactQueries;
            WorkspaceArtifactId   = workspaceArtifactId;
            ExecutionIdentity     = executionIdentity;

            SetMyProperties(extractorSetRdo);
        }
        public AgentJobExceptionWrapper(ISqlQueryHelper sqlQueryHelper, IArtifactQueries artifactQueries, IServicesMgr servicesMgr, IDBContext eddsDbContext, int agentId)
        {
            SqlQueryHelper  = sqlQueryHelper;
            ArtifactQueries = artifactQueries;
            ServicesMgr     = servicesMgr;
            EddsDbContext   = eddsDbContext;
            AgentId         = agentId;

            TextExtractorLog = new TextExtractorLog();
        }
Esempio n. 7
0
 public ReproduceWorkerJob(int agentId, IAgentHelper agentHelper, IQuery queryHelper, IArtifactQueries artifactQueries, IEnumerable <int> resourceGroupIds, IErrorQueries errorQueries)
 {
     AgentId               = agentId;
     AgentHelper           = agentHelper;
     QueryHelper           = queryHelper;
     _artifactQueries      = artifactQueries;
     AgentResourceGroupIds = resourceGroupIds;
     ErrorQueries          = errorQueries;
     QueueTable            = Constant.Tables.ReproduceWorkerQueue;
     _auditRecordHelper    = new AuditRecordHelper(QueryHelper);
 }
 public ExportJob(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;
 }
Esempio n. 9
0
        public ManagerJob(ISqlQueryHelper sqlQueryHelper, IArtifactQueries artifactQueries, IServicesMgr servicesMgr, IDBContext eddsDbContext, ArtifactFactory artifactFactory, int agentId)
        {
            SqlQueryHelper  = sqlQueryHelper;
            ArtifactQueries = artifactQueries;
            ServicesMgr     = servicesMgr;
            EddsDbContext   = eddsDbContext;
            ArtifactFactory = artifactFactory;

            AgentId = agentId;
            CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
        }
Esempio n. 10
0
 public ExportJob(IServicesMgr svcMgr, ISqlQueryHelper sqlQueryHelper, IArtifactQueries artifactQueries, Int32 workspaceArtifactId, ExecutionIdentity identity, IDBContext dbContext, string tempJobErrorsTableName, IAPILog logger)
 {
     SvcManager          = svcMgr;
     SqlQueryHelper      = sqlQueryHelper;
     ArtifactQueries     = artifactQueries;
     IdentityCurrentUser = identity;
     WorkspaceArtifactId = workspaceArtifactId;
     DbContext           = dbContext;
     TempTableName       = tempJobErrorsTableName;
     Logger = logger;
 }
Esempio n. 11
0
 public static Boolean UserIsAdmin(IHelper helper, Int32 userArtifactID, IArtifactQueries artifactQueries)
 {
     using (var proxy = helper.GetServicesManager().CreateProxy <IRSAPIClient>(ExecutionIdentity.System))
     {
         var apiOptions = new APIOptions()
         {
             WorkspaceID = -1
         };
         proxy.APIOptions = apiOptions;
         return(artifactQueries.UserIsInAdministratorGroup(apiOptions, proxy.Repositories.User, proxy.Repositories.Group, userArtifactID).Result);
     }
 }
        public ExtractorTargetText(IArtifactQueries artifactQueries, IServicesMgr servicesMgr, ExecutionIdentity executionIdentity, Int32 workspaceArtifactId, RDO extractorTargetTextRdo, ErrorLogModel errorLogModel)
        {
            //ErrorQueue = errorQueue;
            ServicesMgr           = servicesMgr;
            ExecutionIdentity     = executionIdentity;
            WorkspaceArtifactId   = workspaceArtifactId;
            ArtifactQueries       = artifactQueries;
            TextExtractionUtility = new TextExtractionUtility(new TextExtractionValidator());
            TargetRule            = new TargetRule(extractorTargetTextRdo);
            ErrorLogModel         = errorLogModel;

            SetMyProperties(extractorTargetTextRdo);
        }
Esempio n. 13
0
 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;
 }
Esempio n. 14
0
 public ReproduceManagerJob(int agentId, IAgentHelper agentHelper, IQuery queryHelper, DateTime processedOnDateTime, IEnumerable <int> resourceGroupIds, IArtifactQueries artifactQueries, Helpers.Utility.IQuery utilityQueryHelper, IErrorQueries errorQueries)
 {
     RecordId              = 0;
     WorkspaceArtifactId   = -1;
     AgentId               = agentId;
     AgentHelper           = agentHelper;
     QueryHelper           = queryHelper;
     ProcessedOnDateTime   = processedOnDateTime;
     QueueTable            = Constant.Tables.ReproduceManagerQueue;
     AgentResourceGroupIds = resourceGroupIds;
     _artifactQueries      = artifactQueries;
     _utilityQueryHelper   = utilityQueryHelper;
     ErrorQueries          = errorQueries;
 }
Esempio n. 15
0
        public PostInstallSetupHelper(IQuery query, IArtifactQueries artifactQueries)
        {
            if (query == null)
            {
                throw new ArgumentNullException(nameof(query));
            }

            if (artifactQueries == null)
            {
                throw new ArgumentNullException(nameof(artifactQueries));
            }

            _query           = query;
            _artifactQueries = artifactQueries;
        }
Esempio n. 16
0
 public ImportManagerJob(int agentId, IAgentHelper agentHelper, IQuery queryHelper, DateTime processedOnDateTime, IEnumerable <int> resourceGroupIds, IArtifactQueries artifactQueries, IImportFileParser importFileParser, IWorkspaceQueries workspaceQueryHelper, IErrorQueries errorQueries, IMarkupTypeHelper markupTypeHelper)
 {
     RecordId              = 0;
     WorkspaceArtifactId   = -1;
     AgentId               = agentId;
     AgentHelper           = agentHelper;
     QueryHelper           = queryHelper;
     ProcessedOnDateTime   = processedOnDateTime;
     QueueTable            = Constant.Tables.ImportManagerQueue;
     AgentResourceGroupIds = resourceGroupIds;
     ArtifactQueries       = artifactQueries;
     ImportFileParser      = importFileParser;
     WorkspaceQueryHelper  = workspaceQueryHelper;
     ErrorQueries          = errorQueries;
     MarkupTypeHelper      = markupTypeHelper;
 }
Esempio n. 17
0
 public ExportWorkerJob(int agentId, IServicesMgr serviceMgr, IAgentHelper agentHelper, IQuery queryHelper, IArtifactQueries artifactQueries, Helpers.Utility.IQuery utilityQueryHelper, DateTime processedOnDateTime, IEnumerable <int> resourceGroupIds, IExportFileCreator exportFileCreator, IErrorQueries errorQueries)
 {
     AgentId               = agentId;
     _serviceMgr           = serviceMgr;
     AgentHelper           = agentHelper;
     QueryHelper           = queryHelper;
     _artifactQueries      = artifactQueries;
     _utilityQueryHelper   = utilityQueryHelper;
     ProcessedOnDateTime   = processedOnDateTime;
     AgentResourceGroupIds = resourceGroupIds;
     _exportFileCreator    = exportFileCreator;
     ErrorQueries          = errorQueries;
     RecordId              = 0;
     WorkspaceArtifactId   = -1;
     QueueTable            = Constant.Tables.ExportWorkerQueue;
 }
Esempio n. 18
0
 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;
 }
Esempio n. 19
0
 public ExportManagerJob(int agentId, IServicesMgr serviceMgr, IAgentHelper agentHelper, IQuery queryHelper, DateTime processedOnDateTime, IEnumerable <int> resourceGroupIds, IArtifactQueries artifactQueries, Helpers.Utility.IQuery utilityQueryHelper, IErrorQueries errorQueries, IMarkupTypeHelper markupTypeHelper)
 {
     RecordId              = 0;
     WorkspaceArtifactId   = -1;
     AgentId               = agentId;
     AgentHelper           = agentHelper;
     QueryHelper           = queryHelper;
     ProcessedOnDateTime   = processedOnDateTime;
     QueueTable            = Constant.Tables.ExportManagerQueue;
     AgentResourceGroupIds = resourceGroupIds;
     _serviceMgr           = serviceMgr;
     _artifactQueries      = artifactQueries;
     _utilityQueryHelper   = utilityQueryHelper;
     _markupTypeHelper     = markupTypeHelper;
     ErrorQueries          = errorQueries;
 }
Esempio n. 20
0
 public ImportWorkerJob(Int32 agentId, IAgentHelper agentHelper, ISqlQueryHelper sqlQueryHelper, IArtifactQueries artifactQueryHelper, DateTime processedOnDateTime, IRsapiRepositoryGroup rsapiRepositoryGroup, IEnumerable <Int32> resourceGroupIds, IAPILog logger, APIOptions apiOptions, ISerializationHelper serializationHelper)
 {
     TableRowId            = 0;
     WorkspaceArtifactId   = -1;
     AgentId               = agentId;
     AgentHelper           = agentHelper;
     SqlQueryHelper        = sqlQueryHelper;
     QueueTable            = Constant.Tables.ImportWorkerQueue;
     ProcessedOnDateTime   = processedOnDateTime;
     AgentResourceGroupIds = resourceGroupIds;
     Logger               = logger;
     _repositoryGroup     = rsapiRepositoryGroup;
     _artifactQueryHelper = artifactQueryHelper;
     _apiOptions          = apiOptions;
     _serializationHelper = serializationHelper;
 }
Esempio n. 21
0
 public WorkerJob(int agentId, IServicesMgr servicesMgr, ExecutionIdentity executionIdentity, ISqlQueryHelper sqlQueryHelper, IArtifactQueries artifactQueries, ArtifactFactory artifactFactory, Constant.AgentType agentType, string uniqueBatchTableName, IDBContext eddsDbContext)
 {
     RecordId                  = 0;
     WorkspaceArtifactId       = -1;
     AgentId                   = agentId;
     ServicesMgr               = servicesMgr;
     ExecutionIdentity         = executionIdentity;
     AgentType                 = agentType;
     EddsDbContext             = eddsDbContext;
     QueueTable                = Constant.Tables.WorkerQueue;
     BatchTableName            = uniqueBatchTableName;
     SqlQueryHelper            = sqlQueryHelper;
     ArtifactQueries           = artifactQueries;
     ArtifactFactory           = artifactFactory;
     TextExtractorJobReporting = new ExtractorSetReporting(artifactQueries, servicesMgr);
     CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
 }
 public ExtractorSetHistory(IServicesMgr servicesMgr, ExecutionIdentity executionIdentity, IArtifactQueries artifactQueries, Int32 extractorSetArtifactId, Int32 documentArtifactId, Int32 destinationFieldArtifactId, Int32 workspaceArtifactId, String targetName, String startMarker, String stopMarker, String markerType, string status = "", string details = "")
 {
     ServicesMgr       = servicesMgr;
     ExecutionIdentity = executionIdentity;
     Name = Guid.NewGuid().ToString();
     ExtractorSetArtifactId     = extractorSetArtifactId;
     DocumentArtifactId         = documentArtifactId;
     DestinationFieldArtifactId = destinationFieldArtifactId;
     WorkspaceArtifactId        = workspaceArtifactId;
     TargetName      = targetName;
     StartMarker     = startMarker;
     StopMarker      = stopMarker;
     MarkerType      = markerType;
     Status          = status;
     Details         = details;
     ArtifactQueries = artifactQueries;
 }
Esempio n. 23
0
        public WorkerQueue(ISqlQueryHelper sqlQueryHelper, IArtifactQueries artifactQueries, ArtifactFactory artifactFactory, IDBContext eddsDbContext, IServicesMgr servicesMgr, ExecutionIdentity executionIdentity, Int32 agentId, Int32 resourceServerId, String batchTableName, TextExtractorLog textExtractorLog, ExtractorSetReporting textExtractorJobReporting)
        {
            InitializeDefaults();

            SqlQueryHelper            = sqlQueryHelper;
            ArtifactQueries           = artifactQueries;
            EddsDbContext             = eddsDbContext;
            ServicesMgr               = servicesMgr;
            ExecutionIdentity         = executionIdentity;
            AgentId                   = agentId;
            ResourceServerId          = resourceServerId;
            BatchTableName            = batchTableName;
            TextExtractorLog          = textExtractorLog;
            Records                   = GetWorkerQueueRecords(textExtractorJobReporting, artifactFactory);
            TextExtractorJobReporting = textExtractorJobReporting;
            ArtifactFactory           = artifactFactory;
            ErrorLogModel             = new ErrorLogModel(sqlQueryHelper, eddsDbContext, agentId, QueueTableName);
        }
Esempio n. 24
0
 public ImportWorkerJob(int agentId, IAgentHelper agentHelper, IQuery queryHelper, DateTime processedOnDateTime, IEnumerable <int> resourceGroupIds, IErrorQueries errorQueries, IArtifactQueries artifactQueries, IAuditRecordHelper auditRecordHelper, IMarkupTypeHelper markupTypeHelper)
 {
     RecordId                = 0;
     WorkspaceArtifactId     = -1;
     AgentId                 = agentId;
     AgentHelper             = agentHelper;
     QueryHelper             = queryHelper;
     QueueTable              = Constant.Tables.ImportWorkerQueue;
     ProcessedOnDateTime     = processedOnDateTime;
     AgentResourceGroupIds   = resourceGroupIds;
     ErrorQueries            = errorQueries;
     ArtifactQueries         = artifactQueries;
     _importedRedactionCount = 0;
     _skippedRedactionCount  = 0;
     _errorRedactionCount    = 0;
     AuditRecordHelper       = auditRecordHelper;
     MarkupTypeHelper        = markupTypeHelper;
     _executionIdentity      = ExecutionIdentity.CurrentUser;
 }
        public WorkerQueueRecord(ISqlQueryHelper sqlSqlQueryHelper, IArtifactQueries artifactArtifactQueries, IDBContext eddsDbContext, IServicesMgr servicesMgr, ArtifactFactory artifactArtifactFactory, ExecutionIdentity executionExecutionIdentity, Int32 queueId, Int32 workspaceArtifactId, Int32 queueStatus, Int32 agentId, Int32 extractorSetArtifactId, Int32 documentArtifactId, Int32 extractorProfileArtifactId, Int32 sourceLongTextFieldArtifactId, ExtractorSetReporting textExtractorJobReporting, ExtractorSet extractorSet, ExtractorProfile extractorProfile)
        {
            SqlQueryHelper  = sqlSqlQueryHelper;
            ArtifactQueries = artifactArtifactQueries;

            QueueId                       = queueId;
            WorkspaceArtifactId           = workspaceArtifactId;
            QueueStatus                   = queueStatus;
            AgentId                       = agentId;
            ExtractorSetArtifactId        = extractorSetArtifactId;
            DocumentArtifactId            = documentArtifactId;
            ExtractorProfileArtifactId    = extractorProfileArtifactId;
            SourceLongTextFieldArtifactId = sourceLongTextFieldArtifactId;
            TextExtractorJobReporting     = textExtractorJobReporting;
            ArtifactFactory               = artifactArtifactFactory;

            QueueTableName    = Constant.Tables.WorkerQueue;
            EddsDbContext     = eddsDbContext;
            ServicesMgr       = servicesMgr;
            ExecutionIdentity = executionExecutionIdentity;

            ExtractorSet     = extractorSet;
            ExtractorProfile = extractorProfile;
        }
Esempio n. 26
0
 public override async Task <IEnumerable <String> > ValidateAsync(APIOptions apiOptions, IRsapiRepositoryGroup rsapiRepositoryGroup, IArtifactQueries artifactQueryHelper, IDBContext eddsDbContext, ISqlQueryHelper sqlQueryHelper)
 {
     return(await Task.Run(() => { return new List <string>(); }));
 }
Esempio n. 27
0
 public ExtractorSetReporting(IArtifactQueries artifactQueries, IServicesMgr servicesMgr)
 {
     ArtifactQueries = artifactQueries;
     ServicesMgr     = servicesMgr;
 }
        private async Task <Boolean> UserExistsInRelativity(APIOptions apiOptions, IGenericRepository <kCura.Relativity.Client.DTOs.User> userRepository, IArtifactQueries artifactQueryHelper, String emailAddress)
        {
            var retVal         = false;
            var userArtifactID = await artifactQueryHelper.FindUserByEmailAddressAsync(apiOptions, userRepository, emailAddress);

            if (userArtifactID != null)
            {
                retVal = true;
            }
            return(retVal);
        }
Esempio n. 29
0
 public ArtifactFactory(IArtifactQueries artifactQueries, IServicesMgr servicesMgr, ErrorLogModel errorLogModel)
 {
     ArtifactQueries = artifactQueries;
     ServicesMgr     = servicesMgr;
     ErrorLogModel   = errorLogModel;
 }
Esempio n. 30
0
 public abstract Task <IEnumerable <String> > ValidateAsync(APIOptions apiOptions, IRsapiRepositoryGroup rsapiRepositoryGroup, IArtifactQueries artifactQueryHelper, IDBContext eddsDbContext, ISqlQueryHelper sqlQueryHelper);