コード例 #1
0
        public DocumentBatch(IArtifactQueries artifactQueries, IServicesMgr servicesMgr)
        {
            ServicesMgr = servicesMgr;
            ArtQueries  = artifactQueries;

            resultSet = new QueryResultSet <Document>();
        }
コード例 #2
0
        public ExtractorRegullarExpression(IArtifactQueries artifactQueries, Int32 workspaceArtifactId, RDO extractorRegullarExpressionRdo, ErrorLogModel errorLogModel)
        {
            WorkspaceArtifactId = workspaceArtifactId;
            ArtifactQueries     = artifactQueries;
            ErrorLogModel       = errorLogModel;

            SetMyProperties(extractorRegullarExpressionRdo);
        }
コード例 #3
0
 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;
 }
コード例 #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);
        }
コード例 #6
0
        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();
        }
コード例 #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);
 }
コード例 #8
0
 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;
 }
コード例 #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");
        }
コード例 #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;
 }
コード例 #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);
     }
 }
コード例 #12
0
        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);
        }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
        }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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");
 }
コード例 #22
0
 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;
 }
コード例 #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);
        }
コード例 #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;
 }
コード例 #25
0
        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;
        }
コード例 #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>(); }));
 }
コード例 #27
0
 public ExtractorSetReporting(IArtifactQueries artifactQueries, IServicesMgr servicesMgr)
 {
     ArtifactQueries = artifactQueries;
     ServicesMgr     = servicesMgr;
 }
コード例 #28
0
        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);
        }
コード例 #29
0
 public ArtifactFactory(IArtifactQueries artifactQueries, IServicesMgr servicesMgr, ErrorLogModel errorLogModel)
 {
     ArtifactQueries = artifactQueries;
     ServicesMgr     = servicesMgr;
     ErrorLogModel   = errorLogModel;
 }
コード例 #30
0
 public abstract Task <IEnumerable <String> > ValidateAsync(APIOptions apiOptions, IRsapiRepositoryGroup rsapiRepositoryGroup, IArtifactQueries artifactQueryHelper, IDBContext eddsDbContext, ISqlQueryHelper sqlQueryHelper);