X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.AccessControl%2FCommonAcl.cs;h=76a544800e87c100cabc5ce8ea4c0fa856353716;hb=371a1f12a9c0ce20aae7034afeb293321c3952bd;hp=88f184afbf6d5a326bc2896693eb2c65322d2cc5;hpb=b2262f41726a89c8209facb3ea9e4be9582422b5;p=mono.git diff --git a/mcs/class/corlib/System.Security.AccessControl/CommonAcl.cs b/mcs/class/corlib/System.Security.AccessControl/CommonAcl.cs index 88f184afbf6..76a544800e8 100644 --- a/mcs/class/corlib/System.Security.AccessControl/CommonAcl.cs +++ b/mcs/class/corlib/System.Security.AccessControl/CommonAcl.cs @@ -1,10 +1,11 @@ // // System.Security.AccessControl.CommonAcl implementation // -// Author: +// Authors: // Dick Porter +// Atsushi Enomoto // -// Copyright (C) 2006 Novell, Inc (http://www.novell.com) +// Copyright (C) 2006-2007 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -28,6 +29,7 @@ #if NET_2_0 +using System.Collections.Generic; using System.Security.Principal; namespace System.Security.AccessControl { @@ -36,24 +38,38 @@ namespace System.Security.AccessControl { */ public abstract class CommonAcl : GenericAcl { - internal CommonAcl () + const int default_capacity = 10; // FIXME: not verified + + internal CommonAcl (bool isContainer, bool isDS, byte revision) + : this (isContainer, isDS, revision, default_capacity) { } - public override sealed int BinaryLength + internal CommonAcl (bool isContainer, bool isDS, byte revision, int capacity) { - get { - throw new NotImplementedException (); - } + this.is_container = isContainer; + this.is_ds = isDS; + this.revision = revision; + list = new List (capacity); } - public override sealed int Count + bool is_container, is_ds; + byte revision; + List list; + + [MonoTODO] + public override sealed int BinaryLength { get { throw new NotImplementedException (); } } - + + public override sealed int Count { + get { return list.Count; } + } + + [MonoTODO] public bool IsCanonical { get { @@ -61,48 +77,38 @@ namespace System.Security.AccessControl { } } - public bool IsContainer - { - get { - throw new NotImplementedException (); - } + public bool IsContainer { + get { return is_container; } } - public bool IsDS - { - get { - throw new NotImplementedException (); - } + public bool IsDS { + get { return is_ds; } } - + public override sealed GenericAce this[int index] { - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } + get { return list [index]; } + set { list [index] = value; } } - public override sealed byte Revision - { - get { - throw new NotImplementedException (); - } + public override sealed byte Revision { + get { return revision; } } + [MonoTODO] public override sealed void GetBinaryForm (byte[] binaryForm, int offset) { throw new NotImplementedException (); } + [MonoTODO] public void Purge (SecurityIdentifier sid) { throw new NotImplementedException (); } + [MonoTODO] public void RemoveInheritedAces () { throw new NotImplementedException ();