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

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

public class LDAPUser
extends DirContextAdaptor
implements User

LDAP Representation of an User

Since:
Aug 30, 2012
Author:
anil saldhana

Field Summary
protected  String email
           
protected  String firstName
           
protected  String fullName
           
protected  String lastName
           
protected  String userDNSuffix
           
protected  String userid
           
 
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.User
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
LDAPUser()
           
 
Method Summary
static LDAPUser create(Attributes attributes, String userDNSuffix)
           
 String getDN()
           
 String getEmail()
           
 String getFirstName()
           
 String getFullName()
           
 String getId()
           
 String getLastName()
           
 void setEmail(String email)
           
 void setFirstName(String firstName)
           
 void setFullName(String fullName)
           
 void setId(String id)
           
 void setLastName(String lastName)
           
 void setUserDNSuffix(String udn)
           
 
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
 

Field Detail

userid

protected String userid

firstName

protected String firstName

lastName

protected String lastName

fullName

protected String fullName

email

protected String email

userDNSuffix

protected String userDNSuffix
Constructor Detail

LDAPUser

public LDAPUser()
Method Detail

setUserDNSuffix

public void setUserDNSuffix(String udn)

getDN

public String getDN()

setId

public void setId(String id)

getId

public String getId()
Specified by:
getId in interface User

getFirstName

public String getFirstName()
Specified by:
getFirstName in interface User

setFirstName

public void setFirstName(String firstName)
Specified by:
setFirstName in interface User

getLastName

public String getLastName()
Specified by:
getLastName in interface User

setLastName

public void setLastName(String lastName)
Specified by:
setLastName in interface User

getFullName

public String getFullName()
Specified by:
getFullName in interface User

setFullName

public void setFullName(String fullName)

getEmail

public String getEmail()
Specified by:
getEmail in interface User

setEmail

public void setEmail(String email)
Specified by:
setEmail in interface User

create

public static LDAPUser create(Attributes attributes,
                              String userDNSuffix)


Copyright © 2012. All Rights Reserved.