Click or drag to resize

VGRolesInstance Class

Manages user membership in roles for a specific VGSecurityRuntime object.
Inheritance Hierarchy
SystemObject
  Novalys.VisualGuard.Security.MembershipVGRolesInstance

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public sealed class VGRolesInstance

The VGRolesInstance type exposes the following members.

Properties
  NameDescription
Public propertyAnonymousRole
Gets the name of the role granted to a user during an anonymous session.
Public propertyAnonymousRoleId
Gets the unique identifier of the role granted to a user during an anonymous session.
Public propertyApplicationId
Gets the Visual Guard unique identifier of the application managed by this instance.
Public propertyApplicationName
Gets the name of the application managed by this instance.
Public propertyDefaultRole
Gets the name of the default role of the application.
Public propertyDefaultRoleId
Gets the unique identifier of the default role of the application.
Top
Methods
  NameDescription
Public methodAddUsersToRole(NTAccount, String) Obsolete.
Adds the specified users to the specified role.
Public methodAddUsersToRole(String, String) Obsolete.
Adds the specified users to the specified role.
Public methodAddUsersToRole(ICollectionVGMembershipUser, VGRole)
Grant role to users
Public methodAddUsersToRole(NTAccount, String, Guid) Obsolete.
Public methodAddUsersToRole(String, String, Guid)
Public methodAddUsersToRoles(NTAccount, String) Obsolete.
Adds the specified users to the specified roles.
Public methodAddUsersToRoles(String, String) Obsolete.
Adds the specified users to the specified roles.
Public methodAddUsersToRoles(ICollectionVGMembershipUser, ICollectionVGRole)
Grant role to users
Public methodAddUsersToRoles(NTAccount, String, Guid) Obsolete.
Public methodAddUsersToRoles(String, String, Guid) Obsolete.
Public methodAddUsersToRolesById(NTAccount, Guid) Obsolete.
Adds the specified Windows accounts to the specified roles.
Public methodAddUsersToRolesById(String, Guid) Obsolete.
Adds a list of users specified by repository ids to the specified roles.
Public methodAddUsersToRolesById(NTAccount, Guid, Guid) Obsolete.
Adds the specified Windows accounts to the specified roles.
Public methodAddUsersToRolesById(String, Guid, Guid) Obsolete.
Adds a list of users specified by repository ids to the specified roles.
Public methodAddUserToRole(NTAccount, String) Obsolete.
Adds the specified user to the specified role.
Public methodAddUserToRole(String, String) Obsolete.
Adds the specified user to the specified role.
Public methodAddUserToRole(VGMembershipUser, VGRole)
Grant role to user
Public methodAddUserToRole(NTAccount, String, Guid) Obsolete.
Adds the specified user to the specified role.
Public methodAddUserToRole(String, String, Guid) Obsolete.
Adds the specified user to the specified role.
Public methodAddUserToRoleById(String, Guid) Obsolete.
Adds the user specified by the repository id to the specified role.
Public methodAddUserToRoleById(String, Guid, Guid) Obsolete.
Adds the user specified by the repository id to the specified role.
Public methodAddUserToRoles(NTAccount, String) Obsolete.
Adds the specified user to the specified roles.
Public methodAddUserToRoles(String, String) Obsolete.
Adds the specified user to the specified roles.
Public methodAddUserToRoles(VGMembershipUser, ICollectionVGRole)
Grant roles to user
Public methodAddUserToRoles(NTAccount, String, Guid) Obsolete.
Adds the specified user to the specified roles.
Public methodAddUserToRoles(String, String, Guid) Obsolete.
Adds the specified user to the specified roles.
Public methodAddUserToRolesById(String, Guid) Obsolete.
Adds a user specified by repository id to the specified roles.
Public methodAddUserToRolesById(String, Guid, Guid) Obsolete.
Adds a user specified by repository id to the specified roles.
Public methodCreateProfileAttribute(String, VGCommonProfileDataType)
Creates profile attribute for role.
Public methodCreateProfileAttribute(String, VGCommonProfileDataType, VGIProfileAttributeDefinition)
Creates profile attribute for role.
Public methodCreateProfileAttribute(String, VGCommonProfileDataType, String, String, VGIProfileAttributeDefinition)
Creates profile attribute for role.
Public methodCreateProfileAttribute(String, VGCommonProfileDataType, String, String, Boolean, Boolean, Boolean, Boolean, Int32, String, VGIProfileAttributeDefinition)
Creates profile attribute for role.
Public methodCreateProfileAttribute(String, VGCommonProfileDataType, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, Int32, String, VGIProfileAttributeDefinition)
Creates profile attribute for role.
Public methodCreateProfileAttribute(String, VGCommonProfileDataType, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, Int32, String, VGIProfileAttributeDefinition, Boolean)
Creates profile attribute for role.
Public methodCreateRole(String, String, VGApplication)
Create a new role for an application
Public methodCreateRole(String, String, Guid)
Adds a new role to the repository.
Public methodCreateRole(String, String, VGApplication, VGPermissionSet)
Create a new role for an application
Public methodCreateRole(String, String, Guid, Guid)
Adds a new role to the repository.
Public methodCreateSharedRole(String, String)
Public methodCreateSharedRole(String, String, Guid, Guid)
Adds a new role to the repository.
Public methodDeleteProfileAttribute
Deletes profile Attribute.
Public methodDeleteRole(Guid, Boolean) Obsolete.
Deletes a role specified by its repository id from the repository.
Public methodDeleteRole(String, Boolean) Obsolete.
Deletes a role specified by its name from the repository.
Public methodDeleteRole(VGRole, Boolean)
Deletes the role represented by the specified VGRole object from the repository.
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 methodFindPermissionSetByName Obsolete.
Gets a permission set list for the selected permission name and for the application
Public methodFindRolesByName
Gets a roles for the application.
Public methodFindRolesByProfileAttributeValue(Guid, Object)
Public methodFindRolesByProfileAttributeValue(VGRoleProfileAttribute, Object)
Public methodFindRolesByProfileAttributeValue(Guid, Object, Object)
Public methodFindRolesByProfileAttributeValue(VGRoleProfileAttribute, Object, Object)
Public methodFindRolesByProfileAttributeValue(Guid, Object, Int32, Int32, Int32)
Public methodFindRolesByProfileAttributeValue(VGRoleProfileAttribute, Object, Int32, Int32, Int32)
Public methodFindRolesByProfileAttributeValue(Guid, Object, Object, Int32, Int32, Int32)
Public methodFindRolesByProfileAttributeValue(VGRoleProfileAttribute, Object, Object, Int32, Int32, Int32)
Public methodFindRolesByProfileAttributeValue(Guid, Object, Int32, Int32, VGSortOrderType, VGRoleSortByColumnType, Int32)
Public methodFindRolesByProfileAttributeValue(VGRoleProfileAttribute, Object, Int32, Int32, VGSortOrderType, VGRoleSortByColumnType, Int32)
Public methodFindRolesByProfileAttributeValue(Guid, Object, Object, Int32, Int32, VGSortOrderType, VGRoleSortByColumnType, Int32)
Public methodFindRolesByProfileAttributeValue(VGRoleProfileAttribute, Object, Object, Int32, Int32, VGSortOrderType, VGRoleSortByColumnType, Int32)
Public methodFindSharedRolesByName
Gets a shared roles for the application.
Public methodFindUsersInRole(String, String) Obsolete.
Gets a list of users in a specified role where the user name contains the specified user name to match.
Public methodFindUsersInRole(VGRole, String)
Find users by VGRole and Username
Public methodFindUsersInRoleById Obsolete.
Gets a list of users in a specified role where the user name contains the specified user name to match.
Public methodGetAllPermissionSets Obsolete.
Gets a list of the permission set from the application.
Public methodGetAllProfileAttributes
Gets all profile attributes for role.
Public methodGetAllProfileAttributes(Int32, Int32)
Gets all profile attributes for role.
Public methodGetAllRoles
Gets a list of all the roles for the application.
Public methodGetAllRolesAsCollection
Gets a VGRoleCollection object representing the list of all the roles for the application.
Public methodGetAllRolesAsCollection(Guid)
Gets a VGRoleCollection object representing the list of all the roles for the application.
Public methodGetAllRolesAsCollection(VGApplication)
Get All roles by Application
Public methodGetAllRolesForUser
Get List of VGRoles granted to the User (including the roles coming from groups)
Public methodGetAllSharedRolesAsCollection
Gets a VGRoleCollection object representing the list of all the roles for the application.
Public methodGetAllSharedRolesAsCollection(Guid)
Gets a VGRoleCollection object representing the list of all the roles for the application.
Public methodGetAllSharedRolesAsCollection(VGApplication)
Public methodGetAllSpecialRolesAsCollection(Guid)
Gets a VGRoleCollection object representing the list of all speciale roles for the application.
Public methodGetAllSpecialRolesAsCollection(VGApplication)
Public methodGetAnonymousSystemRole
Public methodCode exampleGetAttributes
Get all attributes of permission contained in role
Public methodGetDefaultRole(Guid) Obsolete.
Public methodGetDefaultRole(VGApplication)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMembershipRole
Public methodGetPermissionSet(Guid) Obsolete.
Gets a permission set for the application
Public methodGetPermissionSet(Guid, Guid) Obsolete.
Gets a permission set for the application
Public methodGetProfileAttributeById
Gets profile attribute by roleProfileAttributeId.
Public methodGetProfileAttributeByName
Gets profile attribute by attribute name.
Public methodGetProfileAttributeDefinition
Gets profile attribute Definition by Datatype
Public methodGetRecentRoles
Public methodGetRole(Guid) Obsolete.
Gets a role for the application.
Public methodGetRole(String)
Gets a roles for the application.
Public methodGetRole(Guid, Guid) Obsolete.
Gets a role for the application.
Public methodGetRolesByPermissionSet(VGPermissionSet)
Gets roles to which this particular permissionset has been assigned. This method does not contain roles of sub permissionsets.
Public methodGetRolesByPermissionSet(VGPermissionSet, Boolean)
Gets roles to which this particular permissionset has been assigned. This method can contain roles of sub permissionset also, depending on parameter - isIncludeRolesForSubPermissionSet
Public methodGetRolesForUser
Gets a list of the roles that the currently logged-on user is in.
Public methodGetRolesForUser(NTAccount) Obsolete.
Gets a list of the roles that a Windows account is in.
Public methodGetRolesForUser(String)
Gets a list of the roles that a Visual Guard user is in.
Public methodGetRolesForUser(VGMembershipUser)
Get List of VGRoles granted directly to the User (excluding roles coming from groups)
Public methodGetRolesForUser(String, VGAuthenticationMode)
Gets a list of the roles that a user is in.
Public methodGetRolesForUserById(String) Obsolete.
Gets a list of the roles that a user is in.
Public methodGetRolesForUserById(String, Guid)
Gets a list of the roles that a user is in.
Public methodGetSharedRole(Guid) Obsolete.
Gets a role for the application.
Public methodGetSharedRole(Guid, Guid) Obsolete.
Gets a role for the application.
Public methodGetSpecialRolesCollectionForUser
Public methodGetSpecialRolesCollectionForUserById Obsolete.
Gets a list of speciale roles that a user is in.
Public methodGetSpecialRolesForUser(NTAccount) Obsolete.
Gets a list of speciales roles that a Windows account is in.
Public methodGetSpecialRolesForUser(String) Obsolete.
Gets a list speciales roles that a Visual Guard user is in.
Public methodGetSpecialRolesForUser(String, VGAuthenticationMode) Obsolete.
Gets a list of speciales roles that a user is in.
Public methodGetSpecialRolesForUserById Obsolete.
Gets a list of speciale roles that a user is in.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUsersInRole(Guid) Obsolete.
Gets a list of users in the specified role.
Public methodGetUsersInRole(String)
Gets a list of users in the specified role.
Public methodGetUsersInRole(VGRole)
Public methodGetUsersInRole(VGRole, Int32, Int32, Int32)
Public methodGetUsersInRole(VGRole, Int32, Int32, VGPrincipalSortByColumnType, VGSortOrderType, Int32)
Public methodGrantPermissionToRole
This method grants permission to role.
Public methodIsUserInRole(Guid)
Gets a value indicating whether the currently logged-on user is in the specified role.
Public methodIsUserInRole(String)
Gets a value indicating whether the currently logged-on user is in the specified role.
Public methodIsUserInRole(VGRole)
Public methodIsUserInRole(NTAccount, String)
Gets a value indicating whether the specified user is in the specified role.
Public methodIsUserInRole(String, String)
Gets a value indicating whether the specified user is in the specified role.
Public methodIsUserInRole(VGMembershipUser, VGRole)
Public methodIsUserInRoleById Obsolete.
Gets a value indicating whether the specified user is in the specified role.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRefresh
Public methodRemoveUserFromRole(NTAccount, String) Obsolete.
Removes the specified user from the specified role.
Public methodRemoveUserFromRole(String, String) Obsolete.
Removes the specified user from the specified role.
Public methodRemoveUserFromRole(VGMembershipUser, VGRole)
Revoke role to user
Public methodRemoveUserFromRole(NTAccount, String, Guid) Obsolete.
Removes the specified user from the specified role.
Public methodRemoveUserFromRole(String, String, Guid) Obsolete.
Removes the specified user from the specified role.
Public methodRemoveUserFromRoleById(String, Guid) Obsolete.
Removes a list of users specified specified by repository id from the specified role.
Public methodRemoveUserFromRoleById(String, Guid, Guid) Obsolete.
Removes a list of users specified specified by repository id from the specified role.
Public methodRemoveUserFromRoles(NTAccount, String) Obsolete.
Removes the specified user from the specified list of roles.
Public methodRemoveUserFromRoles(String, String) Obsolete.
Removes the specified user from the specified roles.
Public methodRemoveUserFromRoles(NTAccount, String, Guid) Obsolete.
Removes the specified user from the specified list of roles.
Public methodRemoveUserFromRoles(String, String, Guid) Obsolete.
Removes the specified user from the specified roles.
Public methodRemoveUserFromRolesById(String, Guid) Obsolete.
Removes the specified user from the specified roles.
Public methodRemoveUserFromRolesById(String, Guid, Guid) Obsolete.
Removes the specified user from the specified roles.
Public methodRemoveUsersFromRole(NTAccount, String) Obsolete.
Removes the specified user from the specified list of roles.
Public methodRemoveUsersFromRole(String, String) Obsolete.
Removes the specified users from the specified role.
Public methodRemoveUsersFromRole(NTAccount, String, Guid) Obsolete.
Removes the specified user from the specified list of roles.
Public methodRemoveUsersFromRole(String, String, Guid) Obsolete.
Removes the specified users from the specified role.
Public methodRemoveUsersFromRoleById(String, Guid) Obsolete.
Removes a list of users specified specified by repository id from the specified role.
Public methodRemoveUsersFromRoleById(String, Guid, Guid) Obsolete.
Removes a list of users specified specified by repository id from the specified role.
Public methodRemoveUsersFromRoles(NTAccount, String) Obsolete.
Removes the specified Windows accounts from the specified roles.
Public methodRemoveUsersFromRoles(String, String) Obsolete.
Removes the specified user names from the specified roles.
Public methodRemoveUsersFromRoles(ICollectionVGMembershipUser, ICollectionVGRole)
Revoke roles to users
Public methodRemoveUsersFromRoles(NTAccount, String, Guid) Obsolete.
Removes the specified Windows accounts from the specified roles.
Public methodRemoveUsersFromRoles(String, String, Guid) Obsolete.
Removes the specified user names from the specified roles.
Public methodRemoveUsersFromRolesById(NTAccount, Guid) Obsolete.
Removes the specified Windows accounts from the specified roles.
Public methodRemoveUsersFromRolesById(String, Guid) Obsolete.
Removes a list of users specified by repository ids from the specified roles.
Public methodRemoveUsersFromRolesById(String, String) Obsolete.
Removes the specified user names from the specified roles.
Public methodRemoveUsersFromRolesById(NTAccount, Guid, Guid) Obsolete.
Removes the specified Windows accounts from the specified roles.
Public methodRemoveUsersFromRolesById(String, Guid, Guid) Obsolete.
Removes a list of users specified by repository ids from the specified roles.
Public methodRemoveUsersFromRolesById(String, String, Guid) Obsolete.
Removes the specified user names from the specified roles.
Public methodRemoveUserToFromRoles
Revoke roles to user
Public methodRevokePermissionFromRole
This method revokes permission from role.
Public methodRoleExists(Guid) Obsolete.
Public methodRoleExists(String)
Checks whether a role exists in the current repository for the application
Public methodSharedRoleExists
Checks whether a shared role exists in the current repository
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateProfileAttribute
Updates profile attribute for role.
Public methodUpdateProfileAttributeViewOrder
Updates profileAttribute ViewOrder
Public methodUpdateRole
Updates the repository with the information for the specified role.
Top
Fields
Remarks
Visual Guard role management enables you to manage authorization for your application.

This class can be used to interact with VGMembership and allows to list, create and update roles

See Also