public class ProfilePlugin
extends org.imixs.workflow.engine.plugins.AbstractPlugin
The plugin verifies the userId and email address for input patterns and validates for duplicates. The input pattern for the userID can be defined by the imixs property
"^[A-Za-z0-9.@\\-\\w]+"
In addition the input mode can be set to LOWERCASE or UPPERCASE. This is controlled by the imixs property
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_USER_INPUT_MODE |
static String |
DEFAULT_USERID_PATTERN |
static String |
EMAIL_ALREADY_TAKEN |
static String |
EMAIL_PATTERN |
static String |
INVALID_EMAIL |
static String |
INVALID_USERNAME |
static String |
NO_PROFILE_SERVICE_FOUND |
static String |
USERNAME_ALREADY_TAKEN |
| Constructor and Description |
|---|
ProfilePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean rollbackTransaction)
This method discards the cache for the current userID (ProfileService).
|
boolean |
isValidEmailAddress(String email)
Validates a Emailaddress with regular expression
|
boolean |
isValidUserId(String userid)
Validate userID with regular expression provided by the property
'security.userid.input.pattern'
|
org.imixs.workflow.ItemCollection |
run(org.imixs.workflow.ItemCollection workItem,
org.imixs.workflow.ItemCollection documentActivity)
The Plug-in verifies if the workitem is from the type 'profile'.
|
public static String USERNAME_ALREADY_TAKEN
public static String INVALID_USERNAME
public static String EMAIL_ALREADY_TAKEN
public static String INVALID_EMAIL
public static String NO_PROFILE_SERVICE_FOUND
public static final String EMAIL_PATTERN
public static final String DEFAULT_USERID_PATTERN
public static final String DEFAULT_USER_INPUT_MODE
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection workItem,
org.imixs.workflow.ItemCollection documentActivity)
throws org.imixs.workflow.exceptions.PluginException
org.imixs.workflow.exceptions.PluginExceptionpublic void close(boolean rollbackTransaction)
throws org.imixs.workflow.exceptions.PluginException
close in interface org.imixs.workflow.Pluginclose in class org.imixs.workflow.engine.plugins.AbstractPluginorg.imixs.workflow.exceptions.PluginExceptionpublic boolean isValidUserId(String userid)
userid - - userID for validationpublic boolean isValidEmailAddress(String email)
userid - - email for validationCopyright © 2011–2022 Imixs Software Solutions GmbH. All rights reserved.