Package com.atlassian.jira.event.user
Class UserEventFactoryImpl
java.lang.Object
com.atlassian.jira.event.user.UserEventFactoryImpl
- All Implemented Interfaces:
UserEventFactory
Creation methods to instantiate
UserEvent
s or it's subclasses.- Since:
- v8.12
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewCannotChangePasswordEvent
(Map<String, Object> params, ApplicationUser user) Creates a newUserEvent
instance about an user not being able to change password, with the provided arguments.newForgotPasswordEvent
(Map<String, Object> params, ApplicationUser user) Creates a newUserEvent
instance about an user triggering the forgot password feature, with the provided arguments.newForgotUsernameEvent
(Map<String, Object> params, ApplicationUser user) Creates a newUserEvent
instance about an user triggering the forgot username feature, with the provided arguments.newUserEventWithExtendedParams
(Map<String, Object> params, ApplicationUser user, int type) Creates a newUserEvent
instance with the provided arguments.
-
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 newUserEvent
instance with the provided arguments. The provided params will be extended with more predefined ones.- Specified by:
newUserEventWithExtendedParams
in interfaceUserEventFactory
- Parameters:
params
- a map of parameters for the eventuser
- the user this event is concerningtype
- 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 newUserEvent
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 interfaceUserEventFactory
- Parameters:
params
- a map of parameters for the eventuser
- 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 newUserEvent
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 interfaceUserEventFactory
- Parameters:
params
- a map of parameters for the eventuser
- 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 newUserEvent
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 interfaceUserEventFactory
- Parameters:
params
- a map of parameters for the eventuser
- the user this event is concerning- Returns:
- a new instance of
UserEvent
that represent a forgot username event
-