Class UserGroup
Represents a Group of Users and the permissions they have to perform actions.
Inherited Members
Namespace: VDS.RDF.Configuration.Permissions
Assembly: dotNetRdf.dll
Syntax
public class UserGroup
Constructors
| Edit this page View SourceUserGroup()
Creates a new User Group.
Declaration
public UserGroup()
UserGroup(bool)
Creates a new User Group which may allow guests.
Declaration
public UserGroup(bool allowGuest)
Parameters
Type | Name | Description |
---|---|---|
bool | allowGuest | Are guests allowed?. |
Remarks
If guests are allowed then this Groups permissions apply to unauthenticated users.
Properties
| Edit this page View SourceAllowGuests
Gets/Sets whether Guests are allowed.
Declaration
public bool AllowGuests { get; set; }
Property Value
Type | Description |
---|---|
bool |
PermissionModel
Gets/Sets the in-use Permission Model.
Declaration
public PermissionModel PermissionModel { get; set; }
Property Value
Type | Description |
---|---|
Permission |
Methods
| Edit this page View SourceAddAllowedAction(IPermission)
Adds an allow action permission to the Group.
Declaration
public void AddAllowedAction(IPermission permission)
Parameters
Type | Name | Description |
---|---|---|
IPermission | permission | Permission. |
AddDeniedAction(IPermission)
Adds a deny action permission to the Group.
Declaration
public void AddDeniedAction(IPermission permission)
Parameters
Type | Name | Description |
---|---|---|
IPermission | permission | Permission. |
AddUser(NetworkCredential)
Adds a User to the Group.
Declaration
public void AddUser(NetworkCredential credentials)
Parameters
Type | Name | Description |
---|---|---|
Network |
credentials | User Credentials. |
HasMember(string)
Returns whether the Group has a member with the given username.
Declaration
public bool HasMember(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | Username. |
Returns
Type | Description |
---|---|
bool |
HasMember(string, string)
Returns whether the Group has a member with the given credentials.
Declaration
public bool HasMember(string username, string password)
Parameters
Returns
Type | Description |
---|---|
bool |
IsActionPermitted(string)
Gets whether the Group permits the action.
Declaration
public bool IsActionPermitted(string action)
Parameters
Type | Name | Description |
---|---|---|
string | action | Action. |
Returns
Type | Description |
---|---|
bool |