Class CreateOrUpdateUser
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.users.CreateOrUpdateUser
-
public class CreateOrUpdateUser extends Object
Operation to create or update a user.- Since:
- 9.1
-
-
Field Summary
Fields Modifier and Type Field Description protected String
company
static String
CREATE
static String
CREATE_OR_UPDATE
protected OperationContext
ctx
protected String
email
protected String
firstName
protected StringList
groups
static String
ID
protected String
lastName
protected String
mode
protected String
password
protected Properties
properties
protected String
tenantId
static String
UPDATE
protected static String
USER_COLON
protected UserManager
userManager
protected String
username
-
Constructor Summary
Constructors Constructor Description CreateOrUpdateUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canCreateOrUpdateUser(DocumentModel userDoc)
protected void
checkCanCreateOrUpdateUser(DocumentModel userDoc)
void
run()
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
CREATE_OR_UPDATE
public static final String CREATE_OR_UPDATE
- See Also:
- Constant Field Values
-
CREATE
public static final String CREATE
- See Also:
- Constant Field Values
-
UPDATE
public static final String UPDATE
- See Also:
- Constant Field Values
-
USER_COLON
protected static final String USER_COLON
- See Also:
- Constant Field Values
-
userManager
protected UserManager userManager
-
ctx
protected OperationContext ctx
-
username
protected String username
-
password
protected String password
-
email
protected String email
-
firstName
protected String firstName
-
lastName
protected String lastName
-
company
protected String company
-
tenantId
protected String tenantId
-
groups
protected StringList groups
-
properties
protected Properties properties
-
mode
protected String mode
-
-
Method Detail
-
run
public void run() throws OperationException
- Throws:
OperationException
-
checkCanCreateOrUpdateUser
protected void checkCanCreateOrUpdateUser(DocumentModel userDoc)
-
canCreateOrUpdateUser
protected boolean canCreateOrUpdateUser(DocumentModel userDoc)
-
-