Class LDIFViewEntryPanel

    • Constructor Detail

      • LDIFViewEntryPanel

        public LDIFViewEntryPanel()
        Default constructor.
    • Method Detail

      • update

        public void update​(Entry sr,
                           boolean isReadOnly,
                           TreePath path)
        Description copied from class: ViewEntryPanel
        Updates the contents of the panel.
        Specified by:
        update in class ViewEntryPanel
        Parameters:
        sr - the search result to be used to update the panel.
        isReadOnly - whether the entry is read-only or not.
        path - the tree path associated with the entry in the tree.
      • getDisplayedDN

        protected String getDisplayedDN()
        Description copied from class: ViewEntryPanel
        Returns the DN of the entry that the user is editing (it might differ from the DN of the entry in the tree if the user modified the DN).
        Specified by:
        getDisplayedDN in class ViewEntryPanel
        Returns:
        the DN of the entry that the user is editing.
      • getValues

        protected List<Object> getValues​(String attrName)
        Description copied from class: ViewEntryPanel
        Gets the values associated with a given attribute. The values are the ones displayed in the panel.
        Specified by:
        getValues in class ViewEntryPanel
        Parameters:
        attrName - the attribute name.
        Returns:
        the values associated with a given attribute.
      • getEntry

        public Entry getEntry()
                       throws OpenDsException
        Description copied from class: ViewEntryPanel
        Returns an Entry object representing what the panel is displaying.
        Specified by:
        getEntry in class ViewEntryPanel
        Returns:
        an Entry object representing what the panel is displaying.
        Throws:
        OpenDsException - if the entry cannot be generated (in particular if the user provided invalid data).