Class BasicNode

    • Constructor Detail

      • BasicNode

        public BasicNode​(DN dn)
        Constructor.
        Parameters:
        dn - the DN of the entry.
    • Method Detail

      • getDN

        public DN getDN()
        Returns the DN of the local entry.
        Returns:
        the DN of the local entry.
      • getRDN

        public String getRDN()
        Returns the RDN value of the local entry.
        Returns:
        the RDN value of the local entry.
      • getRDNWithAttributeName

        public String getRDNWithAttributeName()
        Returns the RDN (with the attribute name) of the local entry.
        Returns:
        the RDN (with the attribute name) of the local entry.
      • getRemoteUrl

        public LDAPURL getRemoteUrl()
        Returns the URL of the remote entry (if the node does not represent a referral it will be null).
        Returns:
        the URL of the remote entry (if the node does not represent a referral it will be null).
      • setRemoteUrl

        public void setRemoteUrl​(LDAPURL url)
        Sets the remote URL of the node.
        Parameters:
        url - the remote URL of the node.
      • setRemoteUrl

        public void setRemoteUrl​(String url)
        Sets the remote URL of the node.
        Parameters:
        url - the remote URL of the node.
      • getRemoteRDN

        public String getRemoteRDN()
        Returns the RDN value of the remote entry. If the node does not represent a referral it will return null.
        Returns:
        the RDN value of the remote entry.
      • getRemoteRDNWithAttributeName

        public String getRemoteRDNWithAttributeName()
        Returns the RDN value of the remote entry (with the name of the attribute). If the node does not represent a referral it will return null.
        Returns:
        the RDN value of the remote entry (with the name of the attribute).
      • setLeaf

        public void setLeaf​(boolean isLeaf)
        Sets whether the node is a leaf or not.
        Parameters:
        isLeaf - whether the node is a leaf or not.
      • isLeaf

        public boolean isLeaf()
        Returns true if the node is a leaf and false otherwise.
        Specified by:
        isLeaf in interface TreeNode
        Overrides:
        isLeaf in class DefaultMutableTreeNode
        Returns:
        true if the node is a leaf and false otherwise.
      • isRefreshNeededOnExpansion

        public boolean isRefreshNeededOnExpansion()
        Returns true if the node must be refreshed when it is expanded and false otherwise.
        Returns:
        true if the node must be refreshed when it is expanded and false otherwise.
      • setRefreshNeededOnExpansion

        public void setRefreshNeededOnExpansion​(boolean refreshNeededOnExpansion)
        Sets whether the node must be refreshed when it is expanded or not.
        Parameters:
        refreshNeededOnExpansion - whether the node must be refreshed when it is expanded or not.
      • isObsolete

        public boolean isObsolete()
        Returns whether the node is obsolete (and must be refreshed) or not.
        Returns:
        true if the node is obsolete and false otherwise.
      • setObsolete

        public void setObsolete​(boolean obsolete)
        Sets whether this is node is obsolete (and must be refreshed) or not.
        Parameters:
        obsolete - whether this is node is obsolete (and must be refreshed) or not.
      • getError

        public BasicNodeError getError()
        Returns the error that occurred when updating the node. Returns null if no error occurred.
        Returns:
        the error that occurred when updating the node. Returns null if no error occurred.
      • setError

        public void setError​(BasicNodeError error)
        Sets the error that occurred when updating the node.
        Parameters:
        error - the error.
      • getNumSubOrdinates

        public int getNumSubOrdinates()
        Returns the number of subordinates of the entry.
        Returns:
        the number of subordinates of the entry.
      • setNumSubOrdinates

        public void setNumSubOrdinates​(int number)
        Sets the number of subordinates of the entry.
        Parameters:
        number - the number of subordinates of the entry.
      • hasSubOrdinates

        public boolean hasSubOrdinates()
        Returns whether the entry has subordinates or not.
        Returns:
        true if the entry has subordinates and false otherwise.
      • setHasSubOrdinates

        public void setHasSubOrdinates​(boolean hasSubOrdinates)
        Sets the whether the entry has subordinates or not.
        Parameters:
        hasSubOrdinates - whether the entry has subordinates or not.
      • getReferral

        public String[] getReferral()
        Returns the referrals of the entry. Returns null if this node is not a referral.
        Returns:
        the referrals of the entry. Returns null if this node is not a referral.
      • setReferral

        public void setReferral​(String[] referral)
        Sets the referrals of the entry.
        Parameters:
        referral - the referrals of the entry.
      • getDisplayName

        public String getDisplayName()
        Returns the label that will be used to display the entry.
        Returns:
        the label that will be used to display the entry.
      • setDisplayName

        public void setDisplayName​(String name)
        Sets the label that will be used to display the entry.
        Parameters:
        name - the label that will be used to display the entry.
      • getIcon

        public Icon getIcon()
        Returns the icon associated with this node.
        Returns:
        the icon associated with this node.
      • setIcon

        public void setIcon​(Icon icon)
        Sets the icon associated with this node.
        Parameters:
        icon - the icon associated with this node.
      • getFontStyle

        public int getFontStyle()
        Returns the font style to be used to render this node.
        Returns:
        the font style to be used to render this node.
      • setFontStyle

        public void setFontStyle​(int style)
        Sets the font style to be used to render this node.
        Parameters:
        style - the font style to be used to render this node.
      • getObjectClassValues

        public String[] getObjectClassValues()
        Returns the object class values associated with the entry.
        Returns:
        the object class values associated with the entry.
      • setObjectClassValues

        public void setObjectClassValues​(String[] objectClassValues)
        Sets the object class values associated with the entry.
        Parameters:
        objectClassValues - the object class values associated with the entry.
      • isSizeLimitReached

        public boolean isSizeLimitReached()
        Returns true if the size limit was reached updating this node (and searching its children) and false otherwise.
        Returns:
        true if the size limit was reached updating this node (and searching its children) and false otherwise.
      • setSizeLimitReached

        public void setSizeLimitReached​(boolean sizeLimitReached)
        Sets whether the size limit was reached updating this node (and searching its children).
        Parameters:
        sizeLimitReached - whether the size limit was reached updating this node (and searching its children).