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... | |
Add object level rules
Definition at line 21 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles allowed to create a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 74 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles allowed to delete a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 96 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles allowed to edit (save) a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 52 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles allowed to get (fetch) a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 30 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Gets a value indicating whether the current user is allowed to create an instance of the business object.
objectType | Type of business object. |
Definition at line 122 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Gets a value indicating whether the current user is allowed to delete an instance of the business object.
objectType | Type of business object. |
Definition at line 155 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Gets a value indicating whether the current user is allowed to edit (save) an instance of the business object.
objectType | Type of business object. |
Definition at line 144 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Gets a value indicating whether the current user is allowed to get (fetch) an instance of the business object.
objectType | Type of business object. |
Definition at line 133 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles not allowed to create a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 85 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles not allowed to delete a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 107 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles not allowed to edit (save) a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 63 of file Csla.Validation.Shared/AuthorizationRules.cs.
|
static |
Specify the roles not allowed to get (fetch) a given type of business object.
objectType | Type of business object. |
roles | List of roles. |
Definition at line 41 of file Csla.Validation.Shared/AuthorizationRules.cs.