|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
org.apache.jetspeed.security.spi.impl.ldap.LdapPrincipalDaoImpl
org.apache.jetspeed.security.spi.impl.ldap.LdapMemberShipDaoImpl
public class LdapMemberShipDaoImpl
| Field Summary | |
|---|---|
private static org.apache.commons.logging.Log |
logger
The logger. |
| Fields inherited from class org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao |
|---|
ctx |
| Constructor Summary | |
|---|---|
LdapMemberShipDaoImpl()
|
|
LdapMemberShipDaoImpl(LdapBindingConfig config)
|
|
| Method Summary | |
|---|---|
protected Attributes |
defineLdapAttributes(String principalUid)
A template method for defining the attributes for a particular LDAP class. |
private String |
extractLdapAttr(String dn,
String ldapAttrName)
|
protected String[] |
getAttributes()
|
protected List |
getAttributes(Attribute attr)
|
protected List |
getAttributes(Attribute attr,
String filter)
|
protected String |
getDnSuffix()
Builds the dn suffix. |
protected String |
getEntryPrefix()
A template method that returns the LDAP entry prefix of the concrete DAO. |
private Attributes |
getFirstUser(NamingEnumeration results)
|
protected String[] |
getObjectClasses()
|
protected String |
getSearchSuffix()
A template method that returns the LDAP entry prefix of the concrete DAO. |
protected String |
getUidAttributeForPrincipal()
Builds the dn suffix. |
protected Principal |
makePrincipal(String principalUid)
Creates a GroupPrincipal object. |
String[] |
searchGroupMemberShipByGroup(String userPrincipalUid,
SearchControls cons)
|
String[] |
searchGroupMemberShipByUser(String userPrincipalUid,
SearchControls cons)
|
String[] |
searchRoleMemberShipByRole(String userPrincipalUid,
SearchControls cons)
|
String[] |
searchRoleMemberShipByUser(String userPrincipalUid,
SearchControls cons)
|
String[] |
searchRolesFromGroupByGroup(String groupPrincipalUid,
SearchControls cons)
|
String[] |
searchRolesFromGroupByRole(String groupPrincipalUid,
SearchControls cons)
|
String[] |
searchUsersFromGroupByGroup(String groupPrincipalUid,
SearchControls cons)
Search user by group using the GroupMembershipAttribute. |
String[] |
searchUsersFromGroupByUser(String groupPrincipalUid,
SearchControls cons)
Search user by group using the UserGroupMembershipAttribute. |
String[] |
searchUsersFromRoleByRole(String rolePrincipalUid,
SearchControls cons)
Search user by role using the RoleMembershipAttribute. |
String[] |
searchUsersFromRoleByUser(String rolePrincipalUid,
SearchControls cons)
Search user by role using the UserRoleMembershipAttribute. |
| Methods inherited from class org.apache.jetspeed.security.spi.impl.ldap.LdapPrincipalDaoImpl |
|---|
convertUidToLdapAcceptableName, create, delete, find, getAttribute, getGroupDN, getGroupDN, getRoleDN, getRoleDN, getSearchDomain, getUserDN, getUserDN, parseAttr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jetspeed.security.spi.impl.ldap.LdapReadOnlyPrincipalDao |
|---|
lookupByUid |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public LdapMemberShipDaoImpl()
throws org.apache.jetspeed.security.SecurityException
org.apache.jetspeed.security.SecurityException
public LdapMemberShipDaoImpl(LdapBindingConfig config)
throws org.apache.jetspeed.security.SecurityException
org.apache.jetspeed.security.SecurityException| Method Detail |
|---|
public String[] searchGroupMemberShipByGroup(String userPrincipalUid,
SearchControls cons)
throws NamingException
searchGroupMemberShipByGroup in interface LdapMembershipDaoNamingException
public String[] searchGroupMemberShipByUser(String userPrincipalUid,
SearchControls cons)
throws NamingException
searchGroupMemberShipByUser in interface LdapMembershipDaoNamingException
public String[] searchRoleMemberShipByRole(String userPrincipalUid,
SearchControls cons)
throws NamingException
searchRoleMemberShipByRole in interface LdapMembershipDaoNamingException
public String[] searchRoleMemberShipByUser(String userPrincipalUid,
SearchControls cons)
throws NamingException
searchRoleMemberShipByUser in interface LdapMembershipDaoNamingException
public String[] searchUsersFromGroupByGroup(String groupPrincipalUid,
SearchControls cons)
throws NamingException
LdapMembershipDaoSearch user by group using the GroupMembershipAttribute.
searchUsersFromGroupByGroup in interface LdapMembershipDaoNamingException - A NamingException.
public String[] searchUsersFromGroupByUser(String groupPrincipalUid,
SearchControls cons)
throws NamingException
LdapMembershipDaoSearch user by group using the UserGroupMembershipAttribute.
searchUsersFromGroupByUser in interface LdapMembershipDaoNamingException - A NamingException.
public String[] searchRolesFromGroupByGroup(String groupPrincipalUid,
SearchControls cons)
throws NamingException
searchRolesFromGroupByGroup in interface LdapMembershipDaoNamingException
public String[] searchRolesFromGroupByRole(String groupPrincipalUid,
SearchControls cons)
throws NamingException
searchRolesFromGroupByRole in interface LdapMembershipDaoNamingException
public String[] searchUsersFromRoleByRole(String rolePrincipalUid,
SearchControls cons)
throws NamingException
LdapMembershipDaoSearch user by role using the RoleMembershipAttribute.
searchUsersFromRoleByRole in interface LdapMembershipDaoNamingException - A NamingException.
public String[] searchUsersFromRoleByUser(String rolePrincipalUid,
SearchControls cons)
throws NamingException
LdapMembershipDaoSearch user by role using the UserRoleMembershipAttribute.
searchUsersFromRoleByUser in interface LdapMembershipDaoNamingException - A NamingException.
protected List getAttributes(Attribute attr)
throws NamingException
attr -
NamingException
protected List getAttributes(Attribute attr,
String filter)
throws NamingException
attr -
NamingException
private Attributes getFirstUser(NamingEnumeration results)
throws NamingException
results -
NamingExceptionprotected Attributes defineLdapAttributes(String principalUid)
A template method for defining the attributes for a particular LDAP class.
defineLdapAttributes in class LdapPrincipalDaoImplprincipalUid - The principal uid.
protected String getDnSuffix()
LdapPrincipalDaoImplBuilds the dn suffix.
getDnSuffix in class LdapPrincipalDaoImplLdapPrincipalDaoImpl.getDnSuffix()protected Principal makePrincipal(String principalUid)
Creates a GroupPrincipal object.
makePrincipal in class LdapPrincipalDaoImplprincipalUid - The principal uid.
private String extractLdapAttr(String dn,
String ldapAttrName)
protected String[] getObjectClasses()
getObjectClasses in class AbstractLdapDaoprotected String getUidAttributeForPrincipal()
LdapPrincipalDaoImplBuilds the dn suffix.
getUidAttributeForPrincipal in class LdapPrincipalDaoImplprotected String[] getAttributes()
getAttributes in class AbstractLdapDaoprotected String getEntryPrefix()
AbstractLdapDaoA template method that returns the LDAP entry prefix of the concrete DAO.
TODO : this should be in spring config
getEntryPrefix in class AbstractLdapDaoprotected String getSearchSuffix()
AbstractLdapDaoA template method that returns the LDAP entry prefix of the concrete DAO.
TODO : this should be in spring config
getSearchSuffix in class AbstractLdapDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||