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

StaticGroupLDAPMembershipStrategyImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.identity2.ldap
Class StaticGroupLDAPMembershipStrategyImpl

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.StaticGroupLDAPMembershipStrategyImpl
All Implemented Interfaces:
LDAPMembershipStrategy, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class StaticGroupLDAPMembershipStrategyImpl
extends AbstractJBossService
implements LDAPMembershipStrategy

Version:
$Revision: 1.1 $
Author:
Boleslaw Dawidowicz

Field Summary
private  LDAPConnectionContext connectionContext
           
private  java.lang.String roleCtxDN
          DN under which roles should be searched.
private  java.lang.String uidAttributeID
          Name of attribute in role entry that point to belonging user
 
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
StaticGroupLDAPMembershipStrategyImpl()
           
 
Method Summary
 void assignRoles(LDAPUserImpl user, java.util.Set roles)
           
 void assignUsers(LDAPRoleImpl role, java.util.Set users)
           
 LDAPConnectionContext getConnectionContext()
           
 java.lang.String getRoleCtxDN()
           
 java.util.Set getRoles(LDAPUserImpl user)
           
 java.lang.String getUidAttributeID()
           
 java.util.Set getUsers(LDAPRoleImpl role)
           
 void setConnectionContext(LDAPConnectionContext connectionContext)
           
 void setRoleCtxDN(java.lang.String roleCtxDN)
           
 void setUidAttributeID(java.lang.String uidAttributeID)
           
 
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

roleCtxDN

private java.lang.String roleCtxDN
DN under which roles should be searched. Used only when obtaining roles having only User DN.


uidAttributeID

private java.lang.String uidAttributeID
Name of attribute in role entry that point to belonging user

Constructor Detail

StaticGroupLDAPMembershipStrategyImpl

public StaticGroupLDAPMembershipStrategyImpl()
Method Detail

getRoles

public java.util.Set getRoles(LDAPUserImpl user)
                       throws IdentityException
Specified by:
getRoles in interface LDAPMembershipStrategy
Throws:
IdentityException

getUsers

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

assignUsers

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

assignRoles

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

getConnectionContext

public LDAPConnectionContext getConnectionContext()

setConnectionContext

public void setConnectionContext(LDAPConnectionContext connectionContext)

getRoleCtxDN

public java.lang.String getRoleCtxDN()

setRoleCtxDN

public void setRoleCtxDN(java.lang.String roleCtxDN)

getUidAttributeID

public java.lang.String getUidAttributeID()

setUidAttributeID

public void setUidAttributeID(java.lang.String uidAttributeID)