|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.security.spi.impl.LdapGroupSecurityHandler
GroupSecurityHandler| Field Summary | |
private LdapPrincipalDao |
ldap
The LdapPrincipalDao. |
private static org.apache.commons.logging.Log |
LOG
The logger. |
| Constructor Summary | |
LdapGroupSecurityHandler()
Default constructor. |
|
LdapGroupSecurityHandler(LdapPrincipalDao ldap)
|
|
| Method Summary | |
private String |
convertUidToAcceptableName(String uid)
Converts the uid to an acceptable ldap name. |
Principal |
getGroupPrincipal(String groupPrincipalUid)
Gets the group principal for the group full path name {principal}.{subprincipal}. |
List |
getGroupPrincipals(String filter)
Gets the an iterator of group principals for a given filter. |
private void |
logSecurityException(org.apache.jetspeed.security.SecurityException e,
String groupPrincipalUid)
Log the security exception. |
void |
removeGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
Removes the group principal. |
void |
setGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
Sets the group principal in the backing store. |
private void |
verifyGroupId(String groupPrincipalUid)
Verify that the group uid is valid. |
private void |
verifyGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
Verify that the group principal is valid. |
| 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 LdapPrincipalDao ldap
LdapPrincipalDao.
| Constructor Detail |
public LdapGroupSecurityHandler(LdapPrincipalDao ldap)
ldap - The LdapPrincipalDao.
public LdapGroupSecurityHandler()
throws NamingException,
org.apache.jetspeed.security.SecurityException
Default constructor.
NamingException - A NamingException.
org.apache.jetspeed.security.SecurityException - A SecurityException.| Method Detail |
public Principal getGroupPrincipal(String groupPrincipalUid)
GroupSecurityHandlerGets the group principal for the group full path name {principal}.{subprincipal}.
getGroupPrincipal in interface GroupSecurityHandlergroupPrincipalUid - The group full path name.
Principal- See Also:
GroupSecurityHandler.getGroupPrincipal(java.lang.String)private void verifyGroupId(String groupPrincipalUid)
Verify that the group uid is valid.
groupPrincipalUid - The group uid.
private void logSecurityException(org.apache.jetspeed.security.SecurityException e,
String groupPrincipalUid)
Log the security exception.
e - The SecurityException.groupPrincipalUid - The group principal uid.
public void setGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
throws org.apache.jetspeed.security.SecurityException
GroupSecurityHandlerSets the group principal in the backing store.
setGroupPrincipal in interface GroupSecurityHandlergroupPrincipal - The GroupPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.GroupSecurityHandler.setGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal)private String convertUidToAcceptableName(String uid)
Converts the uid to an acceptable ldap name.
uid - The uid.
private void verifyGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
Verify that the group principal is valid.
groupPrincipal - The group principal.
public void removeGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
throws org.apache.jetspeed.security.SecurityException
GroupSecurityHandlerRemoves the group principal.
removeGroupPrincipal in interface GroupSecurityHandlergroupPrincipal - The GroupPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.GroupSecurityHandler.removeGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal)public List getGroupPrincipals(String filter)
GroupSecurityHandlerGets the an iterator of group principals for a given filter.
getGroupPrincipals in interface GroupSecurityHandlerfilter - The filter.
PrincipalGroupSecurityHandler.getGroupPrincipals(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||