|
||||||||||
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.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 LdapMembershipDao
NamingException
public String[] searchGroupMemberShipByUser(String userPrincipalUid, SearchControls cons) throws NamingException
searchGroupMemberShipByUser
in interface LdapMembershipDao
NamingException
public String[] searchRoleMemberShipByRole(String userPrincipalUid, SearchControls cons) throws NamingException
searchRoleMemberShipByRole
in interface LdapMembershipDao
NamingException
public String[] searchRoleMemberShipByUser(String userPrincipalUid, SearchControls cons) throws NamingException
searchRoleMemberShipByUser
in interface LdapMembershipDao
NamingException
public String[] searchUsersFromGroupByGroup(String groupPrincipalUid, SearchControls cons) throws NamingException
LdapMembershipDao
Search user by group using the GroupMembershipAttribute.
searchUsersFromGroupByGroup
in interface LdapMembershipDao
NamingException
- A NamingException
.public String[] searchUsersFromGroupByUser(String groupPrincipalUid, SearchControls cons) throws NamingException
LdapMembershipDao
Search user by group using the UserGroupMembershipAttribute.
searchUsersFromGroupByUser
in interface LdapMembershipDao
NamingException
- A NamingException
.public String[] searchRolesFromGroupByGroup(String groupPrincipalUid, SearchControls cons) throws NamingException
searchRolesFromGroupByGroup
in interface LdapMembershipDao
NamingException
public String[] searchRolesFromGroupByRole(String groupPrincipalUid, SearchControls cons) throws NamingException
searchRolesFromGroupByRole
in interface LdapMembershipDao
NamingException
public String[] searchUsersFromRoleByRole(String rolePrincipalUid, SearchControls cons) throws NamingException
LdapMembershipDao
Search user by role using the RoleMembershipAttribute.
searchUsersFromRoleByRole
in interface LdapMembershipDao
NamingException
- A NamingException
.public String[] searchUsersFromRoleByUser(String rolePrincipalUid, SearchControls cons) throws NamingException
LdapMembershipDao
Search user by role using the UserRoleMembershipAttribute.
searchUsersFromRoleByUser
in interface LdapMembershipDao
NamingException
- 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
-
NamingException
protected Attributes defineLdapAttributes(String principalUid)
A template method for defining the attributes for a particular LDAP class.
defineLdapAttributes
in class LdapPrincipalDaoImpl
principalUid
- The principal uid.
protected String getDnSuffix()
LdapPrincipalDaoImpl
Builds the dn suffix.
getDnSuffix
in class LdapPrincipalDaoImpl
LdapPrincipalDaoImpl.getDnSuffix()
protected Principal makePrincipal(String principalUid)
Creates a GroupPrincipal object.
makePrincipal
in class LdapPrincipalDaoImpl
principalUid
- The principal uid.
private String extractLdapAttr(String dn, String ldapAttrName)
protected String[] getObjectClasses()
getObjectClasses
in class AbstractLdapDao
protected String getUidAttributeForPrincipal()
LdapPrincipalDaoImpl
Builds the dn suffix.
getUidAttributeForPrincipal
in class LdapPrincipalDaoImpl
protected String[] getAttributes()
getAttributes
in class AbstractLdapDao
protected String getEntryPrefix()
AbstractLdapDao
A template method that returns the LDAP entry prefix of the concrete DAO.
TODO : this should be in spring config
getEntryPrefix
in class AbstractLdapDao
protected String getSearchSuffix()
AbstractLdapDao
A 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 |