public class LegacyMappingRuleToJson extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JSON_MATCH_ALL |
static String |
JSON_NODE_CUSTOM_PLACEMENT |
static String |
JSON_NODE_MATCHES |
static String |
JSON_NODE_PARENT_QUEUE |
static String |
JSON_NODE_POLICY |
static String |
MAPPING_PRIMARY_GROUP |
static String |
MAPPING_SECONDARY_GROUP |
static String |
MAPPING_USER |
static String |
MATCHER_APPLICATION |
static String |
MATCHER_USER |
static String |
PREFIX_GROUP_MAPPING |
static String |
PREFIX_USER_MAPPING |
static String |
RULE_PART_DELIMITER |
Constructor and Description |
---|
LegacyMappingRuleToJson() |
Modifier and Type | Method and Description |
---|---|
String |
convert()
This method will do the conversion based on the already set mapping rules.
|
LegacyMappingRuleToJson |
setAppNameMappingRules(Collection<String> rules)
This setter method is used to set the the application name mapping rules as
a string collection, where each entry is one rule.
|
LegacyMappingRuleToJson |
setAppNameMappingRules(String rules)
This setter method is used to set the raw string format of the legacy
application name mapping rules.
|
LegacyMappingRuleToJson |
setUserGroupMappingRules(Collection<String> rules)
This setter method is used to set the the user group mapping rules as a
string collection, where each entry is one rule.
|
LegacyMappingRuleToJson |
setUserGroupMappingRules(String rules)
This setter method is used to set the raw string format of the legacy
user group mapping rules.
|
public static final String RULE_PART_DELIMITER
public static final String PREFIX_USER_MAPPING
public static final String PREFIX_GROUP_MAPPING
public static final String MATCHER_APPLICATION
public static final String MATCHER_USER
public static final String MAPPING_PRIMARY_GROUP
public static final String MAPPING_SECONDARY_GROUP
public static final String MAPPING_USER
public static final String JSON_MATCH_ALL
public static final String JSON_NODE_POLICY
public static final String JSON_NODE_PARENT_QUEUE
public static final String JSON_NODE_CUSTOM_PLACEMENT
public static final String JSON_NODE_MATCHES
public LegacyMappingRuleToJson setUserGroupMappingRules(String rules)
rules
- The string containing ALL the UserGroup mapping rules in
legacy formatpublic LegacyMappingRuleToJson setUserGroupMappingRules(Collection<String> rules)
rules
- One rule per entrypublic LegacyMappingRuleToJson setAppNameMappingRules(String rules)
rules
- The string containing ALL the application name mapping rules
in legacy formatpublic LegacyMappingRuleToJson setAppNameMappingRules(Collection<String> rules)
rules
- One rule per entrypublic String convert()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.