org.jboss.portal.identity.ldap
Class LDAPRoleModule
java.lang.Object
org.jboss.portal.identity.service.IdentityModuleService
org.jboss.portal.identity.service.RoleModuleService
org.jboss.portal.identity.ldap.LDAPRoleModule
- All Implemented Interfaces:
- RoleModule
- Direct Known Subclasses:
- LDAPRoleModuleImpl
public abstract class LDAPRoleModule
- extends RoleModuleService
- Version:
- $Revision: 1.1 $
- Author:
- Boleslaw Dawidowicz
Methods inherited from class org.jboss.portal.identity.service.IdentityModuleService |
getConnectionJNDIName, getIdentityConfiguration, getIdentityContext, getIdentityEventBroadcaster, getInitOptions, getJndiBinder, getJNDIName, getModuleType, setConnectionJNDIName, setIdentityContext, setInitOptions, setJndiBinder, setJNDIName, setModuleType, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPRoleModule
public LDAPRoleModule()
start
public void start()
throws java.lang.Exception
- Overrides:
start
in class IdentityModuleService
- Throws:
java.lang.Exception
updateDisplayName
public void updateDisplayName(LDAPRoleImpl ldapr,
java.lang.String name)
throws IdentityException
- Throws:
IdentityException
createRoleInstance
protected LDAPRoleImpl createRoleInstance(javax.naming.directory.Attributes attrs,
java.lang.String dn)
throws IdentityException
- Throws:
IdentityException
findRoleByDN
public Role findRoleByDN(java.lang.String dn)
throws IdentityException,
java.lang.IllegalArgumentException
- method not belonging to UserModule interface - ldap specific.
- Throws:
IdentityException
java.lang.IllegalArgumentException
searchRoles
public abstract java.util.List searchRoles(java.lang.String filter,
java.lang.Object[] filterArgs)
throws javax.naming.NamingException,
IdentityException
- This method should be used by over modules to perform searches. It will allow role module
implementation to apply proper filter and search scope from the configuration
- Parameters:
filter
- that will be concatenated with proper role search filter from the module
- Returns:
-
- Throws:
javax.naming.NamingException
IdentityException
getRidAttributeID
protected java.lang.String getRidAttributeID()
throws IdentityException
- Throws:
IdentityException
getConnectionContext
protected LDAPConnectionContext getConnectionContext()
throws IdentityException
- Throws:
IdentityException
getContainerDN
protected java.lang.String getContainerDN()
throws IdentityException
- Throws:
IdentityException
getDisplayNameAttributeID
protected java.lang.String getDisplayNameAttributeID()
throws IdentityException
- Throws:
IdentityException
getSearchTimeLimit
protected int getSearchTimeLimit()
throws IdentityException
- Throws:
IdentityException
getSearchScope
protected int getSearchScope()
throws IdentityException
- Throws:
IdentityException
getRoleCtxDN
protected java.lang.String getRoleCtxDN()
throws IdentityException
- Throws:
IdentityException
getRoleSearchFilter
protected java.lang.String getRoleSearchFilter()
throws IdentityException
- Throws:
IdentityException
setConnectionContext
public void setConnectionContext(LDAPConnectionContext connectionContext)