Class AbstractNewEntryPanel

    • Field Detail

      • parentNode

        protected BasicNode parentNode
        The parent node that was selected when the user clicked on the new entry action.
    • Constructor Detail

      • AbstractNewEntryPanel

        public AbstractNewEntryPanel()
    • Method Detail

      • setParent

        public void setParent​(BasicNode parentNode,
                              BrowserController controller)
        Sets the parent and the browser controller for this panel.
        Parameters:
        parentNode - the selected parent node (or null if no parent node was selected).
        controller - the browser controller.
      • getProgressDialogTitle

        protected abstract org.forgerock.i18n.LocalizableMessage getProgressDialogTitle()
        Returns the title for the progress dialog.
        Returns:
        the title for the progress dialog.
      • getLDIF

        protected abstract String getLDIF()
        Returns the LDIF representation of the new entry.
        Returns:
        the LDIF representation of the new entry.
      • checkSyntax

        protected abstract void checkSyntax​(ArrayList<org.forgerock.i18n.LocalizableMessage> errors)
        Updates the list of errors by checking the syntax of the entry.
        Parameters:
        errors - the list of errors that must be updated.
      • checkSyntaxBackground

        protected boolean checkSyntaxBackground()
        Returns true if the syntax of the entry must be checked in the background and false otherwise.
        Returns:
        true if the syntax of the entry must be checked in the background and false otherwise.
      • 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
      • configurationChanged

        public void configurationChanged​(ConfigurationChangeEvent ev)
        Description copied from interface: ConfigChangeListener
        Method that is called when a change in the configuration occurred.
        Parameters:
        ev - the configuration change event.
      • getEntry

        protected Entry getEntry()
                          throws LDIFException,
                                 IOException
        Returns the entry object representing what the user provided as data.
        Returns:
        the entry object representing what the user provided as data.
        Throws:
        LDIFException - if there is an error with the LDIF syntax.
        IOException - if there is an error creating the internal stream.