Class BulkAddResult<T>
java.lang.Object
com.atlassian.crowd.manager.directory.BulkAddResult<T>
Represents the results from an 'addAll' operation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> BulkAddResult.Builder<T>builder(long attemptingToAdd) longCalculates the number of entities which were successfully added, which is calculated as the number of entities which were attempted to be added minus both the failed entities (which couldn't be added) and the existing entities (which already existed and hence couldn't be added).longReturns the entities which did not get overwritten during the bulk add process.Returns the entities which did failed to be added during the bulk add process.boolean
-
Method Details
-
getFailedEntities
Returns the entities which did failed to be added during the bulk add process.- Returns:
- failed entities.
-
getExistingEntities
Returns the entities which did not get overwritten during the bulk add process. This collection will be empty ifoverwriteistrue.- Returns:
- existing entities.
-
isOverwriteUsed
public boolean isOverwriteUsed()- Returns:
trueiff the overwriting was requested during the bulk add process.
-
getAttemptedToAdd
public long getAttemptedToAdd()- Returns:
- the number of entities that was asked to be bulk added.
-
getAddedSuccessfully
public long getAddedSuccessfully()Calculates the number of entities which were successfully added, which is calculated as the number of entities which were attempted to be added minus both the failed entities (which couldn't be added) and the existing entities (which already existed and hence couldn't be added).- Returns:
attemptedToAdd - failedEntities - existingEntities
-
builder
-