public class AttributeValues extends Object
Modifier and Type | Method and Description |
---|---|
static CLIException |
createIncorrectFormatException(CommandManager mgr,
String line) |
static boolean |
mergeAttributeValues(Map map1,
Map map2,
boolean bAdd)
Merage two attribute values map.
|
static boolean |
mergeAttributeValues(Map map1,
Map map2,
Map<String,Boolean> multipleAttributesMap,
boolean bAdd)
Merage two attribute values map.
|
static Map<String,Set<String>> |
parse(CommandManager mgr,
List listAttributeValues)
Returns a map of attribute name to set of values.
|
static Map<String,Set<String>> |
parse(CommandManager mgr,
String fileName)
Returns a map of attribute name to set of values.
|
static Map<String,Set<String>> |
parse(CommandManager mgr,
String fileName,
List listAttributeValues)
Returns a map of attribute name to set of values.
|
static List |
parseValues(String fileName)
Returns a set of values.
|
public static Map<String,Set<String>> parse(CommandManager mgr, String fileName, List listAttributeValues) throws CLIException
mgr
- Command Manager object.fileName
- Name of file that contains the attribute values data.listAttributeValues
- list of attribute values in the format.
<attribute-name>=<attribute-value>
.CLIException
- if the file contains data of incorrect format.public static Map<String,Set<String>> parse(CommandManager mgr, List listAttributeValues) throws CLIException
mgr
- Command Manager object.listAttributeValues
- list of attribute values in the format.
<attribute-name>=<attribute-value>
.CLIException
- if the file contains data of incorrect format.public static Map<String,Set<String>> parse(CommandManager mgr, String fileName) throws CLIException
mgr
- Command Manager object.fileName
- Name of file that contains the attribute values data.CLIException
- if the file contains data of incorrect format.public static List parseValues(String fileName) throws CLIException
fileName
- Name of file that contains the values data.CLIException
- if the file contains data of incorrect format.public static boolean mergeAttributeValues(Map map1, Map map2, Map<String,Boolean> multipleAttributesMap, boolean bAdd)
map1
- Map of String of Set of String.map2
- Map of String of Set of String.multipleAttributesMap
- map of attribute name to true
if the attribute type is multiple.bAdd
- true
to add the values of map2
map1
. false
to remove values of
map2
from map1
.truemap1
is altered.public static boolean mergeAttributeValues(Map map1, Map map2, boolean bAdd)
map1
- Map of String of Set of String.map2
- Map of String of Set of String.bAdd
- true
to add the values of map2
map1
. false
to remove values of
map2
from map1
.truemap1
is altered.public static CLIException createIncorrectFormatException(CommandManager mgr, String line)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.