• ActiveWAFL 2727 API Reference Documentation
  • Search
  • Version

DblEj \ AccessControl

The AccessControl namespace.

Useful for building an Access Control Layer. Contains classes related to resources, actors, and resource permissions. Actors can "act" on Resources as long as they have the proper permissions.

 
DblEj\AccessControl

Classes

Actor Abstract
ActorTrait
AnyGroup

A generic resource that represents any user group.

AnyPerson

A generic resource that represents any person.

InvalidResourceException

Thrown when a resource that doesn't exist or is otherwise invalid is referenced.

Resource

A Resource contains information about anything that can be acted on by an Actor. So, basically, anything can be treated as a Resource.

Resources are used in DblEj mainly for access control. Actors act on Resources. An application can define ResourcePermisssions which will restrict non-permitted Actors from ccting on a particular Resource.

The Resource class contains a reference to the actual resource using the ResourceId and ResourceType properties.

ResourceCollection

A collection of Resources.

ResourceContainer

Encapsulates a collection of Resources and fires events when Resources are added/removed to/from the collection.

ResourcePermission

Defines the permissions that a particular Actor has on a particular Resource.

ResourcePermissionCollection

A collection of ResourcePermissions

ResourcePermissionContainer

Encapsulates a collection of ResourcePermissions and exposes methods for checking the collection for certain permissions.

RestrictedResource

Interfaces

IActor

Provides methods to make a class capable of acting on a Resource.

IResource

Provides a standard interface for Resources.

IResourceContainer

An interface that exposes methods useful for implementing objects that encapsulate multiple resources.

IResourcePermission
IResourcePermissionContainer

Provides methods useful for implementing objects that encapsulate multiple ResourcePermissions.

IRestrictedResource

Provides a standard interface for Resources.

Exceptions

ResourceAccessDeniedException

Thrown when an Actor attempts to access a Resource in a way that it is not permitted for that Actor.

Child Namespaces

There are no namespaces beneath AccessControl