Solstice::AuthZ - For making authorization queries about particular actions.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::AuthZ - For making authorization queries about particular actions.

SYNOPSIS

Top

  use Solstice::AuthZ;

  my $authz = Solstice::AuthZ->new();
  my $bool  = $authz->_canPerformAction(app_id, 'action_string');
  my $bool  = $authz->_hasNoRoles();

DESCRIPTION

Top

A centralized interface for application permissions. See https://satchmo.oep.washington.edu/wiki/wiki.pl?AuthZ for more details.

Superclass

Solstice::Service

Export

No symbols exported.

Methods

new()

Constructor.

setIsOwner()

Tells the AuthZ object that the current user is the owner of the object, and all checks should return true.

Private Methods

_init($authz_id)

Load the permissions the currently logged in used has for the given authz_id.

_setHasNoRoles(BOOL)

Sets a boolean specifying whether this person has no roles. Defaults to false.

hasNoRoles()

Returns a bool specifying whether or not the user has no roles.

_setCanPerformAction(app_id, 'action_string')

Sets the given action in the given app to be an allowed action.

This and _canPerformAction can probably implemented a little less crudely...

_canPerformAction(app_id, 'action_string')

Returns TRUE or FALSE, depending on what the permission cache created in _init set for the given app_id and action_string.

Modules Used

Solstice::Database, Solstice::Service, Solstice::UserService, Solstice::Group.

AUTHOR

Top

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: 3364 $

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.