Interface SecurityDialogFactory

  • All Known Implementing Classes:
    DefaultSecurityDialogFactory

    public interface SecurityDialogFactory
    A factory for security dialogs.
    Author:
    harald
    • Method Detail

      • isDialogAllowed

        default boolean isDialogAllowed​(DomainContext context)
        Returns whether user determined by given domain context is allowed to use the security dialog.
        Parameters:
        context - the domain context
        Returns:
        true if allowed
      • selectGrantee

        void selectGrantee​(javafx.stage.Window owner,
                           DomainContext context,
                           Consumer<PersistentDomainObject<?>> grantee)
        Selects a grantee.
        This is usually a search dialog for users and/or usergroups.
        Parameters:
        owner - the owner window
        context - the domain context
        grantee - the grantee consumer, invoked with null if none selected
      • selectDomainContextObject

        void selectDomainContextObject​(javafx.stage.Window owner,
                                       DomainContext context,
                                       Consumer<PersistentDomainObject<?>> contextPdo)
        Selects a domain context PDO.
        This is usually a search dialog for PDOs describing a domain context.
        Parameters:
        owner - the owner window
        context - the domain context
        contextPdo - the consumer of the context PDO, invoked with null if none selected
      • showDialog

        void showDialog​(PersistentDomainObject<?> pdo)
        Shows a dialog to edit security rule sets for a PDO.
        Parameters:
        pdo - the pdo
      • showDialog

        void showDialog​(int classId,
                        DomainContext context)
        Shows a dialog to edit security rule sets for a PDO-class.
        Parameters:
        classId - the class-ID
        context - the domain context
      • showDialog

        void showDialog​(Class<?> clazz)
        Shows a dialog to edit security rule sets for a non-PDO-class.
        Parameters:
        clazz - the class