Class DefaultSecurityDialogFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isDomainContextUsed()
      Returns whether the domain context is used in security rules.
      If used, SecurityDialogFactory.selectDomainContextObject(javafx.stage.Window, org.tentackle.pdo.DomainContext) must be overridden by the application.
      <T extends org.tentackle.pdo.PersistentDomainObject<T>>
      T
      selectDomainContextObject​(javafx.stage.Window owner, org.tentackle.pdo.DomainContext context)
      Selects a domain context PDO.
      This is usually a search dialog for PDOs describing a domain context.
      <T extends org.tentackle.pdo.PersistentDomainObject<T>>
      T
      selectGrantee​(javafx.stage.Window owner, org.tentackle.pdo.DomainContext context)
      Selects a grantee.
      This is usually a search dialog for users and/or usergroups.
      void showDialog​(int classId, org.tentackle.pdo.DomainContext context)
      Shows a dialog to edit security rule sets for a PDO-class.
      void showDialog​(java.lang.Class<?> clazz)
      Shows a dialog to edit security rule sets for a non-PDO-class.
      void showDialog​(org.tentackle.pdo.PersistentDomainObject<?> pdo)
      Shows a dialog to edit security rule sets for a PDO.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSecurityDialogFactory

        public DefaultSecurityDialogFactory()
    • Method Detail

      • selectGrantee

        public <T extends org.tentackle.pdo.PersistentDomainObject<T>> T selectGrantee​(javafx.stage.Window owner,
                                                                                       org.tentackle.pdo.DomainContext context)
        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
        Type Parameters:
        T - the PDO type
        Parameters:
        owner - the owner window
        context - the domain context
        Returns:
        the grantee, null if none selected
      • selectDomainContextObject

        public <T extends org.tentackle.pdo.PersistentDomainObject<T>> T selectDomainContextObject​(javafx.stage.Window owner,
                                                                                                   org.tentackle.pdo.DomainContext context)
        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
        Type Parameters:
        T - the PDO type
        Parameters:
        owner - the owner window
        context - the domain context
        Returns:
        the context PDO, 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