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)); }
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(() => { return(GetQuery(ResourceId.Activity)); }); clientAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Client)); }); contractAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Contract)); }); jobAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Job)); }); personAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Person)); }); processAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Process)); }); recruiterAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Recruiter)); }); resumeAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Resume)); }); salesAcl = new HrbcAclUpdater(() => { return(GetQuery(ResourceId.Sales)); }); }
private void InitFieldAclUpdater() { activityAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Activity).ToList()); }); clientAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Client).ToList()); }); contractAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Contract).ToList()); }); jobAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Job).ToList()); }); personAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Candidate).ToList()); }); processAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Process).ToList()); }); recruiterAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Recruiter).ToList()); }); resumeAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Resume).ToList()); }); salesAcl = new HrbcAclUpdater(() => { return(GetQuery(Enums.ResourceType.Sales).ToList()); }); }
private void InitFieldAclUpdater() { activityAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Activity, activityFieldList, Enums.Options.ActivityPhase).ToList()); clientAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Client, clientFieldList, Enums.Options.ClientPhase).ToList()); personAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Person, candidateFieldList, Enums.Options.CandidatePhase).ToList()); contractAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Contract, contractFieldList, Enums.Options.ContractPhase).ToList()); jobAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Job, jobFieldList, Enums.Options.JobPhase).ToList()); processAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Process, processFieldList, Enums.Options.ProcessPhase).ToList()); recruiterAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Recruiter, recruiterFieldList, Enums.Options.RecruiterPhase).ToList()); resumeAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Resume, resumeFieldList, Enums.Options.ResumePhase).ToList()); salesAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Sales, salesFieldList, Enums.Options.SalesPhase).ToList()); }
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)); }
private void InitFieldAclUpdater() { activityAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Activity}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Activity), AccessType.ReadOnly)); contractAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Contract}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Contract), AccessType.ReadOnly)); clientAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Client}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Client), AccessType.ReadOnly)); jobAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Job}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Job), AccessType.ReadOnly)); personAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Person}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Person), AccessType.ReadOnly)); processAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Process}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Process), AccessType.ReadOnly)); recruiterAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Recruiter}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Recruiter), AccessType.ReadOnly)); resumeAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Resume}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Resume), AccessType.ReadOnly)); salesAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(customFields.Data[$"{ResourceId.Sales}"].Field, FieldSearchTestData.GetOptionPhase(ResourceId.Sales), AccessType.ReadOnly)); }
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)); }
private void InitFieldAclUpdater() { activityAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Activity, customFields.Data[$"{ResourceId.Activity}"].Field)); contractAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Contract, customFields.Data[$"{ResourceId.Contract}"].Field)); clientAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Client, customFields.Data[$"{ResourceId.Client}"].Field)); jobAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Job, customFields.Data[$"{ResourceId.Job}"].Field)); personAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Person, customFields.Data[$"{ResourceId.Person}"].Field)); processAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Process, customFields.Data[$"{ResourceId.Process}"].Field)); recruiterAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Recruiter, customFields.Data[$"{ResourceId.Recruiter}"].Field)); resumeAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Resume, customFields.Data[$"{ResourceId.Resume}"].Field)); salesAcl = new HrbcAclUpdater(() => CreateSingleAclSpec(ResourceId.Sales, customFields.Data[$"{ResourceId.Sales}"].Field)); }
private void InitFieldAclUpdater() { aclUpdater = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Activity, ActivityEventParticipants), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ActivityPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }
private void InitFieldAclUpdater() { activityAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Activity, sytemDateTimeFields, Enums.Options.ActivityPhase).ToList()); contractAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Contract, sytemDateTimeFields, Enums.Options.ContractPhase).ToList()); clientAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Client, sytemDateTimeFields, Enums.Options.ClientPhase).ToList()); jobAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Job, sytemDateTimeFields, Enums.Options.JobPhase).ToList()); personAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Person, sytemDateTimeFields, Enums.Options.CandidatePhase).ToList()); processAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Process, sytemDateTimeFields, Enums.Options.ProcessPhase).ToList()); recruiterAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Recruiter, sytemDateTimeFields, Enums.Options.RecruiterPhase).ToList()); resumeAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Resume, sytemDateTimeFields, Enums.Options.ResumePhase).ToList()); salesAcl = new HrbcAclUpdater(() => TestDataHelper.CreateQuery(ResourceId.Sales, sytemDateTimeFields, Enums.Options.SalesPhase).ToList()); }
private void InitFieldAclUpdater() { contractAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Contract, AdvancePayment), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ContractPhase] = AccessType.ReadOnly }, AclGroupName = AclGroup }); jobAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Job, MinSalary), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ContractPhase] = AccessType.ReadOnly }, AclGroupName = AclGroup }); processAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Process, ExpectedSalesAmount), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ContractPhase] = AccessType.ReadOnly }, AclGroupName = AclGroup }); resumeAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Resume, CurrentSalary), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ResumePhase] = AccessType.ReadOnly }, AclGroupName = AclGroup }); salesAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Sales, SalesAmount), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ResumePhase] = AccessType.ReadOnly }, AclGroupName = AclGroup }); }
private void InitFieldAclUpdater() { //Recruiter rateAclRecruiterMail = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Recruiter, RecruiterMail), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.RecruiterPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); rateAclRecruiterMobileMail = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Recruiter, RecruiterMobileMail), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.RecruiterPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); //Person rateAclPersonMail = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Person, PersonMail), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.CandidatePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); rateAclPersonMobileMail = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Person, PersonMobileMail), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.CandidatePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }
private void InitFieldAclUpdater() { contingentFeeRateAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Contract, ContingentFeeRate), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ContractPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); changeJobsCountAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Resume, ChangeJobsCount), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ResumePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }
private void InitFieldAclUpdater() { activityAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Activity, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ActivityPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); clientAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Client, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ClientPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); contractAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Contract, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ContractPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); jobAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Job, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.JobPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); personAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Person, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.CandidatePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); processAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Process, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ProcessPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); recruiterAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Recruiter, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.RecruiterPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); resumeAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Resume, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ResumePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); salesAcl = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Sales, MaxPrecisionFieldAlias), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.SalesPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }
private void InitFieldAclUpdater() { activityAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Activity}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ActivityPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); clientAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Client}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ClientPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); contractAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Contract}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ContractPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); jobAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Job}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.JobPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); personAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Candidate}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.CandidatePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); processAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Process}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ProcessPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); recruiterAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Recruiter}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.RecruiterPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); resumeAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Resume}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ResumePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); salesAcl = new HrbcAclUpdater(() => { return(new HrbcAclUpdater.AclSpec() { Field = customFields.Data[$"{Enums.ResourceType.Sales}-{MaximumPrecision}"].Field, OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.SalesPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }); }
private void InitFieldAclUpdater() { //Client rateAclClientTelephone = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Client, ClientTelephone), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ClientPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); rateAclClientFax = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Client, ClientFax), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.ClientPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); //Recruiter rateAclRecruiterTelephone = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Recruiter, RecruiterTelephone), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.RecruiterPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); rateAclRecruiterFax = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Recruiter, RecruiterFax), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.RecruiterPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); rateAclRecruiterMobile = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Recruiter, RecruiterMobile), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.RecruiterPhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); //Candidate rateAclPersonTelephone = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Person, PersonTelephone), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.CandidatePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); rateAclPersonFax = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Person, PersonFax), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.CandidatePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); rateAclPersonMobile = new HrbcAclUpdater(new HrbcAclUpdater.AclSpec { Field = new HrbcField(ResourceId.Person, PersonMobile), OptionAliasToAccessTypeMap = new Dictionary <string, AccessType> { [Enums.Options.CandidatePhase] = AccessType.ReadOnly }, AclGroupName = GroupName }); }
private void InitFieldAclUpdater() { ResumeAcl = new HrbcAclUpdater(() => TestDataHelper.CreateSingleAclSpec(new HrbcField(ResourceId.Process, AgeSystemField.ResumeDateOfBirth), Enums.Options.ProcessPhase, AccessType.ReadOnly)); }
private void UpdateAcl() { aclGroups = new HrbcAclUpdater(() => CollectAclInfo(AccessType.ReadOnly)); }
private void InitFieldAclUpdater() { ProcessAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Process, processFieldList, Enums.Options.ProcessPhase).ToList()); ContractAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Contract, contractFieldList, Enums.Options.ContractPhase).ToList()); SalesAcl = new HrbcAclUpdater(() => CreateQuery(ResourceId.Sales, salesFieldList, Enums.Options.SalesPhase).ToList()); }