it.eng.rdlab.um.ldap.group.bean
Class LdapGroupModel

java.lang.Object
  extended by it.eng.rdlab.um.beans.GenericModel
      extended by it.eng.rdlab.um.group.beans.GroupModel
          extended by it.eng.rdlab.um.ldap.group.bean.LdapGroupModel
All Implemented Interfaces:
LdapModelConstants

public class LdapGroupModel
extends it.eng.rdlab.um.group.beans.GroupModel
implements LdapModelConstants

An group is an Ldap leaf with the following features: ObjectClass at least "posixGroup" or "groupOfNames" or "groupOfUniqueNames" The id of the group is the DN and the common name (CN) is mandatory Specific classes are implemented for posixGroup, groupOfNames and groupOfUniqueNames

Author:
Ciro Formisano

Field Summary
static String DESCRIPTION
           
static String GROUP_CN
           
static String MEMBERS_DN
           
static String OBJECT_CLASS_GROUP
           
static String ROLE
           
 
Fields inherited from interface it.eng.rdlab.um.ldap.LdapModelConstants
OBJECT_CLASS_TOP, OBJECT_CLASSES
 
Constructor Summary
LdapGroupModel()
           
LdapGroupModel(it.eng.rdlab.um.group.beans.GroupModel groupModel)
           
LdapGroupModel(String groupDN, String groupCN, String description, List<String> objectClasses)
           
 
Method Summary
 void addExtraAttribute(String name, String value)
           
 void addMemberDN(String memberDn)
           
 void addObjectClass(String objectClassName)
           
 String getDN()
           
 List<String> getMemberDNS()
           
 List<String> getObjectClasses()
           
static String getRole()
           
 void setDN(String groupDN)
           
 void setRole(String role)
           
 
Methods inherited from class it.eng.rdlab.um.group.beans.GroupModel
getDescription, getGroupId, getGroupName, getParentGroupId, setDescription, setGroupId, setGroupName, setParentGroupId
 
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_GROUP

public static final String OBJECT_CLASS_GROUP
See Also:
Constant Field Values

MEMBERS_DN

public static final String MEMBERS_DN
See Also:
Constant Field Values

GROUP_CN

public static final String GROUP_CN
See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
See Also:
Constant Field Values

ROLE

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

LdapGroupModel

public LdapGroupModel()

LdapGroupModel

public LdapGroupModel(it.eng.rdlab.um.group.beans.GroupModel groupModel)

LdapGroupModel

public LdapGroupModel(String groupDN,
                      String groupCN,
                      String description,
                      List<String> objectClasses)
Method Detail

setDN

public void setDN(String groupDN)

getDN

public String getDN()

getRole

public static String getRole()

setRole

public void setRole(String role)

getObjectClasses

public List<String> getObjectClasses()

addObjectClass

public void addObjectClass(String objectClassName)

addMemberDN

public void addMemberDN(String memberDn)

getMemberDNS

public List<String> getMemberDNS()

addExtraAttribute

public void addExtraAttribute(String name,
                              String value)


Copyright © 2013. All Rights Reserved.