|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.security.spi.impl.LdapSecurityMappingHandler
public class LdapSecurityMappingHandler
SecurityMappingHandler
Field Summary | |
---|---|
private LdapPrincipalDao |
groupDao
|
private org.apache.jetspeed.security.HierarchyResolver |
groupHierarchyResolver
The group hierarchy resolver. |
private static org.apache.commons.logging.Log |
LOG
The logger. |
private LdapPrincipalDao |
roleDao
|
private org.apache.jetspeed.security.HierarchyResolver |
roleHierarchyResolver
The role hierarchy resolver. |
private LdapUserPrincipalDao |
userDao
|
Constructor Summary | |
---|---|
LdapSecurityMappingHandler()
|
|
LdapSecurityMappingHandler(LdapUserPrincipalDao userDao,
LdapPrincipalDao groupDao,
LdapPrincipalDao roleDao)
|
Method Summary | |
---|---|
private void |
addGroupToUser(String username,
String groupFullPathName)
|
private void |
addRoleToGroup(String groupFullPathName,
String roleFullPathName)
|
private void |
addRoleToUser(String username,
String roleFullPathName)
|
private void |
createResolvedGroupPrincipalSet(String username,
Set groupPrincipals,
String[] groups,
int i)
|
private void |
createResolvedRolePrincipalSet(String username,
Set rolePrincipals,
String[] roles,
int i)
|
private org.apache.jetspeed.security.GroupPrincipal |
getGroup(String uid)
|
org.apache.jetspeed.security.HierarchyResolver |
getGroupHierarchyResolver()
|
Set |
getGroupPrincipals(String userPrincipalUid)
This method returns the set of group principals associated with a user. |
Set |
getGroupPrincipalsInRole(String roleFullPathName)
|
private org.apache.jetspeed.security.RolePrincipal |
getRole(String uid)
|
org.apache.jetspeed.security.HierarchyResolver |
getRoleHierarchyResolver()
|
Set |
getRolePrincipals(String username)
|
Set |
getRolePrincipalsInGroup(String groupFullPathName)
|
private org.apache.jetspeed.security.UserPrincipal |
getUser(String uid)
|
private void |
getUserPrincipalsInGroup(Set userPrincipals,
String[] fullPaths)
Gets the user principals in groups. |
Set |
getUserPrincipalsInGroup(String groupFullPathName)
This method is the analog of the getGroupPrincipals except it returns the set of user principals in a group. |
private void |
getUserPrincipalsInRole(Set userPrincipals,
String[] fullPaths)
Gets the user principals in groups. |
Set |
getUserPrincipalsInRole(String roleFullPathName)
|
private void |
removeRoleFromGroup(String groupFullPathName,
String roleFullPathName)
|
void |
removeRolePrincipalInGroup(String groupFullPathName,
String roleFullPathName)
|
private void |
removeUserFromGroup(String username,
String groupFullPathName)
|
private void |
removeUserFromRole(String username,
String roleFullPathName)
|
void |
removeUserPrincipalInGroup(String username,
String groupFullPathName)
|
void |
removeUserPrincipalInRole(String username,
String roleFullPathName)
|
void |
setGroupHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver groupHierarchyResolver)
|
void |
setRoleHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver roleHierarchyResolver)
|
void |
setRolePrincipalInGroup(String groupFullPathName,
String roleFullPathName)
|
void |
setUserPrincipalInGroup(String username,
String groupFullPathName)
|
void |
setUserPrincipalInRole(String username,
String roleFullPathName)
|
private void |
verifyGroupAndRoleExist(String groupFullPathName,
String roleFullPathName)
|
private void |
verifyUserAndGroupExist(String username,
String groupFullPathName)
|
private void |
verifyUserAndRoleExist(String username,
String roleFullPathName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LdapUserPrincipalDao userDao
private LdapPrincipalDao groupDao
private LdapPrincipalDao roleDao
private static final org.apache.commons.logging.Log LOG
private org.apache.jetspeed.security.HierarchyResolver roleHierarchyResolver
private org.apache.jetspeed.security.HierarchyResolver groupHierarchyResolver
Constructor Detail |
---|
public LdapSecurityMappingHandler(LdapUserPrincipalDao userDao, LdapPrincipalDao groupDao, LdapPrincipalDao roleDao)
userDao
- groupDao
- public LdapSecurityMappingHandler() throws org.apache.jetspeed.security.SecurityException, NamingException
NamingException
- A NamingException
.
org.apache.jetspeed.security.SecurityException
- A SecurityException
.Method Detail |
---|
public org.apache.jetspeed.security.HierarchyResolver getRoleHierarchyResolver()
getRoleHierarchyResolver
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.getRoleHierarchyResolver()
public void setRoleHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver roleHierarchyResolver)
setRoleHierarchyResolver
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.setRoleHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver)
public org.apache.jetspeed.security.HierarchyResolver getGroupHierarchyResolver()
getGroupHierarchyResolver
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
public void setGroupHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver groupHierarchyResolver)
setGroupHierarchyResolver
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.setGroupHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver)
public Set getRolePrincipals(String username)
getRolePrincipals
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.getRolePrincipals(java.lang.String)
public void setUserPrincipalInRole(String username, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
setUserPrincipalInRole
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
org.apache.jetspeed.security.SecurityException
SecurityMappingHandler.setUserPrincipalInRole(java.lang.String,
java.lang.String)
public void removeUserPrincipalInRole(String username, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
removeUserPrincipalInRole
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
org.apache.jetspeed.security.SecurityException
SecurityMappingHandler.removeUserPrincipalInRole(java.lang.String,
java.lang.String)
public Set getRolePrincipalsInGroup(String groupFullPathName)
getRolePrincipalsInGroup
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.getRolePrincipalsInGroup(java.lang.String)
public void setRolePrincipalInGroup(String groupFullPathName, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
setRolePrincipalInGroup
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
org.apache.jetspeed.security.SecurityException
SecurityMappingHandler.setRolePrincipalInGroup(java.lang.String,
java.lang.String)
public void removeRolePrincipalInGroup(String groupFullPathName, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
removeRolePrincipalInGroup
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
org.apache.jetspeed.security.SecurityException
SecurityMappingHandler.removeRolePrincipalInGroup(java.lang.String,
java.lang.String)
public Set getGroupPrincipals(String userPrincipalUid)
getGroupPrincipals
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.getGroupPrincipals(java.lang.String)
public Set getGroupPrincipalsInRole(String roleFullPathName)
getGroupPrincipalsInRole
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.getGroupPrincipalsInRole(java.lang.String)
public Set getUserPrincipalsInRole(String roleFullPathName)
getUserPrincipalsInRole
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.getUserPrincipalsInRole(java.lang.String)
public Set getUserPrincipalsInGroup(String groupFullPathName)
This method is the analog of the getGroupPrincipals except it returns the set of user principals in a group.
getUserPrincipalsInGroup
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
SecurityMappingHandler.getUserPrincipalsInGroup(java.lang.String)
private void getUserPrincipalsInGroup(Set userPrincipals, String[] fullPaths) throws org.apache.jetspeed.security.SecurityException
Gets the user principals in groups.
userPrincipals
- fullPaths
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.private void getUserPrincipalsInRole(Set userPrincipals, String[] fullPaths) throws org.apache.jetspeed.security.SecurityException
Gets the user principals in groups.
userPrincipals
- fullPaths
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.public void setUserPrincipalInGroup(String username, String groupFullPathName) throws org.apache.jetspeed.security.SecurityException
setUserPrincipalInGroup
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
org.apache.jetspeed.security.SecurityException
SecurityMappingHandler.setUserPrincipalInGroup(java.lang.String,
java.lang.String)
public void removeUserPrincipalInGroup(String username, String groupFullPathName) throws org.apache.jetspeed.security.SecurityException
removeUserPrincipalInGroup
in interface org.apache.jetspeed.security.spi.SecurityMappingHandler
org.apache.jetspeed.security.SecurityException
SecurityMappingHandler.removeUserPrincipalInGroup(java.lang.String,
java.lang.String)
private void verifyGroupAndRoleExist(String groupFullPathName, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
private void verifyUserAndGroupExist(String username, String groupFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
private void verifyUserAndRoleExist(String username, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
private void createResolvedGroupPrincipalSet(String username, Set groupPrincipals, String[] groups, int i)
username
- groupPrincipals
- groups
- i
- private void createResolvedRolePrincipalSet(String username, Set rolePrincipals, String[] roles, int i)
username
- groupPrincipals
- groups
- i
- private void removeUserFromGroup(String username, String groupFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
private void removeUserFromRole(String username, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
private void removeRoleFromGroup(String groupFullPathName, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
org.apache.jetspeed.security.SecurityException
private org.apache.jetspeed.security.UserPrincipal getUser(String uid) throws org.apache.jetspeed.security.SecurityException
uid
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.private org.apache.jetspeed.security.GroupPrincipal getGroup(String uid) throws org.apache.jetspeed.security.SecurityException
uid
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.private org.apache.jetspeed.security.RolePrincipal getRole(String uid) throws org.apache.jetspeed.security.SecurityException
uid
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.private void addGroupToUser(String username, String groupFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.private void addRoleToUser(String username, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.private void addRoleToGroup(String groupFullPathName, String roleFullPathName) throws org.apache.jetspeed.security.SecurityException
username
- groupFullPathName
-
org.apache.jetspeed.security.SecurityException
- A SecurityException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |