Interface UserHandler


  • public interface UserHandler
    Handler that is invoked for specific user actions like creation, update, activation or deactivation.
    Author:
    Filip Hrisafov, Micha Kiener
    • Method Detail

      • beforeUserCreate

        void beforeUserCreate​(PlatformUser userToBeCreated)
        Called just before a user is created.
      • userCreated

        void userCreated​(PlatformUser createdUser)
        Called when the user is created and was a new user.
      • beforeUserUpdate

        void beforeUserUpdate​(PlatformUser userToBeUpdated,
                              PlatformUser oldPlatformUser)
        Called just before a user is updated.
      • userUpdated

        void userUpdated​(PlatformUser updatedUser,
                         PlatformUser oldUser)
        Called when an existing user is updated.
      • userPasswordUpdated

        void userPasswordUpdated​(PlatformUser user)
        Called when the password of a user is changed.
      • userStateAndSubStateChanged

        void userStateAndSubStateChanged​(String userId,
                                         String newState,
                                         String newSubState,
                                         String oldState,
                                         String oldSubState,
                                         String tenantId)
        Called when the state/substate of a user is changed.
      • userDefinitionChanged

        void userDefinitionChanged​(String userId,
                                   String userDefinitionKey,
                                   String oldUserDefinitionKey,
                                   String tenantId)
        Called when the user definition of a user is changed.
        Parameters:
        userId - the id of the user for which the change was done
        userDefinitionKey - the key of the new user definition
        oldUserDefinitionKey - the key of the previous user definition
        tenantId - the tenant in which the user definition change was done