Package org.openmetadata.service.jdbi3
Class UserRepository.UserCsv
- java.lang.Object
-
- org.openmetadata.csv.EntityCsv<User>
-
- org.openmetadata.service.jdbi3.UserRepository.UserCsv
-
- Enclosing class:
- UserRepository
public static class UserRepository.UserCsv extends EntityCsv<User>
-
-
Field Summary
Fields Modifier and Type Field Description static CsvDocumentationDOCUMENTATIONstatic List<CsvHeader>HEADERSTeamteam-
Fields inherited from class org.openmetadata.csv.EntityCsv
dryRunCreatedEntities, ENTITY_CREATED, ENTITY_UPDATED, FIELD_ERROR_MSG, IMPORT_STATUS_DETAILS, IMPORT_STATUS_FAILED, IMPORT_STATUS_HEADER, IMPORT_STATUS_SUCCESS, processRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexportCsv()static StringinvalidTeam(int field, String team, String user, String userTeam)protected UsertoEntity(org.apache.commons.csv.CSVPrinter printer, org.apache.commons.csv.CSVRecord csvRecord)Implement this method to a CSV record and turn it into an entityprotected List<String>toRecord(User entity)Implement this method to export an entity into a list of fields to create a CSV record-
Methods inherited from class org.openmetadata.csv.EntityCsv
entityNotFound, exportCsv, failed, fieldRequired, getBoolean, getCsvDocumentation, getEntityByName, getEntityReference, getEntityReference, getEntityReferences, getOwner, getOwnerAsUser, getResultHeaders, getTagLabels, getUserOrTeamEntityReferences, importCsv, importFailure, invalidBoolean, invalidField, invalidFieldCount, invalidHeader, invalidOwner
-
-
-
-
Field Detail
-
DOCUMENTATION
public static final CsvDocumentation DOCUMENTATION
-
team
public final Team team
-
-
Method Detail
-
toEntity
protected User toEntity(org.apache.commons.csv.CSVPrinter printer, org.apache.commons.csv.CSVRecord csvRecord) throws IOException
Description copied from class:EntityCsvImplement this method to a CSV record and turn it into an entity- Specified by:
toEntityin classEntityCsv<User>- Throws:
IOException
-
toRecord
protected List<String> toRecord(User entity)
Description copied from class:EntityCsvImplement this method to export an entity into a list of fields to create a CSV record
-
exportCsv
public String exportCsv() throws IOException
- Throws:
IOException
-
-