
Public Member Functions | |
| AccessControl (Collection collection) | |
| Constructor for the object. | |
| Node[] | ChangeOwner (Member newOwner, Access.Rights oldOwnerRight) |
| Makes the specified user owner of the collection that this object protects. | |
| Member | GetCurrentMember (Store store, string domainID, bool createMember) |
| Gets the Member object that represents the currently executing security context. | |
| Member | GetMember (string userID) |
| Gets the specified Member object. | |
| void | Impersonate (Member member) |
| Impersonates the specified Member object. | |
| bool | IsAccessAllowed (Member member, Access.Rights desiredRights) |
| Determines if the current user has the desired access rights. | |
| void | Revert () |
| Reverts back to the previous impersonating identity. | |
Properties | |
| Member | ImpersonationMember [get] |
| Gets the Member object of the currently impersonating user. | |
| bool | IsImpersonating [get] |
| Gets whether there is a user being impersonated. | |
| Simias::Storage::AccessControl::AccessControl | ( | Collection | collection | ) | [inline] |
| Node [] Simias::Storage::AccessControl::ChangeOwner | ( | Member | newOwner, | |
| Access.Rights | oldOwnerRight | |||
| ) | [inline] |
Makes the specified user owner of the collection that this object protects.
| newOwner | Member object that is to become the new owner. | |
| oldOwnerRight | The rights that the old owner should be assigned. |
| Member Simias::Storage::AccessControl::GetCurrentMember | ( | Store | store, | |
| string | domainID, | |||
| bool | createMember | |||
| ) | [inline] |
Gets the Member object that represents the currently executing security context.
| store | Store object. | |
| domainID | The domain used to map the current user to. | |
| createMember | If true, creates Member object if it does not exist. |
| Member Simias::Storage::AccessControl::GetMember | ( | string | userID | ) | [inline] |
| void Simias::Storage::AccessControl::Impersonate | ( | Member | member | ) | [inline] |
| bool Simias::Storage::AccessControl::IsAccessAllowed | ( | Member | member, | |
| Access.Rights | desiredRights | |||
| ) | [inline] |
Determines if the current user has the desired access rights.
| member | Member object to check access for. | |
| desiredRights | Desired rights. |
| void Simias::Storage::AccessControl::Revert | ( | ) | [inline] |
Reverts back to the previous impersonating identity.
Member Simias::Storage::AccessControl::ImpersonationMember [get] |
Gets the Member object of the currently impersonating user.
bool Simias::Storage::AccessControl::IsImpersonating [get] |
Gets whether there is a user being impersonated.
1.5.6