public interface SecurityDialogFactory
| Modifier and Type | Method and Description |
|---|---|
static SecurityDialogFactory |
getInstance()
The singleton.
|
default boolean |
isDialogAllowed(DomainContext context)
Returns whether user determined by given domain context is allowed to use the security dialog.
|
boolean |
isDomainContextUsed()
Returns whether the domain context is used in security rules.
If used, selectDomainContextObject(javafx.stage.Window, org.tentackle.pdo.DomainContext) must be overridden by the application. |
<T extends PersistentDomainObject<T>> |
selectDomainContextObject(javafx.stage.Window owner,
DomainContext context)
Selects a domain context PDO.
This is usually a search dialog for PDOs describing a domain context. |
<T extends PersistentDomainObject<T>> |
selectGrantee(javafx.stage.Window owner,
DomainContext context)
Selects a grantee.
This is usually a search dialog for users and/or usergroups. |
void |
showDialog(Class<?> clazz)
Shows a dialog to edit security rule sets for a non-PDO-class.
|
void |
showDialog(int classId,
DomainContext context)
Shows a dialog to edit security rule sets for a PDO-class.
|
void |
showDialog(PersistentDomainObject<?> pdo)
Shows a dialog to edit security rule sets for a PDO.
|
static SecurityDialogFactory getInstance()
default boolean isDialogAllowed(DomainContext context)
context - the domain context<T extends PersistentDomainObject<T>> T selectGrantee(javafx.stage.Window owner, DomainContext context)
T - the PDO typeowner - the owner windowcontext - the domain contextboolean isDomainContextUsed()
selectDomainContextObject(javafx.stage.Window, org.tentackle.pdo.DomainContext) must be overridden by the application.<T extends PersistentDomainObject<T>> T selectDomainContextObject(javafx.stage.Window owner, DomainContext context)
T - the PDO typeowner - the owner windowcontext - the domain contextvoid showDialog(PersistentDomainObject<?> pdo)
pdo - the pdovoid showDialog(int classId,
DomainContext context)
classId - the class-IDcontext - the domain contextvoid showDialog(Class<?> clazz)
clazz - the classTentackle - distributed, domain- and model-driven