站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

LDAPMembershipModuleImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.identity2.ldap
Class LDAPMembershipModuleImpl

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.identity2.ldap.LDAPMembershipModuleImpl
All Implemented Interfaces:
javax.management.MBeanRegistration, MembershipModule, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class LDAPMembershipModuleImpl
extends AbstractJBossService
implements MembershipModule

Version:
$Revision: 1.1 $
Author:
Boleslaw Dawidowicz

Field Summary
private  LDAPConnectionContext connectionContext
           
private  LDAPMembershipStrategy membershipStrategy
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
LDAPMembershipModuleImpl()
           
 
Method Summary
 void assignRoles(User user, java.util.Set roles)
           
 void assignUsers(Role role, java.util.Set users)
           
 java.util.Set findRoleMembers(java.lang.String roleName, int offset, int limit, java.lang.String userNameFilter)
          Returns role members based on rolename
 LDAPConnectionContext getConnectionContext()
           
 LDAPMembershipStrategy getMembershipStrategy()
           
 java.util.Set getRoles(User user)
          Return the set of role objects that a given user has.
 java.util.Set getUsers(Role role)
           
 void setConnectionContext(LDAPConnectionContext connectionContext)
           
 void setMembershipStrategy(LDAPMembershipStrategy membershipStrategy)
           
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionContext

private LDAPConnectionContext connectionContext

membershipStrategy

private LDAPMembershipStrategy membershipStrategy
Constructor Detail

LDAPMembershipModuleImpl

public LDAPMembershipModuleImpl()
Method Detail

getRoles

public java.util.Set getRoles(User user)
                       throws IdentityException
Description copied from interface: MembershipModule
Return the set of role objects that a given user has.

Specified by:
getRoles in interface MembershipModule
Parameters:
user - the user
Returns:
the set of roles of the specified user
Throws:
IdentityException

getUsers

public java.util.Set getUsers(Role role)
                       throws IdentityException
Specified by:
getUsers in interface MembershipModule
Throws:
IdentityException

assignUsers

public void assignUsers(Role role,
                        java.util.Set users)
                 throws IdentityException
Specified by:
assignUsers in interface MembershipModule
Throws:
IdentityException

assignRoles

public void assignRoles(User user,
                        java.util.Set roles)
                 throws IdentityException
Specified by:
assignRoles in interface MembershipModule
Throws:
IdentityException

findRoleMembers

public java.util.Set findRoleMembers(java.lang.String roleName,
                                     int offset,
                                     int limit,
                                     java.lang.String userNameFilter)
                              throws IdentityException
Description copied from interface: MembershipModule
Returns role members based on rolename

Specified by:
findRoleMembers in interface MembershipModule
Parameters:
roleName -
offset -
limit -
Throws:
IdentityException

getConnectionContext

public LDAPConnectionContext getConnectionContext()

setConnectionContext

public void setConnectionContext(LDAPConnectionContext connectionContext)

getMembershipStrategy

public LDAPMembershipStrategy getMembershipStrategy()

setMembershipStrategy

public void setMembershipStrategy(LDAPMembershipStrategy membershipStrategy)