Class SearchResultEntryDsml

    • Constructor Detail

      • SearchResultEntryDsml

        public SearchResultEntryDsml​(LdapApiService codec)
        Creates a new getDecoratedMessage() of SearchResultEntryDsml.
        Parameters:
        codec - The LDAP Service to use
      • SearchResultEntryDsml

        public SearchResultEntryDsml​(LdapApiService codec,
                                     SearchResultEntry ldapMessage)
        Creates a new getDecoratedMessage() of SearchResultEntryDsml.
        Parameters:
        codec - The LDAP Service to use
        ldapMessage - the message to decorate
    • Method Detail

      • getCurrentAttribute

        public Attribute getCurrentAttribute()
        Returns:
        The current ATtributeType
      • addAttribute

        public void addAttribute​(String type)
                          throws LdapException
        Create a new attribute
        Parameters:
        type - The attribute's type
        Throws:
        LdapException - If we can't add the new attributeType
      • addAttributeValue

        public void addAttributeValue​(Object value)
                               throws LdapException
        Add a new value to the current attribute
        Parameters:
        value - The added value
        Throws:
        LdapException - If we can't add the new attributeType
      • toDsml

        public Element toDsml​(Element root)
        Converts the request/reponse to its XML representation in the DSMLv2 format
        Specified by:
        toDsml in interface DsmlDecorator<SearchResultEntry>
        Parameters:
        root - the root dom4j Element
        Returns:
        the dom4j Element corresponding to the entry.
      • setObjectName

        public void setObjectName​(Dn objectName)
        Set the entry Dn
        Specified by:
        setObjectName in interface SearchResultEntry
        Parameters:
        objectName - The objectName to set.
      • setEntry

        public void setEntry​(Entry entry)
        Initialize the entry.
        Specified by:
        setEntry in interface SearchResultEntry
        Parameters:
        entry - the entry