Click or drag to resize

AccessCache Class

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.2.0.9
Syntax
C#
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 methodGetAccessibility
Accessibility constructor proxy.
Top
See Also