Class Context
- java.lang.Object
-
- org.apache.directory.fortress.core.model.Context
-
public class Context extends Object
This class contains the Context id which is used as container for segregating data by customer within the LDAP Directory Information Tree.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Context()
Default constructor used byFortressAntTask
Context(String name, String description)
Generate instance of context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Get the description for the context.String
getName()
Get the id to use for sub-directory within the DIT.void
setDescription(String description)
Set the description for the context.void
setName(String name)
Set the id to use for sub-directory within the DIT.String
toString()
-
-
-
Constructor Detail
-
Context
public Context(String name, String description)
Generate instance of context.- Parameters:
name
- contains the id to use for sub-directory within the DIT.description
- maps to 'description' attribute in 'organizationalUnit' object class.
-
Context
public Context()
Default constructor used byFortressAntTask
-
-
Method Detail
-
getName
public String getName()
Get the id to use for sub-directory within the DIT. This attribute is required.- Returns:
- name maps to 'dcObject' object class.
-
setName
public void setName(String name)
Set the id to use for sub-directory within the DIT. This attribute is required.- Parameters:
name
- maps to 'dcObject' object class.
-
getDescription
public String getDescription()
Get the description for the context. This value is not required or constrained but is validated on reasonability.- Returns:
- field maps to 'description' attribute on 'organizationalUnit'.
-
setDescription
public void setDescription(String description)
Set the description for the context. This value is not required or constrained but is validated on reasonability.- Parameters:
description
- maps to to 'description' attribute on 'organizationalUnit'.
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-