DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Public Attributes | Properties | List of all members
Deveel.Data.Security.UserProtocolAccess Class Reference

Contains the information about the access control to a user from a defined connection protocol to the database. More...

Public Member Functions

 UserProtocolAccess (string userName, string protocol, AccessPrivilege privilege)
 Constructs a user access control that matches all the addresses for the given protocol. More...
 
 UserProtocolAccess (string userName, string protocol, string address, AccessPrivilege privilege)
 Constructs a user access control that matches the address for the given protocol. More...
 

Public Attributes

const string AnyAddress = "%"
 Identifies an address as matching all possible ranges for the connection protocol. More...
 

Properties

string UserName [get, private set]
 Gets the name of the user that holds the control. More...
 
string Protocol [get, private set]
 Gets the connection protocol on which to apply the access control. More...
 
string Address [get, private set]
 Gets the address on which to apply the access control for the user. More...
 
AccessPrivilege Privilege [get, private set]
 Gets the kind of access privilege for the access control of the user. More...
 
bool IsForAnyAddress [get]
 Gets a boolean value that indicates if this access control will be applied to all ranges of address of a protocol. More...
 

Detailed Description

Contains the information about the access control to a user from a defined connection protocol to the database.

Definition at line 24 of file UserProtocolAccess.cs.

Constructor & Destructor Documentation

Deveel.Data.Security.UserProtocolAccess.UserProtocolAccess ( string  userName,
string  protocol,
AccessPrivilege  privilege 
)
inline

Constructs a user access control that matches all the addresses for the given protocol.

Parameters
userNameThe name of the user holding the control.
protocolThe name of the protocol to control access to the database for a given user.
privilegeThe kind of access to provide to the user for the protocol given.
See also
AnyAddress

Definition at line 41 of file UserProtocolAccess.cs.

42  : this(userName, protocol, AnyAddress, privilege) {
43  }
const string AnyAddress
Identifies an address as matching all possible ranges for the connection protocol.
Deveel.Data.Security.UserProtocolAccess.UserProtocolAccess ( string  userName,
string  protocol,
string  address,
AccessPrivilege  privilege 
)
inline

Constructs a user access control that matches the address for the given protocol.

Parameters
userNameThe name of the user holding the control.
protocolThe name of the protocol to control access to the database for a given user.
addressThe specific address to which to apply this control.
privilegeThe kind of access to provide to the user for the protocol given.
See also
AnyAddress

Definition at line 55 of file UserProtocolAccess.cs.

55  {
56  if (String.IsNullOrEmpty(userName))
57  throw new ArgumentNullException("userName");
58  if (String.IsNullOrEmpty(protocol))
59  throw new ArgumentNullException("protocol");
60 
61  UserName = userName;
62  Protocol = protocol;
63  Address = address;
64  Privilege = privilege;
65  }
A long string in the system.
string UserName
Gets the name of the user that holds the control.
string Address
Gets the address on which to apply the access control for the user.
string Protocol
Gets the connection protocol on which to apply the access control.
AccessPrivilege Privilege
Gets the kind of access privilege for the access control of the user.

Member Data Documentation

const string Deveel.Data.Security.UserProtocolAccess.AnyAddress = "%"

Identifies an address as matching all possible ranges for the connection protocol.

Definition at line 29 of file UserProtocolAccess.cs.

Property Documentation

string Deveel.Data.Security.UserProtocolAccess.Address
getprivate set

Gets the address on which to apply the access control for the user.

Definition at line 80 of file UserProtocolAccess.cs.

bool Deveel.Data.Security.UserProtocolAccess.IsForAnyAddress
get

Gets a boolean value that indicates if this access control will be applied to all ranges of address of a protocol.

See also
AnyAddress

Definition at line 92 of file UserProtocolAccess.cs.

AccessPrivilege Deveel.Data.Security.UserProtocolAccess.Privilege
getprivate set

Gets the kind of access privilege for the access control of the user.

Definition at line 85 of file UserProtocolAccess.cs.

string Deveel.Data.Security.UserProtocolAccess.Protocol
getprivate set

Gets the connection protocol on which to apply the access control.

Definition at line 75 of file UserProtocolAccess.cs.

string Deveel.Data.Security.UserProtocolAccess.UserName
getprivate set

Gets the name of the user that holds the control.

Definition at line 70 of file UserProtocolAccess.cs.


The documentation for this class was generated from the following file: