@Service(value=SecurityDialogFactory.class) public class DefaultSecurityDialogFactory extends Object implements SecurityDialogFactory
SecurityDialogFactory.| Constructor and Description |
|---|
DefaultSecurityDialogFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDomainContextUsed()
Returns whether the domain context is used in security rules.
If used, SecurityDialogFactory.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstance, isDialogAllowedpublic <T extends PersistentDomainObject<T>> T selectGrantee(javafx.stage.Window owner, DomainContext context)
This needs to be implemented by the application!
selectGrantee in interface SecurityDialogFactoryT - the PDO typeowner - the owner windowcontext - the domain contextpublic boolean isDomainContextUsed()
SecurityDialogFactorySecurityDialogFactory.selectDomainContextObject(javafx.stage.Window, org.tentackle.pdo.DomainContext) must be overridden by the application.isDomainContextUsed in interface SecurityDialogFactorypublic <T extends PersistentDomainObject<T>> T selectDomainContextObject(javafx.stage.Window owner, DomainContext context)
SecurityDialogFactoryselectDomainContextObject in interface SecurityDialogFactoryT - the PDO typeowner - the owner windowcontext - the domain contextpublic void showDialog(PersistentDomainObject<?> pdo)
SecurityDialogFactoryshowDialog in interface SecurityDialogFactorypdo - the pdopublic void showDialog(int classId,
DomainContext context)
SecurityDialogFactoryshowDialog in interface SecurityDialogFactoryclassId - the class-IDcontext - the domain contextpublic void showDialog(Class<?> clazz)
SecurityDialogFactoryshowDialog in interface SecurityDialogFactoryclazz - the classTentackle - distributed, domain- and model-driven