C# Class Rock.Security.GlobalDefault

A generic ISecured entity
Inheritance: ISecured
Mostrar archivo Open project: NewSpring/Rock

Public Methods

Method Description
IsAllowedByDefault ( string action ) : bool

If a user or role is not specifically allowed or denied to perform the selected action, return true if they should be allowed anyway or false if not.

IsAuthorized ( string action, Rock person ) : bool

Return true if the user is authorized to perform the selected action on this object.

IsPrivate ( string action, Person person ) : bool

Determines whether the specified action is private (Only the current user has access).

MakePrivate ( string action, Person person, RockContext rockContext = null ) : void

Makes the action on the current entity private (Only the current user will have access).

MakeUnPrivate ( string action, Person person, RockContext rockContext = null ) : void

If action on the current entity is private, removes security that made it private.

Read ( int id ) : GlobalDefault

Reads the specified id.

ToString ( ) : string

Just return empty string

Method Details

IsAllowedByDefault() public method

If a user or role is not specifically allowed or denied to perform the selected action, return true if they should be allowed anyway or false if not.
public IsAllowedByDefault ( string action ) : bool
action string The action.
return bool

IsAuthorized() public method

Return true if the user is authorized to perform the selected action on this object.
public IsAuthorized ( string action, Rock person ) : bool
action string The action.
person Rock The person.
return bool

IsPrivate() public method

Determines whether the specified action is private (Only the current user has access).
public IsPrivate ( string action, Person person ) : bool
action string The action.
person Person The person.
return bool

MakePrivate() public method

Makes the action on the current entity private (Only the current user will have access).
public MakePrivate ( string action, Person person, RockContext rockContext = null ) : void
action string The action.
person Person The person.
rockContext Rock.Data.RockContext The rock context.
return void

MakeUnPrivate() public method

If action on the current entity is private, removes security that made it private.
public MakeUnPrivate ( string action, Person person, RockContext rockContext = null ) : void
action string The action.
person Person The person.
rockContext Rock.Data.RockContext The rock context.
return void

Read() public static method

Reads the specified id.
public static Read ( int id ) : GlobalDefault
id int The id.
return GlobalDefault

ToString() public method

Just return empty string
public ToString ( ) : string
return string