java.lang.Object
org.tentackle.fx.AbstractFxController
org.tentackle.fx.rdc.security.SecurityRulesView
- All Implemented Interfaces:
FxController,DomainContextProvider,org.tentackle.validate.ScopeConfigurator
@FxControllerService
public class SecurityRulesView
extends AbstractFxController
implements DomainContextProvider
Security editor controller.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetSecuredObject(int classId) Configures the view to edit security rule sets for a PDO-class.voidsetSecuredObject(Class<?> clazz) Configures the view to edit security rule sets for a non-PDO-class.voidConfigures the view to edit security rule sets for a PDO.static voidshow(Class<?> clazz, 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, validateInjectionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tentackle.pdo.DomainContextProvider
on, op
-
Constructor Details
-
SecurityRulesView
public SecurityRulesView()
-
-
Method Details
-
show
Creates and shows the modal stage.- Parameters:
clazz- the secured non-PDO class, null if PDOpdo- the secured PDO, null if non-PDO clazz
-
getDomainContext
- Specified by:
getDomainContextin interfaceDomainContextProvider
-
configure
public void configure()- Specified by:
configurein interfaceFxController- Overrides:
configurein classAbstractFxController
-
setSecuredObject
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
Configures the view to edit security rule sets for a non-PDO-class.- Parameters:
clazz- the class
-