NAME
Solstice::AuthZ - For making authorization queries about particular actions.
SYNOPSIS
use Solstice::AuthZ;
my $authz = Solstice::AuthZ->new();
my $bool = $authz->_canPerformAction(app_id, 'action_string');
my $bool = $authz->_hasNoRoles();
DESCRIPTION
A centralized interface for application permissions. See https://satchmo.oep.washington.edu/wiki/wiki.pl?AuthZ for more details.
Superclass
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
Catalyst Group, <catalyst@u.washington.edu>
VERSION
$Revision: 3364 $
COPYRIGHT
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.