Class DSE

java.lang.Object
com.isode.dsapi.config.DSE

public class DSE extends Object
All knowledge entries in the DSAIT cache. Stores the original entries and modifications to them.
Since:
15.0
Author:
dsm
  • Constructor Details

    • DSE

      public DSE(Entry entry)
      Construct from an entry.
      Parameters:
      entry - Entry
    • DSE

      public DSE(DN dn)
      Construct a dummy DSE from DN.
      Parameters:
      dn - DN
  • Method Details

    • setEntry

      protected void setEntry(Entry inEntry)
      Set the entry contents. dseType would be set to null if it can't be determined.
      Parameters:
      inEntry - Entry
    • getRDN

      public RDN getRDN()
      Get the RDN.
      Returns:
      RDN of stored entry
    • getDN

      public DN getDN()
      Get the DN.
      Returns:
      DN of stored entry
    • addChild

      public void addChild(DSE dse)
      Add a child DSE.
      Parameters:
      dse - child to add using DSE object
    • addChild

      public void addChild(Entry entry)
      Add a child DSE.
      Parameters:
      entry - child to add using entry object
    • dseType

      public DSEType dseType()
      Get the DSE type.
      Returns:
      DSE type
    • getAttr

      public Attribute getAttr(AttributeType type)
      Get an attribute of the entry.
      Parameters:
      type - attribute type
      Returns:
      Return the found attribute or null if not present.
    • findChild

      public DSE findChild(RDN rdn)
      Get a child DSE.
      Parameters:
      rdn - RDN of child
      Returns:
      Child DSE or null if not found
    • getChildren

      public Collection<DSE> getChildren()
      For iterating over the set of children.
      Returns:
      Set of children, won't be null
    • getEntry

      public Entry getEntry()
      Get the stored entry
      Returns:
      entry