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.

Example

Used in order to check the Levels of Access a User or UserGroup has to a Object, Class or Property, or from an ObjVerEx.
C#
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 );

Definition

Namespace: MFiles.VAF.Common
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public class AccessCache
Inheritance
Object    AccessCache

Constructors

AccessCache(Vault) Access Cache Default Constructor.
AccessCache(UserOrUserGroupIDs, UserOrUserGroupIDs, ObjTypes, ObjectClasses, PropertyDefs, NamedACLs) Access Cache Metadata Structure Cache Constructor.

Properties

Methods

GetAccessibility Accessibility constructor proxy.

See Also