- java.lang.Object
-
- org.tentackle.fx.AbstractFxController
-
- org.tentackle.fx.rdc.security.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.DomainContextProviderCRUD controller for PDOs.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description SecurityRulesView()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure()org.tentackle.pdo.DomainContextgetDomainContext()voidsetSecuredObject(int classId)Configures the view to edit security rule sets for a PDO-class.voidsetSecuredObject(java.lang.Class<?> clazz)Configures the view to edit security rule sets for a non-PDO-class.voidsetSecuredObject(org.tentackle.pdo.PersistentDomainObject<?> pdo)Configures the view to edit security rule sets for a PDO.static voidshow(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
-
-
-
-
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 PDOpdo- the secured PDO, null if non-PDO clazz
-
getDomainContext
public org.tentackle.pdo.DomainContext getDomainContext()
- Specified by:
getDomainContextin interfaceorg.tentackle.pdo.DomainContextProvider
-
configure
public void configure()
- Specified by:
configurein interfaceorg.tentackle.fx.FxController- Overrides:
configurein classorg.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
-
-