Click or drag to resize

VGIPrincipal Interface

Defines the basic functionality of a Visual Guard principal

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public interface VGIPrincipal : IPrincipal

The VGIPrincipal type exposes the following members.

Properties
  NameDescription
Public propertyContextualGroups
This property contains all contextual groups which are selectable.
Public propertyGrantedGroups
This property contains all granted groups to the user.
Public propertyGroups
This property contains all granted groups which are Active.
Public propertyIdentity
Gets the identity of the current principal.
Public propertyMembershipPermission
Gets a value that indicates whether the current user can use Membership API to edit, create, delete or assign role to users for the current application
Public propertyProfileValues
Get User Profile values of the current user.
Public propertyRepositoryId
Gets the Visual Guard unique ID for this principal
Public propertyRoles
Gets the list of roles of current application granted to the user
Public propertyRuntime Obsolete.
Returns the VGSecurityRuntime object used to manage the principal.
Public propertySelectedContextualGroups
This property contains contextual groups which are selected.
Public propertyToken
Top
Methods
  NameDescription
Public methodCanAccessApplication(Guid)
Gets if principal has access for particular application or not.
Public methodCanAccessApplication(String)
Gets if principal has access for particular application or not.
Public methodCanAccessApplication(VGApplication)
Gets if principal has access for particular application or not.
Public methodGetAllCurrentPermissions
Return all permission for current application
Public methodGetAllUsersId
Public methodGetPermission(Guid)
Gets the specified VGIPermission object.
Public methodCode exampleGetPermission(String)
Gets the specified VGIPermission object.
Public methodCode exampleHasPermission(Guid)
Checks whether the specified permission is granted to the principal.
Public methodCode exampleHasPermission(String)
Checks whether the specified permission is granted to the principal.
Public methodHasPermission(Guid, Boolean)
Checks whether the specified permission is granted to the principal.
Public methodIsInRole(Guid)
Determines whether the current principal belongs to the role with the specified id.
Public methodIsInRole(String)
Determines whether the current principal belongs to the specified role.
Public methodSelectContextualGroup
This method applies selection of contextual group to principal.
Public methodSelectContextualGroups(ListVGContextualGroup)
This method applies selection of contextual groups to principal.
Public methodSelectContextualGroups(ListVGGrantedGroup) Obsolete.
This method applies selection of contextual groups to principal.
Public methodSelectContextualRole
This method applies selection of contextual role to principal.
Public methodSelectContextualRoles(ListVGGrantedRole)
This method applies selection of contextual roles to principal.
Public methodSelectContextualRoles(VGSecurityRuntime, ListVGGrantedRole)
This method applies selection of contextual roles to principal.
Public methodTryGetPermission(Guid, VGIPermission)
Retrieves the VGIPermission object granted to principal with the specified id.
Public methodTryGetPermission(String, VGIPermission)
Retrieves the VGIPermission object granted to principal with the specified name.
Top
Remarks
A VGIPrincipal object is returned by the Principal and represents the current logged-on user.
See Also