Class LDAPEntryPanel

    • Constructor Detail

      • LDAPEntryPanel

        public LDAPEntryPanel()
        Default constructor.
    • Method Detail

      • okClicked

        public void okClicked()
        Description copied from class: StatusGenericPanel
        Notification that the ok button has been clicked, the panel is in charge of doing whatever is required (close the dialog, launch a task, etc.).
        Specified by:
        okClicked in class StatusGenericPanel
      • setView

        public void setView​(LDAPEntryPanel.View view)
        Sets the view to be displayed by this panel.
        Parameters:
        view - the view.
      • entryReadError

        public void entryReadError​(EntryReadErrorEvent ev)
        Displays a message informing that an error occurred reading the entry.
        Specified by:
        entryReadError in interface EntryReadListener
        Parameters:
        ev - the entry read error event.
      • referralSolveError

        public void referralSolveError​(DN dn,
                                       String[] referrals,
                                       BasicNodeError error)
        Displays a message informing that an error occurred resolving a referral.
        Parameters:
        dn - the DN of the local entry.
        referrals - the list of referrals defined in the entry.
        error - the error that occurred resolving the referral.
      • noEntrySelected

        public void noEntrySelected()
        Displays a panel informing that nothing is selected.
      • multipleEntriesSelected

        public void multipleEntriesSelected()
        Displays a panel informing that multiple entries are selected.
      • getTitle

        public org.forgerock.i18n.LocalizableMessage getTitle()
        Description copied from class: StatusGenericPanel
        Returns the title that will be used as title of the dialog.
        Specified by:
        getTitle in class StatusGenericPanel
        Returns:
        the title that will be used as title of the dialog.
      • canDelete

        public boolean canDelete​(DN dn)
        Returns true if the provided DN corresponds to an entry that can be deleted and false otherwise.
        Parameters:
        dn - the DN of the entry.
        Returns:
        true if the provided DN corresponds to an entry that can be deleted and false otherwise.
      • getController

        public BrowserController getController()
        Returns the browser controller in charge of the tree.
        Returns:
        the browser controller in charge of the tree.
      • setController

        public void setController​(BrowserController controller)
        Sets the browser controller in charge of the tree.
        Parameters:
        controller - the browser controller in charge of the tree.
      • getTreePath

        public TreePath getTreePath()
        Returns the tree path associated with the node that is being displayed.
        Returns:
        the tree path associated with the node that is being displayed.
      • setTreePath

        public void setTreePath​(TreePath treePath)
        Sets the tree path associated with the node that is being displayed.
        Parameters:
        treePath - the tree path associated with the node that is being displayed.
      • mustCheckUnsavedChanges

        public boolean mustCheckUnsavedChanges()
        Method used to know if there are unsaved changes or not. It is used by the entry selection listener when the user changes the selection.
        Returns:
        true if there are unsaved changes (and so the selection of the entry should be cancelled) and false otherwise.
      • checkUnsavedChanges

        public UnsavedChangesDialog.Result checkUnsavedChanges()
        Tells whether the user chose to save the changes in the panel, to not save them or simply canceled the selection change in the tree.
        Returns:
        the value telling whether the user chose to save the changes in the panel, to not save them or simply canceled the selection in the tree.