Class 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 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.
    • 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'.