|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.spi.impl.LdapSecurityMappingHandler
public class LdapSecurityMappingHandler
SecurityMappingHandler| Constructor Summary | |
|---|---|
LdapSecurityMappingHandler()
|
|
LdapSecurityMappingHandler(LdapUserPrincipalDao userDao,
LdapPrincipalDao groupDao,
LdapPrincipalDao roleDao)
|
|
| Method Summary | |
|---|---|
HierarchyResolver |
getGroupHierarchyResolver()
Gets the HierarchyResolver to be used for resolving group hierarchy. |
java.util.Set |
getGroupPrincipals(java.lang.String userPrincipalUid)
This method returns the set of group principals associated with a user. |
java.util.Set |
getGroupPrincipalsInRole(java.lang.String roleFullPathName)
Gets the group principals for the given role according to the relevant hierarchy resolution rules. |
HierarchyResolver |
getRoleHierarchyResolver()
Gets the HierarchyResolver to be used for resolving role hierarchy. |
java.util.Set |
getRolePrincipals(java.lang.String username)
Gets the role principals for the given user according to the relevant hierarchy resolution rules. |
java.util.Set |
getRolePrincipalsInGroup(java.lang.String groupFullPathName)
Gets the role principals for the given group according to the relevant hierarchy resolution rules. |
java.util.Set |
getUserPrincipalsInGroup(java.lang.String groupFullPathName)
This method is the analog of the getGroupPrincipals except it returns the set of user principals in a group. |
java.util.Set |
getUserPrincipalsInRole(java.lang.String roleFullPathName)
Gets the user principals for the given role according to the relevant hierarchy resolution rules. |
void |
removeRolePrincipalInGroup(java.lang.String groupFullPathName,
java.lang.String roleFullPathName)
Removes the role principal on a given user. |
void |
removeUserPrincipalInGroup(java.lang.String username,
java.lang.String groupFullPathName)
Removes the user principal from the given group. |
void |
removeUserPrincipalInRole(java.lang.String username,
java.lang.String roleFullPathName)
Removes the role principal on a given user. |
void |
setGroupHierarchyResolver(HierarchyResolver groupHierarchyResolver)
Sets the HierarchyResolver used for resolving group hierarchy. |
void |
setRoleHierarchyResolver(HierarchyResolver roleHierarchyResolver)
Sets the HierarchyResolver to be used for resolving role hierachy. |
void |
setRolePrincipalInGroup(java.lang.String groupFullPathName,
java.lang.String roleFullPathName)
Sets the role principal on a given user. |
void |
setUserPrincipalInGroup(java.lang.String username,
java.lang.String groupFullPathName)
Sets the user principal in the given group. |
void |
setUserPrincipalInRole(java.lang.String username,
java.lang.String roleFullPathName)
Sets the role principal on a given user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdapSecurityMappingHandler(LdapUserPrincipalDao userDao,
LdapPrincipalDao groupDao,
LdapPrincipalDao roleDao)
userDao - groupDao -
public LdapSecurityMappingHandler()
throws SecurityException,
javax.naming.NamingException
javax.naming.NamingException - A NamingException.
SecurityException - A SecurityException.| Method Detail |
|---|
public HierarchyResolver getRoleHierarchyResolver()
SecurityMappingHandler
Gets the HierarchyResolver to be used for resolving role hierarchy.
getRoleHierarchyResolver in interface SecurityMappingHandlerHierarchyResolver.SecurityMappingHandler.getRoleHierarchyResolver()public void setRoleHierarchyResolver(HierarchyResolver roleHierarchyResolver)
SecurityMappingHandler
Sets the HierarchyResolver to be used for resolving role hierachy.
setRoleHierarchyResolver in interface SecurityMappingHandlerroleHierarchyResolver - The role HierarchyResolver.SecurityMappingHandler.setRoleHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver)public HierarchyResolver getGroupHierarchyResolver()
SecurityMappingHandler
Gets the HierarchyResolver to be used for resolving group hierarchy.
getGroupHierarchyResolver in interface SecurityMappingHandlerpublic void setGroupHierarchyResolver(HierarchyResolver groupHierarchyResolver)
SecurityMappingHandler
Sets the HierarchyResolver used for resolving group hierarchy.
setGroupHierarchyResolver in interface SecurityMappingHandlergroupHierarchyResolver - The group HierarchyResolver.SecurityMappingHandler.setGroupHierarchyResolver(org.apache.jetspeed.security.HierarchyResolver)public java.util.Set getRolePrincipals(java.lang.String username)
SecurityMappingHandlerGets the role principals for the given user according to the relevant hierarchy resolution rules.
getRolePrincipals in interface SecurityMappingHandlerusername - The user name.
Principal- See Also:
SecurityMappingHandler.getRolePrincipals(java.lang.String)
public void setUserPrincipalInRole(java.lang.String username,
java.lang.String roleFullPathName)
throws SecurityException
SecurityMappingHandlerSets the role principal on a given user. Existence of the role or the user must be checked prior to invoking this method. If a principal does not exist in the security mapping store, it will be created for the purpose of security mapping only.
setUserPrincipalInRole in interface SecurityMappingHandlerusername - The user to add the role principal to.roleFullPathName - The full path of the role principal to add.
SecurityException - Throws a SecurityException. An exeption needs to be
thrown if the user does not exist.SecurityMappingHandler.setUserPrincipalInRole(java.lang.String,
java.lang.String)
public void removeUserPrincipalInRole(java.lang.String username,
java.lang.String roleFullPathName)
throws SecurityException
SecurityMappingHandlerRemoves the role principal on a given user.
If a mapping only record does not have any mapping, this method will remove the record as well.
removeUserPrincipalInRole in interface SecurityMappingHandlerusername - The user to remove the role principal from.roleFullPathName - The full path of the role principal to remove.
SecurityException - Throws a SecurityException. An exeption needs to be
thrown if the user does not exist.SecurityMappingHandler.removeUserPrincipalInRole(java.lang.String,
java.lang.String)public java.util.Set getRolePrincipalsInGroup(java.lang.String groupFullPathName)
SecurityMappingHandlerGets the role principals for the given group according to the relevant hierarchy resolution rules.
getRolePrincipalsInGroup in interface SecurityMappingHandlergroupFullPathName - The group full path name.
Principal- See Also:
SecurityMappingHandler.getRolePrincipalsInGroup(java.lang.String)
public void setRolePrincipalInGroup(java.lang.String groupFullPathName,
java.lang.String roleFullPathName)
throws SecurityException
SecurityMappingHandlerSets the role principal on a given user.
setRolePrincipalInGroup in interface SecurityMappingHandlergroupFullPathName - The group to add the role principal to.roleFullPathName - The full path of the role principal to add.
SecurityException - Throws a SecurityException. An exeption needs to be
thrown if the group does not exist.SecurityMappingHandler.setRolePrincipalInGroup(java.lang.String,
java.lang.String)
public void removeRolePrincipalInGroup(java.lang.String groupFullPathName,
java.lang.String roleFullPathName)
throws SecurityException
SecurityMappingHandlerRemoves the role principal on a given user.
removeRolePrincipalInGroup in interface SecurityMappingHandlergroupFullPathName - The group to remove the role principal from.roleFullPathName - The full path of the role principal to remove.
SecurityException - Throws a SecurityException. An exeption needs to be
thrown if the group does not exist.SecurityMappingHandler.removeRolePrincipalInGroup(java.lang.String,
java.lang.String)public java.util.Set getGroupPrincipals(java.lang.String userPrincipalUid)
getGroupPrincipals in interface SecurityMappingHandleruserPrincipalUid - The user name.
GroupPrincipal- See Also:
SecurityMappingHandler.getGroupPrincipals(java.lang.String)public java.util.Set getGroupPrincipalsInRole(java.lang.String roleFullPathName)
SecurityMappingHandlerGets the group principals for the given role according to the relevant hierarchy resolution rules.
getGroupPrincipalsInRole in interface SecurityMappingHandlerroleFullPathName - The role full path name.
Principal- See Also:
SecurityMappingHandler.getGroupPrincipalsInRole(java.lang.String)public java.util.Set getUserPrincipalsInRole(java.lang.String roleFullPathName)
SecurityMappingHandlerGets the user principals for the given role according to the relevant hierarchy resolution rules.
getUserPrincipalsInRole in interface SecurityMappingHandlerroleFullPathName - The role full path name.
Principal- See Also:
SecurityMappingHandler.getUserPrincipalsInRole(java.lang.String)public java.util.Set getUserPrincipalsInGroup(java.lang.String groupFullPathName)
This method is the analog of the getGroupPrincipals except it returns the set of user principals in a group.
getUserPrincipalsInGroup in interface SecurityMappingHandlergroupFullPathName - The group full path name.
Principal- See Also:
SecurityMappingHandler.getUserPrincipalsInGroup(java.lang.String)
public void setUserPrincipalInGroup(java.lang.String username,
java.lang.String groupFullPathName)
throws SecurityException
SecurityMappingHandlerSets the user principal in the given group.
Existence of the group or the user must be checked prior to invoking this method. If a principal does not exist in the security mapping store, it will be created for the purpose of security mapping only.
setUserPrincipalInGroup in interface SecurityMappingHandlerusername - The user to add to the group principal.groupFullPathName - The full path of the group principal.
SecurityException - Throws a SecurityException. An exeption needs to be
thrown if the user does not exist.SecurityMappingHandler.setUserPrincipalInGroup(java.lang.String,
java.lang.String)
public void removeUserPrincipalInGroup(java.lang.String username,
java.lang.String groupFullPathName)
throws SecurityException
SecurityMappingHandlerRemoves the user principal from the given group.
removeUserPrincipalInGroup in interface SecurityMappingHandlerusername - The user to remove from the group principal.groupFullPathName - The full path of the group principal.
SecurityException - Throws a SecurityException. An exeption needs to be
thrown if the user does not exist.SecurityMappingHandler.removeUserPrincipalInGroup(java.lang.String,
java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||