org.jboss.picketlink.idm.internal.ldap
Class LDAPRole

java.lang.Object
  extended by org.jboss.picketlink.idm.internal.ldap.DirContextAdaptor
      extended by org.jboss.picketlink.idm.internal.ldap.LDAPRole
All Implemented Interfaces:
Context, DirContext, IdentityType, Role

public class LDAPRole
extends DirContextAdaptor
implements Role

Implementation of Role for storage in ldap

Since:
Aug 31, 2012
Author:
anil saldhana

Field Summary
 
Fields inherited from class org.jboss.picketlink.idm.internal.ldap.DirContextAdaptor
attributes, COMMA, EQUAL, handler, SPACE_STRING
 
Fields inherited from interface org.jboss.picketlink.idm.model.Role
KEY_PREFIX
 
Fields inherited from interface javax.naming.directory.DirContext
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
LDAPRole()
           
 
Method Summary
 void addUser(LDAPUser user)
           
static LDAPRole create(Attributes attributes, String roleDNSuffix)
           
 String getDN()
           
 String getName()
           
 void removeUser(LDAPUser user)
           
 void setName(String roleName)
           
 void setRoleDNSuffix(String rdns)
           
 
Methods inherited from class org.jboss.picketlink.idm.internal.ldap.DirContextAdaptor
addToEnvironment, bind, bind, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getAttribute, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getAttributeValues, getCreationDate, getEnvironment, getExpirationDate, getKey, getNameInNamespace, getNameParser, getNameParser, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, isEnabled, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, rebind, rebind, removeAttribute, removeFromEnvironment, rename, rename, search, search, search, search, search, search, search, search, setAttribute, setAttribute, setLDAPChangeNotificationHandler, unbind, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.picketlink.idm.model.IdentityType
getAttribute, getAttributes, getAttributeValues, getCreationDate, getExpirationDate, getKey, isEnabled, removeAttribute, setAttribute, setAttribute
 

Constructor Detail

LDAPRole

public LDAPRole()
Method Detail

setRoleDNSuffix

public void setRoleDNSuffix(String rdns)

getDN

public String getDN()

setName

public void setName(String roleName)

getName

public String getName()
Specified by:
getName in interface Role

addUser

public void addUser(LDAPUser user)

removeUser

public void removeUser(LDAPUser user)

create

public static LDAPRole create(Attributes attributes,
                              String roleDNSuffix)


Copyright © 2012. All Rights Reserved.