|
||||||||||
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 |
---|
Fields inherited from class org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao |
---|
ctx |
Constructor Summary | |
---|---|
LdapMemberShipDaoImpl()
|
|
LdapMemberShipDaoImpl(LdapBindingConfig config)
|
Method Summary | |
---|---|
protected javax.naming.directory.Attributes |
defineLdapAttributes(java.lang.String principalUid)
A template method for defining the attributes for a particular LDAP class. |
protected java.lang.String[] |
getAttributes()
|
protected java.util.List |
getAttributes(javax.naming.directory.Attribute attr)
|
protected java.util.List |
getAttributes(javax.naming.directory.Attribute attr,
java.lang.String filter)
|
protected java.lang.String |
getDnSuffix()
Builds the dn suffix. |
protected java.lang.String |
getEntryPrefix()
A template method that returns the LDAP entry prefix of the concrete DAO. |
protected java.lang.String[] |
getObjectClasses()
|
protected java.lang.String |
getSearchSuffix()
A template method that returns the LDAP entry prefix of the concrete DAO. |
protected java.lang.String |
getUidAttributeForPrincipal()
Builds the dn suffix. |
protected java.security.Principal |
makePrincipal(java.lang.String principalUid)
Creates a GroupPrincipal object. |
java.lang.String[] |
searchGroupMemberShipByGroup(java.lang.String userPrincipalUid,
javax.naming.directory.SearchControls cons)
|
java.lang.String[] |
searchGroupMemberShipByUser(java.lang.String userPrincipalUid,
javax.naming.directory.SearchControls cons)
|
java.lang.String[] |
searchRoleMemberShipByRole(java.lang.String userPrincipalUid,
javax.naming.directory.SearchControls cons)
|
java.lang.String[] |
searchRoleMemberShipByUser(java.lang.String userPrincipalUid,
javax.naming.directory.SearchControls cons)
|
java.lang.String[] |
searchRolesFromGroupByGroup(java.lang.String groupPrincipalUid,
javax.naming.directory.SearchControls cons)
|
java.lang.String[] |
searchRolesFromGroupByRole(java.lang.String groupPrincipalUid,
javax.naming.directory.SearchControls cons)
|
java.lang.String[] |
searchUsersFromGroupByGroup(java.lang.String groupPrincipalUid,
javax.naming.directory.SearchControls cons)
Search user by group using the GroupMembershipAttribute. |
java.lang.String[] |
searchUsersFromGroupByUser(java.lang.String groupPrincipalUid,
javax.naming.directory.SearchControls cons)
Search user by group using the UserGroupMembershipAttribute. |
java.lang.String[] |
searchUsersFromRoleByRole(java.lang.String rolePrincipalUid,
javax.naming.directory.SearchControls cons)
Search user by role using the RoleMembershipAttribute. |
java.lang.String[] |
searchUsersFromRoleByUser(java.lang.String rolePrincipalUid,
javax.naming.directory.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 |
Constructor Detail |
---|
public LdapMemberShipDaoImpl() throws SecurityException
SecurityException
public LdapMemberShipDaoImpl(LdapBindingConfig config) throws SecurityException
SecurityException
Method Detail |
---|
public java.lang.String[] searchGroupMemberShipByGroup(java.lang.String userPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
searchGroupMemberShipByGroup
in interface LdapMembershipDao
javax.naming.NamingException
public java.lang.String[] searchGroupMemberShipByUser(java.lang.String userPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
searchGroupMemberShipByUser
in interface LdapMembershipDao
javax.naming.NamingException
public java.lang.String[] searchRoleMemberShipByRole(java.lang.String userPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
searchRoleMemberShipByRole
in interface LdapMembershipDao
javax.naming.NamingException
public java.lang.String[] searchRoleMemberShipByUser(java.lang.String userPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
searchRoleMemberShipByUser
in interface LdapMembershipDao
javax.naming.NamingException
public java.lang.String[] searchUsersFromGroupByGroup(java.lang.String groupPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
LdapMembershipDao
Search user by group using the GroupMembershipAttribute.
searchUsersFromGroupByGroup
in interface LdapMembershipDao
javax.naming.NamingException
- A NamingException
.public java.lang.String[] searchUsersFromGroupByUser(java.lang.String groupPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
LdapMembershipDao
Search user by group using the UserGroupMembershipAttribute.
searchUsersFromGroupByUser
in interface LdapMembershipDao
javax.naming.NamingException
- A NamingException
.public java.lang.String[] searchRolesFromGroupByGroup(java.lang.String groupPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
searchRolesFromGroupByGroup
in interface LdapMembershipDao
javax.naming.NamingException
public java.lang.String[] searchRolesFromGroupByRole(java.lang.String groupPrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
searchRolesFromGroupByRole
in interface LdapMembershipDao
javax.naming.NamingException
public java.lang.String[] searchUsersFromRoleByRole(java.lang.String rolePrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
LdapMembershipDao
Search user by role using the RoleMembershipAttribute.
searchUsersFromRoleByRole
in interface LdapMembershipDao
javax.naming.NamingException
- A NamingException
.public java.lang.String[] searchUsersFromRoleByUser(java.lang.String rolePrincipalUid, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
LdapMembershipDao
Search user by role using the UserRoleMembershipAttribute.
searchUsersFromRoleByUser
in interface LdapMembershipDao
javax.naming.NamingException
- A NamingException
.protected java.util.List getAttributes(javax.naming.directory.Attribute attr) throws javax.naming.NamingException
attr
-
javax.naming.NamingException
protected java.util.List getAttributes(javax.naming.directory.Attribute attr, java.lang.String filter) throws javax.naming.NamingException
attr
-
javax.naming.NamingException
protected javax.naming.directory.Attributes defineLdapAttributes(java.lang.String principalUid)
A template method for defining the attributes for a particular LDAP class.
defineLdapAttributes
in class LdapPrincipalDaoImpl
principalUid
- The principal uid.
protected java.lang.String getDnSuffix()
LdapPrincipalDaoImpl
Builds the dn suffix.
getDnSuffix
in class LdapPrincipalDaoImpl
LdapPrincipalDaoImpl.getDnSuffix()
protected java.security.Principal makePrincipal(java.lang.String principalUid)
Creates a GroupPrincipal object.
makePrincipal
in class LdapPrincipalDaoImpl
principalUid
- The principal uid.
protected java.lang.String[] getObjectClasses()
getObjectClasses
in class AbstractLdapDao
protected java.lang.String getUidAttributeForPrincipal()
LdapPrincipalDaoImpl
Builds the dn suffix.
getUidAttributeForPrincipal
in class LdapPrincipalDaoImpl
protected java.lang.String[] getAttributes()
getAttributes
in class AbstractLdapDao
protected java.lang.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 java.lang.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 |