Class SecurityRulesView

  • All Implemented Interfaces:
    org.tentackle.fx.FxController, org.tentackle.pdo.DomainContextProvider, org.tentackle.validate.ScopeConfigurator

    @FxControllerService
    public class SecurityRulesView
    extends org.tentackle.fx.AbstractFxController
    implements org.tentackle.pdo.DomainContextProvider
    CRUD controller for PDOs.
    Author:
    harald
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure()  
      org.tentackle.pdo.DomainContext getDomainContext()  
      void setSecuredObject​(int classId)
      Configures the view to edit security rule sets for a PDO-class.
      void setSecuredObject​(java.lang.Class<?> clazz)
      Configures the view to edit security rule sets for a non-PDO-class.
      void setSecuredObject​(org.tentackle.pdo.PersistentDomainObject<?> pdo)
      Configures the view to edit security rule sets for a PDO.
      static void show​(java.lang.Class<?> clazz, org.tentackle.pdo.PersistentDomainObject<?> pdo)
      Creates and shows the modal stage.
      • Methods inherited from class org.tentackle.fx.AbstractFxController

        createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjections
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.tentackle.pdo.DomainContextProvider

        on, op
    • Constructor Detail

      • SecurityRulesView

        public SecurityRulesView()
    • Method Detail

      • show

        public static void show​(java.lang.Class<?> clazz,
                                org.tentackle.pdo.PersistentDomainObject<?> pdo)
        Creates and shows the modal stage.
        Parameters:
        clazz - the secured non-PDO class, null if PDO
        pdo - the secured PDO, null if non-PDO clazz
      • getDomainContext

        public org.tentackle.pdo.DomainContext getDomainContext()
        Specified by:
        getDomainContext in interface org.tentackle.pdo.DomainContextProvider
      • configure

        public void configure()
        Specified by:
        configure in interface org.tentackle.fx.FxController
        Overrides:
        configure in class org.tentackle.fx.AbstractFxController
      • setSecuredObject

        public void setSecuredObject​(org.tentackle.pdo.PersistentDomainObject<?> pdo)
        Configures the view to edit security rule sets for a PDO.
        Parameters:
        pdo - the pdo
      • setSecuredObject

        public void setSecuredObject​(int classId)
        Configures the view to edit security rule sets for a PDO-class.
        Parameters:
        classId - the class-ID
      • setSecuredObject

        public void setSecuredObject​(java.lang.Class<?> clazz)
        Configures the view to edit security rule sets for a non-PDO-class.
        Parameters:
        clazz - the class