public class CreateUser
extends org.alfresco.bm.http.AuthenticatedHttpEventProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
PEOPLE_JSON_EMAIL
Deprecated.
|
static String |
PEOPLE_JSON_FIRSTNAME
Deprecated.
|
static String |
PEOPLE_JSON_GROUPS
Deprecated.
|
static String |
PEOPLE_JSON_LASTNAME
Deprecated.
|
static String |
PEOPLE_JSON_NODEREF
Deprecated.
|
static String |
PEOPLE_JSON_PASSWORD
Deprecated.
|
static String |
PEOPLE_JSON_USERNAME
Deprecated.
|
| Constructor and Description |
|---|
CreateUser(org.alfresco.http.HttpClientProvider httpClientProvider,
org.alfresco.http.AuthenticationDetailsProvider authenticationDetailsProvider,
String baseUrl,
org.alfresco.bm.user.UserDataService userDataService)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getRandomGroups()
Deprecated.
Using the current
user group chances, generate a set of random groups
according to the chances. |
Map<String,Double> |
getUserGroups()
Deprecated.
Used for testing
|
org.alfresco.bm.common.EventResult |
processEvent(org.alfresco.bm.driver.event.Event event)
Deprecated.
|
void |
setIgnoreExistingUsers(boolean ignoreExistingUsers)
Deprecated.
|
void |
setUserGroups(String userGroupStr)
Deprecated.
A description of the groups users should be added to with percentage chances.
|
executeHttpMethodAsAdmin, executeHttpMethodAsUser, getAuthDetailProvider, getFullUrlForPath, getHttpProvider, releaseResourcesgetName, getWarnDelay, isAutoCloseSessionId, isAutoPropagateSessionId, isChart, processEvent, register, resumeTimer, setAutoCloseSessionId, setAutoPropagateSessionId, setBeanName, setChart, setEventName, setEventNames, setRegistry, setWarnDelay, stopTimer, suspendTimer, toStringpublic static final String PEOPLE_JSON_USERNAME
public static final String PEOPLE_JSON_FIRSTNAME
public static final String PEOPLE_JSON_LASTNAME
public static final String PEOPLE_JSON_EMAIL
public static final String PEOPLE_JSON_PASSWORD
public static final String PEOPLE_JSON_GROUPS
public static final String PEOPLE_JSON_NODEREF
public CreateUser(org.alfresco.http.HttpClientProvider httpClientProvider,
org.alfresco.http.AuthenticationDetailsProvider authenticationDetailsProvider,
String baseUrl,
org.alfresco.bm.user.UserDataService userDataService)
public void setIgnoreExistingUsers(boolean ignoreExistingUsers)
ignoreExistingUsers - whether or not to ignore existing users when
creating. If set to true the event will be successful when
executed. If set to false, an exception will be thrown when
user already exists.public void setUserGroups(String userGroupStr)
SITE_ADMINISTRATORS:0.05, DATA_ANALYSTS:0.25
will result in users having a 5% chance of being assigned to the 'SITE_ADMINISTRATORS' group
and a 25% chance of being assigned to the 'DATA_ANALYSTS' group. The group assignments are
always considered separately i.e. being assigned to one group does not change the chances of
being assigned to another group.
NOTE: The API used requires that the group names are prepended with the
GROUP_ prefix; this is done automatically and should not be specified here. Use the group
names as they appear on the administrator's group management screens.userGroupStr - a string description of groups to assign users toIllegalArgumentException - if the input string is not well-formedpublic List<String> getRandomGroups()
user group chances, generate a set of random groups
according to the chances.Copyright © 2005–2018 Alfresco Software. All rights reserved.