Click or drag to resize

AccessCache Class

Note: This API is now obsolete.

Access Cache Class : Caches all Object, Class, and Property Structure elements. User and Groups Access rights are stored on the structure element that each are related to.
Examples
Used in order to check the Levels of Access a User or UserGroup has to a Object, Class or Property, or from an ObjVerEx.
AccessCache cache = new AccessCache( ServerVault );
ObjVerEx objVerEx = ObjVerEx.Parse( ServerVault, "(0-6)" );

AccessCache.ObjVerExPermissions objVerExPermissions = new AccessCache.ObjVerExPermissions(
           objVerEx,
           cache,
           ( int ) MFBuiltInUserGroup.MFBuiltInUserGroupAllInternalUsers,
           true );

Console.WriteLine( objVerExPermissions.ToString(true) );

AccessCache.Accessibility hiddenProp = objVerExPermissions.Properties.SingleOrDefault( p => p.StructureID == 1234 );
Assert.IsNotNull( hiddenProp );
Assert.IsFalse( hiddenProp.CanRead );
Inheritance Hierarchy
SystemObject
  MFiles.VAF.CommonAccessCache

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
[ObsoleteAttribute("This class will be removed.")]
public class AccessCache

The AccessCache type exposes the following members.

Constructors
  NameDescription
Public methodAccessCache(Vault)
Access Cache Default Constructor.
Public methodAccessCache(UserOrUserGroupIDs, UserOrUserGroupIDs, ObjTypes, ObjectClasses, PropertyDefs, NamedACLs)
Access Cache Metadata Structure Cache Constructor.
Top
Properties
  NameDescription
Public propertyClasses
Cached ClassAccessAccessibility Collection.
Public propertyNamedACLs
Cached NamedACLAccessAccessibility Collection.
Public propertyObjects
Cached ObjectAccessAccessibility Collection.
Public propertyProperties
Cached PropertyAccessAccessibility Collection.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAccessibility
Accessibility constructor proxy.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also