CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Security.AuthorizationRules Class Reference

Add object level rules More...

Static Public Member Functions

static void AllowGet (Type objectType, params string[] roles)
 Specify the roles allowed to get (fetch) a given type of business object. More...
 
static void DenyGet (Type objectType, params string[] roles)
 Specify the roles not allowed to get (fetch) a given type of business object. More...
 
static void AllowEdit (Type objectType, params string[] roles)
 Specify the roles allowed to edit (save) a given type of business object. More...
 
static void DenyEdit (Type objectType, params string[] roles)
 Specify the roles not allowed to edit (save) a given type of business object. More...
 
static void AllowCreate (Type objectType, params string[] roles)
 Specify the roles allowed to create a given type of business object. More...
 
static void DenyCreate (Type objectType, params string[] roles)
 Specify the roles not allowed to create a given type of business object. More...
 
static void AllowDelete (Type objectType, params string[] roles)
 Specify the roles allowed to delete a given type of business object. More...
 
static void DenyDelete (Type objectType, params string[] roles)
 Specify the roles not allowed to delete a given type of business object. More...
 
static bool CanCreateObject (Type objectType)
 Gets a value indicating whether the current user is allowed to create an instance of the business object. More...
 
static bool CanGetObject (Type objectType)
 Gets a value indicating whether the current user is allowed to get (fetch) an instance of the business object. More...
 
static bool CanEditObject (Type objectType)
 Gets a value indicating whether the current user is allowed to edit (save) an instance of the business object. More...
 
static bool CanDeleteObject (Type objectType)
 Gets a value indicating whether the current user is allowed to delete an instance of the business object. More...
 

Detailed Description

Add object level rules

Definition at line 21 of file Csla.Validation.Shared/AuthorizationRules.cs.

Member Function Documentation

◆ AllowCreate()

static void Csla.Security.AuthorizationRules.AllowCreate ( Type  objectType,
params string[]  roles 
)
static

Specify the roles allowed to create a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 74 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ AllowDelete()

static void Csla.Security.AuthorizationRules.AllowDelete ( Type  objectType,
params string[]  roles 
)
static

Specify the roles allowed to delete a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 96 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ AllowEdit()

static void Csla.Security.AuthorizationRules.AllowEdit ( Type  objectType,
params string[]  roles 
)
static

Specify the roles allowed to edit (save) a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 52 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ AllowGet()

static void Csla.Security.AuthorizationRules.AllowGet ( Type  objectType,
params string[]  roles 
)
static

Specify the roles allowed to get (fetch) a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 30 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ CanCreateObject()

static bool Csla.Security.AuthorizationRules.CanCreateObject ( Type  objectType)
static

Gets a value indicating whether the current user is allowed to create an instance of the business object.

Parameters
objectTypeType of business object.

Definition at line 122 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ CanDeleteObject()

static bool Csla.Security.AuthorizationRules.CanDeleteObject ( Type  objectType)
static

Gets a value indicating whether the current user is allowed to delete an instance of the business object.

Parameters
objectTypeType of business object.

Definition at line 155 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ CanEditObject()

static bool Csla.Security.AuthorizationRules.CanEditObject ( Type  objectType)
static

Gets a value indicating whether the current user is allowed to edit (save) an instance of the business object.

Parameters
objectTypeType of business object.

Definition at line 144 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ CanGetObject()

static bool Csla.Security.AuthorizationRules.CanGetObject ( Type  objectType)
static

Gets a value indicating whether the current user is allowed to get (fetch) an instance of the business object.

Parameters
objectTypeType of business object.

Definition at line 133 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ DenyCreate()

static void Csla.Security.AuthorizationRules.DenyCreate ( Type  objectType,
params string[]  roles 
)
static

Specify the roles not allowed to create a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 85 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ DenyDelete()

static void Csla.Security.AuthorizationRules.DenyDelete ( Type  objectType,
params string[]  roles 
)
static

Specify the roles not allowed to delete a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 107 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ DenyEdit()

static void Csla.Security.AuthorizationRules.DenyEdit ( Type  objectType,
params string[]  roles 
)
static

Specify the roles not allowed to edit (save) a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 63 of file Csla.Validation.Shared/AuthorizationRules.cs.

◆ DenyGet()

static void Csla.Security.AuthorizationRules.DenyGet ( Type  objectType,
params string[]  roles 
)
static

Specify the roles not allowed to get (fetch) a given type of business object.

Parameters
objectTypeType of business object.
rolesList of roles.

Definition at line 41 of file Csla.Validation.Shared/AuthorizationRules.cs.