public static interface DOF.PermissionListener
Modifier and Type | Method and Description |
---|---|
void |
permissionDenied(DOF dof,
DOFObjectID.Domain domainID,
DOFObjectID.Authentication identity,
DOFPermission permission)
Notify the listener that a permission has been denied.
|
void |
permissionGranted(DOF dof,
DOFObjectID.Domain domainID,
DOFObjectID.Authentication identity,
DOFPermission permission)
Notify the listener that a permission has been granted.
|
void |
removed(DOF dof,
DOFException exception)
Called when the PermissionListener is removed from the DOF.
|
void permissionGranted(DOF dof, DOFObjectID.Domain domainID, DOFObjectID.Authentication identity, DOFPermission permission)
dof
- The DOF.domainID
- The domain permission has been granted in.identity
- The identity this permission is for.permission
- The permission. It will always be terminal.void permissionDenied(DOF dof, DOFObjectID.Domain domainID, DOFObjectID.Authentication identity, DOFPermission permission)
dof
- The DOF.domainID
- The domain permission has been denied in.identity
- The identity this permission is for.permission
- The permission. It will always be terminal.void removed(DOF dof, DOFException exception)
dof
- The DOF where this listener was added. This will never be null.exception
- An exception that caused the listener to be removed prematurely. This will be null if the application removed the listener normally.DOF.removePermissionListener(org.opendof.core.oal.DOF.PermissionListener)