private void InitFieldAclUpdater()
        {
            //Activity
            activityFromDateAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Activity, DateTimeSystemField.ActivityFromDate), Enums.Options.ActivityPhase, AccessType.ReadOnly));
            activityToDateAcl   = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Activity, DateTimeSystemField.ActivityFromDate), Enums.Options.ActivityPhase, AccessType.ReadOnly));
            ActivityAcl         = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Activity, DateTimeSystemField.PhaseDate), Enums.Options.ActivityPhase, AccessType.ReadOnly));

            //Candidate
            CandidateAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Person, DateTimeSystemField.PhaseDate), Enums.Options.CandidatePhase, AccessType.ReadOnly));

            //Client
            ClientAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Client, DateTimeSystemField.PhaseDate), Enums.Options.ClientPhase, AccessType.ReadOnly));

            //Job
            JobAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Job, DateTimeSystemField.PhaseDate), Enums.Options.JobPhase, AccessType.ReadOnly));

            //Process
            ProcessAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Process, DateTimeSystemField.PhaseDate), Enums.Options.ProcessPhase, AccessType.ReadOnly));

            //Recruiter
            RecruiterAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Recruiter, DateTimeSystemField.PhaseDate), Enums.Options.RecruiterPhase, AccessType.ReadOnly));

            //Resume
            ResumeAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Resume, DateTimeSystemField.PhaseDate), Enums.Options.ResumePhase, AccessType.ReadOnly));

            //Sales
            SalesAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Sales, DateTimeSystemField.PhaseDate), Enums.Options.SalesPhase, AccessType.ReadOnly));
        }
Ejemplo n.º 2
0
 private void InitFieldAclUpdater()
 {
     activityAcl  = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Activity, SystemTypeField.ResourceId), Enums.Options.ActivityPhase, AccessType.ReadOnly));
     contractAcl  = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Contract, SystemTypeField.Client), Enums.Options.ContractPhase, AccessType.ReadOnly));
     jobAcl       = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Job, sytemJobFields, Enums.Options.JobPhase).ToList());
     processAcl   = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Process, sytemProcessFields, Enums.Options.ProcessPhase).ToList());
     recruiterAcl = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Recruiter, SystemTypeField.Client), Enums.Options.RecruiterPhase, AccessType.ReadOnly));
     resumeAcl    = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Resume, SystemTypeField.Candidate), Enums.Options.ResumePhase, AccessType.ReadOnly));
     salesAcl     = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Sales, sytemSalesFields, Enums.Options.SalesPhase).ToList());
 }
 private void InitFieldAclUpdater()
 {
     activityAcl  = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Activity, SystemTypeField.Owner), Enums.Options.ActivityPhase, AccessType.ReadOnly));
     clientAcl    = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Client, SystemTypeField.Owner), Enums.Options.ClientPhase, AccessType.ReadOnly));
     jobAcl       = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Job, SystemTypeField.Owner), Enums.Options.JobPhase, AccessType.ReadOnly));
     personAcl    = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Person, SystemTypeField.Owner), Enums.Options.CandidatePhase, AccessType.ReadOnly));
     processAcl   = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Process, SystemTypeField.Owner), Enums.Options.ProcessPhase, AccessType.ReadOnly));
     recruiterAcl = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Recruiter, SystemTypeField.Owner), Enums.Options.RecruiterPhase, AccessType.ReadOnly));
     resumeAcl    = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Resume, SystemTypeField.Owner), Enums.Options.ResumePhase, AccessType.ReadOnly));
     salesAcl     = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Sales, SystemTypeField.Owner), Enums.Options.SalesPhase, AccessType.ReadOnly));
 }
 private void InitFieldAclUpdater()
 {
     ActivityAcl  = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Activity, AppField), Enums.Options.ActivityPhase, AccessType.ReadOnly));
     ContractAcl  = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Contract, AppField), Enums.Options.ContractPhase, AccessType.ReadOnly));
     CandidateAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Person, AppField), Enums.Options.CandidatePhase, AccessType.ReadOnly));
     ClientAcl    = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Client, AppField), Enums.Options.ClientPhase, AccessType.ReadOnly));
     JobAcl       = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Job, AppField), Enums.Options.JobPhase, AccessType.ReadOnly));
     ProcessAcl   = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Process, AppField), Enums.Options.ProcessPhase, AccessType.ReadOnly));
     RecruiterAcl = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Recruiter, AppField), Enums.Options.RecruiterPhase, AccessType.ReadOnly));
     ResumeAcl    = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Resume, AppField), Enums.Options.ResumePhase, AccessType.ReadOnly));
     SalesAcl     = new HrbcAclUpdater(TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Sales, AppField), Enums.Options.SalesPhase, AccessType.ReadOnly));
 }
Ejemplo n.º 5
0
 private void InitFieldAclUpdater()
 {
     activityAcl  = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Activity}"].Field, Enums.Options.ActivityPhase, AccessType.ReadOnly));
     contractAcl  = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Contract}"].Field, Enums.Options.ContractPhase, AccessType.ReadOnly));
     clientAcl    = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Client}"].Field, Enums.Options.ClientPhase, AccessType.ReadOnly));
     jobAcl       = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Job}"].Field, Enums.Options.JobPhase, AccessType.ReadOnly));
     personAcl    = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Person}"].Field, Enums.Options.CandidatePhase, AccessType.ReadOnly));
     processAcl   = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Process}"].Field, Enums.Options.ProcessPhase, AccessType.ReadOnly));
     recruiterAcl = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Recruiter}"].Field, Enums.Options.RecruiterPhase, AccessType.ReadOnly));
     resumeAcl    = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Resume}"].Field, Enums.Options.ResumePhase, AccessType.ReadOnly));
     salesAcl     = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(customFields.Data[$"{ResourceId.Sales}"].Field, Enums.Options.SalesPhase, AccessType.ReadOnly));
 }
Ejemplo n.º 6
0
 private void InitFieldAclUpdater()
 {
     ResumeAcl = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Process, AgeSystemField.ResumeDateOfBirth), Enums.Options.ProcessPhase, AccessType.ReadOnly));
 }