DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Public Attributes | Private Attributes | List of all members
Deveel.Data.Security.PrivilegeManager.GrantCacheKey Class Reference
Inheritance diagram for Deveel.Data.Security.PrivilegeManager.GrantCacheKey:

Public Member Functions

 GrantCacheKey (string userName, DbObjectType objectType, string objectName, bool withOption, bool withPublic)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
bool Equals (GrantCacheKey other)
 

Public Attributes

readonly string userName
 

Private Attributes

readonly DbObjectType objectType
 
readonly string objectName
 
readonly int options
 

Detailed Description

Definition at line 343 of file PrivilegeManager.cs.

Constructor & Destructor Documentation

Deveel.Data.Security.PrivilegeManager.GrantCacheKey.GrantCacheKey ( string  userName,
DbObjectType  objectType,
string  objectName,
bool  withOption,
bool  withPublic 
)
inline

Definition at line 349 of file PrivilegeManager.cs.

349  {
350  this.userName = userName;
351  this.objectType = objectType;
352  this.objectName = objectName;
353 
354  options = 0;
355  if (withOption)
356  options++;
357  if (withPublic)
358  options++;
359  }

Member Function Documentation

override bool Deveel.Data.Security.PrivilegeManager.GrantCacheKey.Equals ( object  obj)
inline

Definition at line 361 of file PrivilegeManager.cs.

361  {
362  var other = obj as GrantCacheKey;
363  return Equals(other);
364  }
GrantCacheKey(string userName, DbObjectType objectType, string objectName, bool withOption, bool withPublic)
bool Deveel.Data.Security.PrivilegeManager.GrantCacheKey.Equals ( GrantCacheKey  other)
inline

Definition at line 370 of file PrivilegeManager.cs.

370  {
371  if (other == null)
372  return false;
373 
374  if (!String.Equals(userName, other.userName, StringComparison.OrdinalIgnoreCase))
375  return false;
376 
377  if (objectType != other.objectType)
378  return false;
379 
380  if (!String.Equals(objectName, other.objectName, StringComparison.OrdinalIgnoreCase))
381  return false;
382 
383  if (options != other.options)
384  return false;
385 
386  return true;
387  }
A long string in the system.
override int Deveel.Data.Security.PrivilegeManager.GrantCacheKey.GetHashCode ( )
inline

Definition at line 366 of file PrivilegeManager.cs.

Member Data Documentation

readonly string Deveel.Data.Security.PrivilegeManager.GrantCacheKey.objectName
private

Definition at line 346 of file PrivilegeManager.cs.

readonly DbObjectType Deveel.Data.Security.PrivilegeManager.GrantCacheKey.objectType
private

Definition at line 345 of file PrivilegeManager.cs.

readonly int Deveel.Data.Security.PrivilegeManager.GrantCacheKey.options
private

Definition at line 347 of file PrivilegeManager.cs.

readonly string Deveel.Data.Security.PrivilegeManager.GrantCacheKey.userName

Definition at line 344 of file PrivilegeManager.cs.


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