Class DeactivationHookAdapter
java.lang.Object
com.suncode.pwfl.administration.user.DeactivationHookAdapter
- All Implemented Interfaces:
DeactivationHook
,org.springframework.core.Ordered
public class DeactivationHookAdapter
extends Object
implements DeactivationHook, org.springframework.core.Ordered
Adapter for
DeactivationHook
- Author:
- Janusz SoszyĆski 2016.07.05
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
onWindowOpen
(Locale locale, List<ExtraTransfer> extraTransfers) Invoked while deactivation window for user is opening.void
userDeactivated
(Deactivation deactivation) Executed when user deactivation is completed.
-
Constructor Details
-
DeactivationHookAdapter
public DeactivationHookAdapter()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
userDeactivated
Description copied from interface:DeactivationHook
Executed when user deactivation is completed.
User deactivation will be rollback if this method throws exception.- Specified by:
userDeactivated
in interfaceDeactivationHook
- Parameters:
deactivation
- all input parameters necessary to execute user deactivation. Includes information like: login of user to deactivate, target user logins to transfer his tasks etc.
-
onWindowOpen
Description copied from interface:DeactivationHook
Invoked while deactivation window for user is opening.- Specified by:
onWindowOpen
in interfaceDeactivationHook
- Parameters:
locale
- the current user's localeextraTransfers
- the list which will be send to browser to show additional fields in deactivation window
-