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
  • Constructor Details

    • DeactivationHookAdapter

      public DeactivationHookAdapter()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • userDeactivated

      public void userDeactivated(Deactivation deactivation)
      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 interface DeactivationHook
      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

      public void onWindowOpen(Locale locale, List<ExtraTransfer> extraTransfers)
      Description copied from interface: DeactivationHook
      Invoked while deactivation window for user is opening.
      Specified by:
      onWindowOpen in interface DeactivationHook
      Parameters:
      locale - the current user's locale
      extraTransfers - the list which will be send to browser to show additional fields in deactivation window