it.eng.rdlab.um.ldap.user.bean
Class LdapUserModel

java.lang.Object
  extended by it.eng.rdlab.um.beans.GenericModel
      extended by it.eng.rdlab.um.user.beans.UserModel
          extended by it.eng.rdlab.um.ldap.user.bean.LdapUserModel
All Implemented Interfaces:
LdapModelConstants

public class LdapUserModel
extends it.eng.rdlab.um.user.beans.UserModel
implements LdapModelConstants

An user is an Ldap leaf with the following features: ObjectClass at least "person" (probably with the extra fields provided by "inetOrgPerson" class Fields unique and in string format The fullName of an element is the DN and the id is the uuid element The other parameters are: -- cn (common name) - mandatory -- sn (surname) - mandatory

Author:
Ciro Formisano

Field Summary
static String CERTIFICATE
           
static String COMMON_NAME
           
static String EMAIL
           
static String ENCRYPTED_PASSWORD_LABEL
           
static String OBJECT_CLASS_INETORGPERSON
           
static String OBJECT_CLASS_ORGANIZATIONALPERSON
           
static String OBJECT_CLASS_PERSON
           
static String PASSWORD
           
static String SURNAME
           
static String UID
           
 
Fields inherited from interface it.eng.rdlab.um.ldap.LdapModelConstants
OBJECT_CLASS_TOP, OBJECT_CLASSES
 
Constructor Summary
LdapUserModel()
           
LdapUserModel(String uuid, String dn, List<String> objectClasses)
           
 
Method Summary
 void addExtraAttribute(String name, String value)
           
 void addObjectClass(String objectClassName)
           
 String getCN()
           
 List<String> getObjectClasses()
           
 String getSN()
           
 void setCN(String cn)
           
 void setEncryptedPasswordLabel()
           
 void setSN(String sn)
           
 
Methods inherited from class it.eng.rdlab.um.user.beans.UserModel
getFullname, getPassword, getUserId, setFullname, setPassword, setUserId
 
Methods inherited from class it.eng.rdlab.um.beans.GenericModel
addObject, getId, getObject, getObjectMap, getStringObject, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_CLASS_PERSON

public static final String OBJECT_CLASS_PERSON
See Also:
Constant Field Values

OBJECT_CLASS_INETORGPERSON

public static final String OBJECT_CLASS_INETORGPERSON
See Also:
Constant Field Values

OBJECT_CLASS_ORGANIZATIONALPERSON

public static final String OBJECT_CLASS_ORGANIZATIONALPERSON
See Also:
Constant Field Values

COMMON_NAME

public static final String COMMON_NAME
See Also:
Constant Field Values

SURNAME

public static final String SURNAME
See Also:
Constant Field Values

PASSWORD

public static final String PASSWORD
See Also:
Constant Field Values

UID

public static final String UID
See Also:
Constant Field Values

EMAIL

public static final String EMAIL
See Also:
Constant Field Values

CERTIFICATE

public static final String CERTIFICATE
See Also:
Constant Field Values

ENCRYPTED_PASSWORD_LABEL

public static final String ENCRYPTED_PASSWORD_LABEL
See Also:
Constant Field Values
Constructor Detail

LdapUserModel

public LdapUserModel()

LdapUserModel

public LdapUserModel(String uuid,
                     String dn,
                     List<String> objectClasses)
Method Detail

setCN

public void setCN(String cn)

setSN

public void setSN(String sn)

getCN

public String getCN()

getSN

public String getSN()

getObjectClasses

public List<String> getObjectClasses()

addObjectClass

public void addObjectClass(String objectClassName)

setEncryptedPasswordLabel

public void setEncryptedPasswordLabel()

addExtraAttribute

public void addExtraAttribute(String name,
                              String value)


Copyright © 2013. All Rights Reserved.