- All Implemented Interfaces:
FxController,PdoController<Security>,DomainContextProvider,PdoProvider<Security>,org.tentackle.validate.ScopeConfigurator
Security permissions editor.
- Author:
- harald
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPdo()voidRequests the initial focus after stage is shown.voidsetChangeable(boolean changeable) Sets the changeability of the editor.voidSets the PDO.voidsetSecurableClass(Class<?> clazz) Sets the securable class.
Adds all applying permissions to the view.Methods inherited from class org.tentackle.fx.rdc.PdoEditor
getDomainContext, getValidationMappers, getValidationPath, isChangeable, isEditAllowed, isNewAllowed, isRemoveAllowed, isViewAllowed, print, validateFormMethods inherited from class org.tentackle.fx.AbstractFxController
configure, 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
isWithinContext, isWithinContext, on, on, op, opMethods inherited from interface org.tentackle.fx.FxController
configure, getBinder, getContainer, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjectionsMethods inherited from interface org.tentackle.pdo.PdoProvider
on, on
-
Field Details
-
DENY_STYLE
CSS style for "denied".- See Also:
-
ALLOW_STYLE
CSS style for "allowed".- See Also:
-
NA_STYLE
CSS style for "not applicable".- See Also:
-
-
Constructor Details
-
SecurityEditor
public SecurityEditor()Creates the security editor.
-
-
Method Details
-
getPdo
-
setPdo
Description copied from interface:PdoControllerSets the PDO.- Parameters:
pdo- the pdo
-
setSecurableClass
Sets the securable class.
Adds all applying permissions to the view.- Parameters:
clazz- the securable class
-
requestInitialFocus
public void requestInitialFocus()Description copied from class:PdoEditorRequests the initial focus after stage is shown.- Specified by:
requestInitialFocusin classPdoEditor<Security>
-
setChangeable
public void setChangeable(boolean changeable) Sets the changeability of the editor.- Overrides:
setChangeablein classPdoEditor<Security>- Parameters:
changeable- true if changeable
-