Class UserEventFactoryImpl

java.lang.Object
com.atlassian.jira.event.user.UserEventFactoryImpl
All Implemented Interfaces:
UserEventFactory

public class UserEventFactoryImpl extends Object implements UserEventFactory
Creation methods to instantiate UserEvents or it's subclasses.
Since:
v8.12
  • Constructor Details

    • UserEventFactoryImpl

      public UserEventFactoryImpl()
  • Method Details

    • newUserEventWithExtendedParams

      @Nonnull public UserEvent newUserEventWithExtendedParams(@Nonnull Map<String,Object> params, @Nullable ApplicationUser user, int type)
      Description copied from interface: UserEventFactory
      Creates a new UserEvent instance with the provided arguments. The provided params will be extended with more predefined ones.
      Specified by:
      newUserEventWithExtendedParams in interface UserEventFactory
      Parameters:
      params - a map of parameters for the event
      user - the user this event is concerning
      type - type of the event
      Returns:
      a new instance of UserEvent
    • newForgotPasswordEvent

      @Nonnull public UserEvent newForgotPasswordEvent(@Nonnull Map<String,Object> params, @Nullable ApplicationUser user)
      Description copied from interface: UserEventFactory
      Creates a new UserEvent instance about an user triggering the forgot password feature, with the provided arguments. The provided params will be extended with more predefined ones.
      Specified by:
      newForgotPasswordEvent in interface UserEventFactory
      Parameters:
      params - a map of parameters for the event
      user - the user this event is concerning
      Returns:
      a new instance of UserEvent that represent a forgot password event
    • newCannotChangePasswordEvent

      @Nonnull public UserEvent newCannotChangePasswordEvent(@Nonnull Map<String,Object> params, @Nullable ApplicationUser user)
      Description copied from interface: UserEventFactory
      Creates a new UserEvent instance about an user not being able to change password, with the provided arguments. The provided params will be extended with more predefined ones.
      Specified by:
      newCannotChangePasswordEvent in interface UserEventFactory
      Parameters:
      params - a map of parameters for the event
      user - the user this event is concerning
      Returns:
      a new instance of UserEvent that represent a cannot change password event
    • newForgotUsernameEvent

      @Nonnull public UserEvent newForgotUsernameEvent(@Nonnull Map<String,Object> params, @Nullable ApplicationUser user)
      Description copied from interface: UserEventFactory
      Creates a new UserEvent instance about an user triggering the forgot username feature, with the provided arguments. The provided params will be extended with more predefined ones.
      Specified by:
      newForgotUsernameEvent in interface UserEventFactory
      Parameters:
      params - a map of parameters for the event
      user - the user this event is concerning
      Returns:
      a new instance of UserEvent that represent a forgot username event