|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.tools.SecurityAdminTool
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.
| Constructor Summary | |
SecurityAdminTool()
|
|
| Method Summary | |
java.util.List |
getActiveScarabModules()
Gets a list of all Groups |
org.apache.fulcrum.security.entity.Group[] |
getGroups()
Gets a list of all Groups |
java.util.List |
getNonMemberGroups(ScarabUser user)
Gets a list of active Groups in which the user does not have a current role and has not already requested a role. |
java.util.List |
getNonRootRoles()
Gets a list of all Roles. |
java.util.List |
getPendingGroupUserRoles(Module module)
|
org.apache.fulcrum.security.entity.Permission |
getPermissionByName(java.lang.String name)
Returns a Permission object retrieved by specifying the name of the permission. |
org.apache.fulcrum.security.entity.Permission[] |
getPermissions()
Gets a list of all Permissions |
java.util.List |
getPermissionsAsStrings()
Gets a list of all Permissions |
org.apache.fulcrum.security.entity.Role |
getRoleByName(java.lang.String name)
Returns a Role object retrieved by specifying the name of the role. |
org.apache.fulcrum.security.entity.Role[] |
getRoles()
Gets a list of all Roles. |
ScarabUser |
getUserByUsername(java.lang.String username)
Returns a User object retrieved by specifying the username. |
boolean |
hasRequestedRole(ScarabUser user,
org.apache.fulcrum.security.entity.Role role,
org.apache.fulcrum.security.entity.Group group)
|
void |
init(java.lang.Object data)
|
void |
refresh()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SecurityAdminTool()
| Method Detail |
public void init(java.lang.Object data)
init in interface org.apache.turbine.services.pull.ApplicationToolpublic void refresh()
refresh in interface org.apache.turbine.services.pull.ApplicationTool
public ScarabUser getUserByUsername(java.lang.String username)
throws java.lang.Exception
username - the username of the user to retrieve
java.lang.Exception
public org.apache.fulcrum.security.entity.Permission getPermissionByName(java.lang.String name)
throws java.lang.Exception
name - the name of the permission to retrieve
java.lang.Exception
public org.apache.fulcrum.security.entity.Role getRoleByName(java.lang.String name)
throws java.lang.Exception
name - the name of the role to retrieve
java.lang.Exception
public org.apache.fulcrum.security.entity.Group[] getGroups()
throws java.lang.Exception
java.lang.Exception
public java.util.List getActiveScarabModules()
throws java.lang.Exception
java.lang.Exception
public java.util.List getNonMemberGroups(ScarabUser user)
throws java.lang.Exception
java.lang.Exception
public boolean hasRequestedRole(ScarabUser user,
org.apache.fulcrum.security.entity.Role role,
org.apache.fulcrum.security.entity.Group group)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public org.apache.fulcrum.security.entity.Permission[] getPermissions()
throws java.lang.Exception
java.lang.Exception
public java.util.List getPermissionsAsStrings()
throws java.lang.Exception
java.lang.Exception
public org.apache.fulcrum.security.entity.Role[] getRoles()
throws java.lang.Exception
java.lang.Exception
public java.util.List getNonRootRoles()
throws java.lang.Exception
java.lang.Exception
public java.util.List getPendingGroupUserRoles(Module module)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||