| java.lang.Object org.tigris.scarab.tools.SecurityAdminTool
SecurityAdminTool | public class SecurityAdminTool implements ApplicationTool,Serializable(Code) | | This scope is an object that is made available as a global
object within the system to allow access to methods dealing
with security (users, roles, permissions, etc).
This object must be thread safe as multiple
requests may access it at the same time. The object is made
available in the context as: $securityAdmin
The design goals of the Scarab*API is to enable a pull based
methodology to be implemented.
author: Douglas B. Robertson version: $Id: SecurityAdminTool.java 10042 2006-04-11 11:28:39Z jorgeuriarte $ |
getActiveScarabModules | public List getActiveScarabModules() throws Exception(Code) | | Gets a list of all Groups
|
getGroups | public Group[] getGroups() throws Exception(Code) | | Gets a list of all Groups
|
getNonMemberGroups | public List getNonMemberGroups(ScarabUser user) throws Exception(Code) | | Gets a list of active Groups in which the user does not have a current
role and has not already requested a role.
|
getPendingGroupUserRoles | public List getPendingGroupUserRoles(Module module) throws TorqueException(Code) | | |
getPermissionByName | public Permission getPermissionByName(String name) throws Exception(Code) | | Returns a Permission object retrieved by specifying the name of the permission.
Parameters: name - the name of the permission to retrieve the specified Permission, if found, or null otherwise |
getPermissions | public Permission[] getPermissions() throws Exception(Code) | | Gets a list of all Permissions
|
getPermissionsAsStrings | public List getPermissionsAsStrings() throws Exception(Code) | | Gets a list of all Permissions
|
getRoleByName | public Role getRoleByName(String name) throws Exception(Code) | | Returns a Role object retrieved by specifying the name of the role.
Parameters: name - the name of the role to retrieve the specified Role, if found, or null otherwise |
getRoles | public Role[] getRoles() throws Exception(Code) | | Gets a list of all Roles.
|
getUserByUsername | public ScarabUser getUserByUsername(String username) throws Exception(Code) | | Returns a User object retrieved by specifying the username.
Parameters: username - the username of the user to retrieve the specified user, if found, or null otherwise |
hasRequestedRole | public boolean hasRequestedRole(ScarabUser user, Role role, Group group) throws TorqueException(Code) | | |
refresh | public void refresh()(Code) | | |
|
|