Show / Hide Table of Contents

Class UserGroup

Represents a Group of Users and the permissions they have to perform actions.
Inheritance
System.Object
UserGroup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Configuration.Permissions
Assembly: dotNetRDF.dll
Syntax
public class UserGroup

Constructors

| Improve this Doc View Source

UserGroup()

Creates a new User Group.
Declaration
public UserGroup()
| Improve this Doc View Source

UserGroup(Boolean)

Creates a new User Group which may allow guests.
Declaration
public UserGroup(bool allowGuest)
Parameters
Type Name Description
System.Boolean allowGuest Are guests allowed?.
Remarks
If guests are allowed then this Groups permissions apply to unauthenticated users.

Properties

| Improve this Doc View Source

AllowGuests

Gets/Sets whether Guests are allowed.
Declaration
public bool AllowGuests { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

PermissionModel

Gets/Sets the in-use Permission Model.
Declaration
public PermissionModel PermissionModel { get; set; }
Property Value
Type Description
PermissionModel

Methods

| Improve this Doc View Source

AddAllowedAction(IPermission)

Adds an allow action permission to the Group.
Declaration
public void AddAllowedAction(IPermission permission)
Parameters
Type Name Description
IPermission permission Permission.
| Improve this Doc View Source

AddDeniedAction(IPermission)

Adds a deny action permission to the Group.
Declaration
public void AddDeniedAction(IPermission permission)
Parameters
Type Name Description
IPermission permission Permission.
| Improve this Doc View Source

AddUser(NetworkCredential)

Adds a User to the Group.
Declaration
public void AddUser(NetworkCredential credentials)
Parameters
Type Name Description
System.Net.NetworkCredential credentials User Credentials.
| Improve this Doc View Source

HasMember(String)

Returns whether the Group has a member with the given username.
Declaration
public bool HasMember(string username)
Parameters
Type Name Description
System.String username Username.
Returns
Type Description
System.Boolean
| Improve this Doc View Source

HasMember(String, String)

Returns whether the Group has a member with the given credentials.
Declaration
public bool HasMember(string username, string password)
Parameters
Type Name Description
System.String username Username.
System.String password Password.
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsActionPermitted(String)

Gets whether the Group permits the action.
Declaration
public bool IsActionPermitted(string action)
Parameters
Type Name Description
System.String action Action.
Returns
Type Description
System.Boolean

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • UserGroup()
    • UserGroup(Boolean)
  • Properties
    • AllowGuests
    • PermissionModel
  • Methods
    • AddAllowedAction(IPermission)
    • AddDeniedAction(IPermission)
    • AddUser(NetworkCredential)
    • HasMember(String)
    • HasMember(String, String)
    • IsActionPermitted(String)
  • Extension Methods
Back to top Generated by DocFX