public class CreateOrUpdateGroup extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CREATE |
static String |
CREATE_OR_UPDATE |
protected static String |
GROUP_COLON |
static String |
GROUP_DESCRIPTION |
static String |
GROUP_LABEL |
static String |
GROUP_NAME |
static String |
GROUP_SCHEMA |
static String |
GROUP_TENANTID |
protected String |
groupDescription |
protected String |
groupLabel |
protected String |
groupName |
static String |
ID |
protected StringList |
members |
static String |
MEMBERS |
protected String |
mode |
static String |
PARENT_GROUPS |
protected StringList |
parentGroups |
protected Properties |
properties |
static String |
SUB_GROUPS |
protected StringList |
subGroups |
protected String |
tenantId |
static String |
UPDATE |
protected UserManager |
userManager |
Constructor and Description |
---|
CreateOrUpdateGroup() |
Modifier and Type | Method and Description |
---|---|
static String |
getTenantGroupName(String groupName,
String tenantId)
Use tenant_mytenant_mygroup instead of mygroup for groups having a tenant id.
|
void |
run() |
public static final String ID
public static final String CREATE_OR_UPDATE
public static final String CREATE
public static final String UPDATE
public static final String GROUP_SCHEMA
protected static final String GROUP_COLON
public static final String GROUP_NAME
public static final String GROUP_LABEL
public static final String GROUP_DESCRIPTION
public static final String MEMBERS
public static final String SUB_GROUPS
public static final String PARENT_GROUPS
public static final String GROUP_TENANTID
protected UserManager userManager
protected String groupLabel
protected String groupDescription
protected StringList members
protected StringList subGroups
protected StringList parentGroups
protected Properties properties
public CreateOrUpdateGroup()
public void run() throws OperationException
OperationException
public static String getTenantGroupName(String groupName, String tenantId)
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.
Copyright © 2018 Nuxeo. All rights reserved.