Package com.avoka.fc.core.bean
Class UserBulkImportResult
- java.lang.Object
-
- com.avoka.fc.core.bean.UserBulkImportResult
-
public class UserBulkImportResult extends Object
Provides a bean storing the outcome of a user bulk import operation.
-
-
Field Summary
Fields Modifier and Type Field Description ApplicationException
error
If the import itself fails with a fatal error, this value will be set to the errorList<Pair<String,String>>
failedUsers
The list of import failures, consisting of user names and failure reasonsList<String>
importedUsers
The list of user names that were importedList<String>
skippedUsers
The list of user names that were skipped (generally because the user already exists)
-
Constructor Summary
Constructors Constructor Description UserBulkImportResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failImport(ApplicationException ae)
Marks the import as failed and stores the exception describing the failureboolean
wasSuccessful()
Return whether the import was successful
-
-
-
Field Detail
-
skippedUsers
public List<String> skippedUsers
The list of user names that were skipped (generally because the user already exists)
-
failedUsers
public List<Pair<String,String>> failedUsers
The list of import failures, consisting of user names and failure reasons
-
error
public ApplicationException error
If the import itself fails with a fatal error, this value will be set to the error
-
-
Method Detail
-
failImport
public void failImport(ApplicationException ae)
Marks the import as failed and stores the exception describing the failure- Parameters:
ae
- the exception
-
wasSuccessful
public boolean wasSuccessful()
Return whether the import was successful- Returns:
- true if the import was successful
-
-