Exemplo n.º 1
0
        public ResourceAccessFact(
            PrincipalIdentifier resource, PrincipalIdentifier module, PrincipalIdentifier group,
            IntegerIdentifier from, IntegerIdentifier to, IntegerIdentifier dayOfWeek,
            VerbIdentifier accessMode, IntegerIdentifier priority
            )
            : base(
                "ResourceAccess",
                resource, module, group,
                from, to, dayOfWeek,
                accessMode, priority)
        {
            if (resource == null)
            {
                throw new ArgumentNullException("resource");
            }

            if (module == null)
            {
                throw new ArgumentNullException("module");
            }

            if (group == null)
            {
                throw new ArgumentNullException("target");
            }

            if (from == null)
            {
                throw new ArgumentNullException("from");
            }

            if (to == null)
            {
                throw new ArgumentNullException("to");
            }

            if (dayOfWeek == null)
            {
                throw new ArgumentNullException("dayOfWeek");
            }

            if (accessMode == null)
            {
                throw new ArgumentNullException("accessMode");
            }

            if (priority == null)
            {
                throw new ArgumentNullException("priority");
            }

            this.Resource = resource;
            this.Module   = module;
            this.Group    = group;

            this.From      = from;
            this.To        = to;
            this.DayOfWeek = dayOfWeek;

            this.AccessMode = accessMode;
            this.Priority   = priority;
        }
Exemplo n.º 2
0
        public ResourceAccessFact(
            PrincipalIdentifier resource, PrincipalIdentifier module, PrincipalIdentifier group,
            IntegerIdentifier from, IntegerIdentifier to, IntegerIdentifier dayOfWeek,
            VerbIdentifier accessMode, IntegerIdentifier priority
            )
            : base("ResourceAccess",
                resource, module,  group,
                from, to, dayOfWeek,
                accessMode, priority)
        {
            if (resource == null)
            {
                throw new ArgumentNullException("resource");
            }

            if (module == null)
            {
                throw new ArgumentNullException("module");
            }

            if (group == null)
            {
                throw new ArgumentNullException("target");
            }

            if (from == null)
            {
                throw new ArgumentNullException("from");
            }

            if (to == null)
            {
                throw new ArgumentNullException("to");
            }

            if (dayOfWeek == null)
            {
                throw new ArgumentNullException("dayOfWeek");
            }

            if (accessMode == null)
            {
                throw new ArgumentNullException("accessMode");
            }

            if (priority == null)
            {
                throw new ArgumentNullException("priority");
            }

            this.Resource = resource;
            this.Module = module;
            this.Group = group;

            this.From = from;
            this.To = to;
            this.DayOfWeek = dayOfWeek;

            this.AccessMode = accessMode;
            this.Priority = priority;
        }