protected override void Configure(Job job)
        {
            job.AddPhase(new Phase("default", true, RightsUtils.getRights(create: RightValue.APPROVED, query: RightValue.APPROVED, update: RightValue.APPROVED), RightsUtils.getRights(create: RightValue.APPROVED), PhaseStateType.NOTSTARTED));

            job.AddPhase(new Phase("xml", true, RightsUtils.getRights(update: RightValue.APPROVED), RightsUtils.getRights(create: RightValue.APPROVED), PhaseStateType.NOTSTARTED));

            job.AddPhase(new Phase("json", true, RightsUtils.getRights(update: RightValue.APPROVED), RightsUtils.getRights(create: RightValue.APPROVED), PhaseStateType.NOTSTARTED));

            job.Timeout = new TimeSpan(0, 1, 0);
        }
예제 #2
0
        protected override void Configure(Job job)
        {
            job.AddPhase(new Phase("default", true, RightsUtils.getRights(create: RightValue.APPROVED, query: RightValue.APPROVED, update: RightValue.APPROVED), RightsUtils.getRights(create: RightValue.APPROVED), PhaseStateType.NOTSTARTED));

            job.AddPhase(new Phase("xml", true, RightsUtils.getRights(update: RightValue.APPROVED), RightsUtils.getRights(create: RightValue.APPROVED), PhaseStateType.NOTSTARTED));

            job.AddPhase(new Phase("json", true, RightsUtils.getRights(update: RightValue.APPROVED), RightsUtils.getRights(create: RightValue.APPROVED), PhaseStateType.NOTSTARTED));

            job.Timeout = new TimeSpan(0, 1, 0);
        }