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

The entity that holds the access control granted to an user or a group to a specific object in a database. More...

Public Member Functions

 Grant (Privileges privileges, ObjectName objectName, DbObjectType objectType, string granterName)
 Constructs a new grant for an user on the given object, including the privileges of the grant. More...
 
 Grant (Privileges privileges, ObjectName objectName, DbObjectType objectType, string granterName, bool withOption)
 Constructs a new grant for an user on the given object, including the privileges of the grant. More...
 

Properties

string GranterName [get, private set]
 Gets the name of the user that provided this grant. More...
 
bool WithOption [get, private set]
 Gets a value indicating whether the grants include an option to grant to other users. More...
 
ObjectName ObjectName [get, private set]
 Gets the fully qualified name of the object on which this grant provides access privileges to the user. More...
 
DbObjectType ObjectType [get, private set]
 Gets the type of the object on which to provide access privileges to the user. More...
 
Privileges Privileges [get, private set]
 Gets the access privileges granted to the user. More...
 

Detailed Description

The entity that holds the access control granted to an user or a group to a specific object in a database.

Definition at line 26 of file Grant.cs.

Constructor & Destructor Documentation

Deveel.Data.Security.Grant.Grant ( Privileges  privileges,
ObjectName  objectName,
DbObjectType  objectType,
string  granterName 
)
inline

Constructs a new grant for an user on the given object, including the privileges of the grant.

Parameters
privilegesThe access privileges granted to the user on the given object.
objectNameThe fully qualified name of the object on which to grant the given access privileges to the user.
objectTypeThe type of the object.
granterNameThe name of the user that granted.

Definition at line 37 of file Grant.cs.

38  : this(privileges, objectName, objectType, granterName, false) {
39  }
Deveel.Data.Security.Grant.Grant ( Privileges  privileges,
ObjectName  objectName,
DbObjectType  objectType,
string  granterName,
bool  withOption 
)
inline

Constructs a new grant for an user on the given object, including the privileges of the grant.

Parameters
privilegesThe access privileges granted to the user on the given object.
objectNameThe fully qualified name of the object on which to grant the given access privileges to the user.
objectTypeThe type of the object.
granterNameThe name of the user that granted.
withOption

Definition at line 52 of file Grant.cs.

52  {
53  if (String.IsNullOrEmpty(granterName))
54  throw new ArgumentNullException("granterName");
55  if (objectName == null)
56  throw new ArgumentNullException("objectName");
57 
58  Privileges = privileges;
59  ObjectName = objectName;
60  ObjectType = objectType;
61  GranterName = granterName;
62  WithOption = withOption;
63  }
A long string in the system.
Privileges Privileges
Gets the access privileges granted to the user.
Definition: Grant.cs:102
Describes the name of an object within a database.
Definition: ObjectName.cs:44
string GranterName
Gets the name of the user that provided this grant.
Definition: Grant.cs:68
bool WithOption
Gets a value indicating whether the grants include an option to grant to other users.
Definition: Grant.cs:77
DbObjectType ObjectType
Gets the type of the object on which to provide access privileges to the user.
Definition: Grant.cs:97

Property Documentation

string Deveel.Data.Security.Grant.GranterName
getprivate set

Gets the name of the user that provided this grant.

Definition at line 68 of file Grant.cs.

ObjectName Deveel.Data.Security.Grant.ObjectName
getprivate set

Gets the fully qualified name of the object on which this grant provides access privileges to the user.

The name of the object respects the wildcard rule, that means if the object own name is a wild-card (*), this grant will provide access to all objects in the containing schema for the type given.

Definition at line 91 of file Grant.cs.

DbObjectType Deveel.Data.Security.Grant.ObjectType
getprivate set

Gets the type of the object on which to provide access privileges to the user.

Definition at line 97 of file Grant.cs.

Privileges Deveel.Data.Security.Grant.Privileges
getprivate set

Gets the access privileges granted to the user.

Definition at line 102 of file Grant.cs.

bool Deveel.Data.Security.Grant.WithOption
getprivate set

Gets a value indicating whether the grants include an option to grant to other users.

true if [with option]; otherwise, false.

Definition at line 77 of file Grant.cs.


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