Solstice::AuthZManager - For modifying the roles available within the Solstice framework.
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();
An interface for managing the connections betweens groups and roles.
Model
No symbols exported.
Constructor.
Connects a group and a role together.
Removes the association between a group and a role.
Returns true is the group and role are linked.
Returns an array ref of all groups with the given role.
Removes a group, and all of it's links to roles.
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.
Returns TRUE if $group exists, FALSE otherwise
Saves the current role/group relationships.
Returns a reference to an array of object auth IDs which have permissions involving the passed array of group IDs.
Adds the group to the groups we are tracking.
Fills out the data for this authz manager.
Solstice::AuthZ::Role, Solstice::Group, Model.
Catalyst Group, <catalyst@u.washington.edu>
$Revision: 3395 $
Copyright 1998-2007 Office of Learning Technologies, University of Washington
Licensed under the Educational Community License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.opensource.org/licenses/ecl1.php
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
To install Solstice, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Solstice
CPAN shell
perl -MCPAN -e shell install Solstice
For more information on module installation, please visit the detailed CPAN module installation guide.