@Service(value=SecurityDialogFactory.class) public class SecurityDialogFactory extends Object
SecurityDialog.| Constructor and Description |
|---|
SecurityDialogFactory() |
| Modifier and Type | Method and Description |
|---|---|
SecurityDialog |
createDialog(DomainContext context,
Class<?> clazz,
long id)
Creates a dialog for editing security rule sets.
The SecurityDialog should only be invoked indirectly by the SecurityManager. |
static SecurityDialogFactory |
getInstance()
The singleton.
|
boolean |
isDialogAllowed(DomainContext context)
Returns whether user determined by given context is allowed to use the security dialog.
|
public static SecurityDialogFactory getInstance()
public SecurityDialog createDialog(DomainContext context, Class<?> clazz, long id)
context - the domain contextclazz - the class to set security rules forid - the object id in clazz (if clazz is a PersistentDomainObject) or null
if all objects or clazz is not a PersistentDomainObject.public boolean isDialogAllowed(DomainContext context)
context - the domain contextTentackle - a domain driven enterprise framework