Class CreateOrUpdateGroup
java.lang.Object
org.nuxeo.ecm.automation.core.operations.users.CreateOrUpdateGroup
Operation to create or update a group.
- Since:
- 9.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
protected OperationContext
protected static final String
static final String
static final String
static final String
static final String
static final String
protected String
protected String
protected String
static final String
protected StringList
static final String
protected String
static final String
protected StringList
protected Properties
static final String
protected StringList
protected String
static final String
protected UserManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canCreateOrUpdateGroup
(DocumentModel groupDoc) protected void
checkCanCreateOrUpdateGroup
(DocumentModel groupDoc) computeAllGroups
(NuxeoGroup group) static String
getTenantGroupName
(String groupName, String tenantId) Use tenant_mytenant_mygroup instead of mygroup for groups having a tenant id.void
run()
-
Field Details
-
ID
- See Also:
-
CREATE_OR_UPDATE
- See Also:
-
CREATE
- See Also:
-
UPDATE
- See Also:
-
GROUP_SCHEMA
- See Also:
-
GROUP_COLON
- See Also:
-
GROUP_NAME
- See Also:
-
GROUP_LABEL
- See Also:
-
GROUP_DESCRIPTION
- See Also:
-
MEMBERS
- See Also:
-
SUB_GROUPS
- See Also:
-
PARENT_GROUPS
- See Also:
-
GROUP_TENANTID
- See Also:
-
userManager
-
ctx
-
groupName
-
tenantId
-
groupLabel
-
groupDescription
-
members
-
subGroups
-
parentGroups
-
properties
-
mode
-
-
Constructor Details
-
CreateOrUpdateGroup
public CreateOrUpdateGroup()
-
-
Method Details
-
run
- Throws:
OperationException
-
getTenantGroupName
Use tenant_mytenant_mygroup instead of mygroup for groups having a tenant id.This is done explicitly instead of the implicit computation done in SQLSession.createEntry which is based on a tenant id deduced from the logged-in user.
-
checkCanCreateOrUpdateGroup
-
canCreateOrUpdateGroup
-
computeAllGroups
-