Class DefaultSecurityDialogFactory

    • Constructor Detail

      • DefaultSecurityDialogFactory

        public DefaultSecurityDialogFactory()
    • Method Detail

      • selectGrantee

        public void selectGrantee​(javafx.stage.Window owner,
                                  org.tentackle.pdo.DomainContext context,
                                  java.util.function.Consumer<org.tentackle.pdo.PersistentDomainObject<?>> grantee)
        Selects a grantee.
        This is usually a search dialog for users and/or usergroups.

        This needs to be implemented by the application!

        Specified by:
        selectGrantee in interface SecurityDialogFactory
        Parameters:
        owner - the owner window
        context - the domain context
        grantee - the grantee consumer, invoked with null if none selected
      • selectDomainContextObject

        public void selectDomainContextObject​(javafx.stage.Window owner,
                                              org.tentackle.pdo.DomainContext context,
                                              java.util.function.Consumer<org.tentackle.pdo.PersistentDomainObject<?>> contextPdo)
        Description copied from interface: SecurityDialogFactory
        Selects a domain context PDO.
        This is usually a search dialog for PDOs describing a domain context.
        Specified by:
        selectDomainContextObject in interface SecurityDialogFactory
        Parameters:
        owner - the owner window
        context - the domain context
        contextPdo - the consumer of the context PDO, invoked with null if none selected
      • showDialog

        public void showDialog​(org.tentackle.pdo.PersistentDomainObject<?> pdo)
        Description copied from interface: SecurityDialogFactory
        Shows a dialog to edit security rule sets for a PDO.
        Specified by:
        showDialog in interface SecurityDialogFactory
        Parameters:
        pdo - the pdo
      • showDialog

        public void showDialog​(int classId,
                               org.tentackle.pdo.DomainContext context)
        Description copied from interface: SecurityDialogFactory
        Shows a dialog to edit security rule sets for a PDO-class.
        Specified by:
        showDialog in interface SecurityDialogFactory
        Parameters:
        classId - the class-ID
        context - the domain context
      • showDialog

        public void showDialog​(java.lang.Class<?> clazz)
        Description copied from interface: SecurityDialogFactory
        Shows a dialog to edit security rule sets for a non-PDO-class.
        Specified by:
        showDialog in interface SecurityDialogFactory
        Parameters:
        clazz - the class