|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.impl.RoleManagerImpl
public class RoleManagerImpl
Implementation for managing roles.
Role hierarchy elements are being returned as a Rolecollection. The
backing implementation must appropriately map the role hierarchy to a
preferences sub-tree.
The convention {principal}.{subprincipal} has been chosen to name roles
hierachies in order to support declarative security. Implementation follow
the conventions enforced by the PreferencesAPI.
| Field Summary | |
|---|---|
private org.apache.jetspeed.security.AuthenticationProviderProxy |
atnProviderProxy
The authentication provider proxy. |
private static org.apache.commons.logging.Log |
log
The logger. |
private org.apache.jetspeed.security.spi.RoleSecurityHandler |
roleSecurityHandler
The role security handler. |
private org.apache.jetspeed.security.spi.SecurityMappingHandler |
securityMappingHandler
The security mapping handler. |
| Constructor Summary | |
|---|---|
RoleManagerImpl(org.apache.jetspeed.security.SecurityProvider securityProvider)
|
|
| Method Summary | |
|---|---|
void |
addRole(String roleFullPathName)
|
void |
addRoleToGroup(String roleFullPathName,
String groupFullPathName)
|
void |
addRoleToUser(String username,
String roleFullPathName)
|
org.apache.jetspeed.security.Role |
getRole(String roleFullPathName)
|
Iterator |
getRoles(String filter)
|
Collection |
getRolesForUser(String username)
|
Collection |
getRolesInGroup(String groupFullPathName)
|
boolean |
isGroupInRole(String groupFullPathName,
String roleFullPathName)
|
boolean |
isUserInRole(String username,
String roleFullPathName)
|
void |
removeRole(String roleFullPathName)
|
void |
removeRoleFromGroup(String roleFullPathName,
String groupFullPathName)
|
void |
removeRoleFromUser(String username,
String roleFullPathName)
|
boolean |
roleExists(String roleFullPathName)
|
void |
setRoleEnabled(String roleFullPathName,
boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private org.apache.jetspeed.security.AuthenticationProviderProxy atnProviderProxy
private org.apache.jetspeed.security.spi.RoleSecurityHandler roleSecurityHandler
private org.apache.jetspeed.security.spi.SecurityMappingHandler securityMappingHandler
| Constructor Detail |
|---|
public RoleManagerImpl(org.apache.jetspeed.security.SecurityProvider securityProvider)
securityProvider - The security provider.| Method Detail |
|---|
public void addRole(String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
addRole in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.addRole(java.lang.String)
public void removeRole(String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
removeRole in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.removeRole(java.lang.String)public boolean roleExists(String roleFullPathName)
roleExists in interface org.apache.jetspeed.security.RoleManagerRoleManager.roleExists(java.lang.String)
public org.apache.jetspeed.security.Role getRole(String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
getRole in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.getRole(java.lang.String)
public Collection getRolesForUser(String username)
throws org.apache.jetspeed.security.SecurityException
getRolesForUser in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.getRolesForUser(java.lang.String)
public Collection getRolesInGroup(String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
getRolesInGroup in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.getRolesInGroup(java.lang.String)
public void addRoleToUser(String username,
String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
addRoleToUser in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.addRoleToUser(java.lang.String,
java.lang.String)
public void removeRoleFromUser(String username,
String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
removeRoleFromUser in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.removeRoleFromUser(java.lang.String,
java.lang.String)
public boolean isUserInRole(String username,
String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
isUserInRole in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.isUserInRole(java.lang.String,
java.lang.String)
public void addRoleToGroup(String roleFullPathName,
String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
addRoleToGroup in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.addRoleToGroup(java.lang.String,
java.lang.String)
public void removeRoleFromGroup(String roleFullPathName,
String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
removeRoleFromGroup in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.removeRoleFromGroup(java.lang.String,
java.lang.String)
public boolean isGroupInRole(String groupFullPathName,
String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
isGroupInRole in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.isGroupInRole(java.lang.String,
java.lang.String)
public Iterator getRoles(String filter)
throws org.apache.jetspeed.security.SecurityException
getRoles in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.getRoles(java.lang.String)
public void setRoleEnabled(String roleFullPathName,
boolean enabled)
throws org.apache.jetspeed.security.SecurityException
setRoleEnabled in interface org.apache.jetspeed.security.RoleManagerorg.apache.jetspeed.security.SecurityExceptionRoleManager.setRoleEnabled(java.lang.String, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||