C# Класс Rock.Security.GlobalDefault

A generic ISecured entity
Наследование: ISecured
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

IsAllowedByDefault() публичный Метод

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.
Результат bool

IsAuthorized() публичный Метод

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.
Результат bool

IsPrivate() публичный Метод

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.
Результат bool

MakePrivate() публичный Метод

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.
Результат void

MakeUnPrivate() публичный Метод

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.
Результат void

Read() публичный статический Метод

Reads the specified id.
public static Read ( int id ) : GlobalDefault
id int The id.
Результат GlobalDefault

ToString() публичный Метод

Just return empty string
public ToString ( ) : string
Результат string