Solstice::AuthZManager - For modifying the roles available within the Solstice framework.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::AuthZManager - For modifying the roles available within the Solstice framework.

SYNOPSIS

Top

  use Solstice::AuthZManager;

  my $authz_manager = Solstice::AuthZManager->new($auth_id);
  $authz_manager->addRole($group, $role);
  $authz_manager->removeRole($group, $role);
  $authz_manager->removeGroup($group);
  my $groups = $authz_manager->getGroups();
  my $bool = $authz_manager->groupHasRole($group, $role);
  $authz_manager->store();

DESCRIPTION

Top

An interface for managing the connections betweens groups and roles.

Superclass

Model (Model)

Export

No symbols exported.

Methods

new()

Constructor.

addRole($group, $role)

Connects a group and a role together.

removeRole($group, $role)

Removes the association between a group and a role.

groupHasRole($group, $role)

Returns true is the group and role are linked.

groupsWithRole($role)

Returns an array ref of all groups with the given role.

removeGroup($group)

Removes a group, and all of it's links to roles.

getGroups()

Returns an array ref of all of the groups that have (or potentially have) roles. To remove a group from this list, you must call removeGroup, rather than just removing all Roles from the group.

hasGroup($group)

Returns TRUE if $group exists, FALSE otherwise

getObjectAuthIds(@group_ids)

Returns a reference to an array of object auth IDs which have permissions involving the passed array of group IDs.

Private Methods

_addGroup($group)

Adds the group to the groups we are tracking.

Modules Used

Solstice::AuthZ::Role, Solstice::Group, Model (Model).

AUTHOR

Top

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

VERSION

Top

$Revision: 3395 $

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.