pt.digitalis.utils.ldap
Class LDAPEntity

java.lang.Object
  extended by pt.digitalis.utils.ldap.LDAPEntity
Direct Known Subclasses:
LDAPGroup, LDAPUser

public class LDAPEntity
extends Object

Top-level class for the LDAP object hierarchy. Defines common attributes to LDAP entities.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt

Field Summary
static String COMMON_NAME
          The 'common name' attribute.
static String DESCRIPTION
          The 'description' attribute.
static String DISTINGUISHED_NAME
          The 'distinguished name' attribute.
static String NAME
          The 'name' attribute.
 
Constructor Summary
LDAPEntity()
           
 
Method Summary
 String getCommonName()
          Inspector for the common name.
 String getDescription()
          Inspector for the 'description' attribute.
 String getDistinguishedName()
          Inspector for the distinguished name.
 String getName()
          Inspector for the name.
 String getParentGroupDN()
          Inspector for the 'parentGroupDN' attribute.
 void setCommonName(String commonName)
          Modifier for the common name.
 void setDescription(String description)
          Modifier for the 'description' attribute.
 void setDistinguishedName(String distinguishedName)
          Modifier for the distinguished name.
 void setName(String name)
          Modifier for the name.
 void setParentGroupDN(String parentGroupDN)
          Modifier for the 'parentGroupDN' attribute.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISTINGUISHED_NAME

public static final String DISTINGUISHED_NAME
The 'distinguished name' attribute.

See Also:
Constant Field Values

COMMON_NAME

public static final String COMMON_NAME
The 'common name' attribute.

See Also:
Constant Field Values

NAME

public static final String NAME
The 'name' attribute.

See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
The 'description' attribute.

See Also:
Constant Field Values
Constructor Detail

LDAPEntity

public LDAPEntity()
Method Detail

getDistinguishedName

public String getDistinguishedName()
Inspector for the distinguished name.

Returns:
the distinguishedName

setDistinguishedName

public void setDistinguishedName(String distinguishedName)
Modifier for the distinguished name.

Parameters:
distinguishedName - the distinguishedName to set

getCommonName

public String getCommonName()
Inspector for the common name.

Returns:
the commonName

setCommonName

public void setCommonName(String commonName)
Modifier for the common name.

Parameters:
commonName - the commonName to set

getName

public String getName()
Inspector for the name.

Returns:
the name

setName

public void setName(String name)
Modifier for the name.

Parameters:
name - the name to set

getDescription

public String getDescription()
Inspector for the 'description' attribute.

Returns:
the description value

setDescription

public void setDescription(String description)
Modifier for the 'description' attribute.

Parameters:
description - the new description value to set

getParentGroupDN

public String getParentGroupDN()
Inspector for the 'parentGroupDN' attribute.

Returns:
the user's main group DN

setParentGroupDN

public void setParentGroupDN(String parentGroupDN)
Modifier for the 'parentGroupDN' attribute.

Parameters:
parentGroupDN - the new main group name to set

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 Digitalis Informática Lda. All Rights Reserved.