@Component public class StructureImporter extends Object
| Constructor and Description |
|---|
StructureImporter() |
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,String>> |
convertData(List<Map<String,Object>> rawData,
StructureMappings mappings) |
void |
importStructure(List<Map<String,Object>> rawData,
StructureMappings mappings,
ImportStructureMode mode) |
void |
readStructure(List<Map<String,String>> structure)
Wczytuje strukturę do systemu
|
void |
setMode(ImportStructureMode mode) |
void |
validate(List<Map<String,String>> converted) |
public void setMode(ImportStructureMode mode)
mode - the mode to setpublic void importStructure(List<Map<String,Object>> rawData, StructureMappings mappings, ImportStructureMode mode) throws UserNotFoundException, GroupNotFoundException, UserAlreadyExistException, GroupAlreadyExistException
public List<Map<String,String>> convertData(List<Map<String,Object>> rawData, StructureMappings mappings)
public void readStructure(List<Map<String,String>> structure) throws UserNotFoundException, GroupNotFoundException, UserAlreadyExistException, GroupAlreadyExistException
structure - ExceptionUserAlreadyExistExceptionGroupNotFoundExceptionUserNotFoundExceptionGroupAlreadyExistExceptionCopyright © 2017 Suncode. All rights reserved.