public class ImportResults extends Object
Modifier and Type | Field and Description |
---|---|
private List<String> |
conflicting
Duplicated in another place of the space
|
private int |
countConflicting |
private int |
countCreated |
private int |
countDeleted |
private int |
countDuplicated |
private int |
countEmpty |
private int |
countInvalid |
private int |
countRecycled |
private int |
countUpdated |
private List<String> |
created |
private List<String> |
deleted |
private Set<org.apache.commons.lang3.tuple.Pair<String,String>> |
documentsInCollision |
private List<String> |
duplicated
Duplicated in the same document
|
private List<String> |
invalid
Invalid key numbers
|
private int |
maxPerCategory
Maximum number of keys in each category, after which we only keep a count
|
private Set<Long> |
pagesInCollision |
private List<String> |
recycled |
private List<String> |
updated |
Constructor and Description |
---|
ImportResults(int maxPerCategory) |
Modifier and Type | Method and Description |
---|---|
void |
addConflicting(String key) |
void |
addConflictingDocument(String type,
String id)
Add the ID of a document where a conflicting requirement was found.
|
void |
addConflictingPage(Long pageId)
Add the ID of a page where conflicting requirements were found.
|
void |
addCreated(String key) |
void |
addDeleted(String key) |
void |
addDuplicated(String key) |
void |
addInvalid(String key) |
void |
addRecycled(String key) |
void |
addUpdated(String key) |
void |
fillMessageBean(MessageBean parsingReport) |
List<String> |
getConflicting() |
List<String> |
getCreated() |
List<String> |
getDeleted() |
Set<org.apache.commons.lang3.tuple.Pair<String,String>> |
getDocumentsInCollision() |
List<String> |
getDuplicated() |
List<String> |
getInvalid() |
List<List<String>> |
getMessageBeanAsText()
For external plugins who can't access MessageBean, but still want the contents...
|
Set<Long> |
getPagesInCollision() |
List<String> |
getRecycled() |
List<String> |
getUpdated() |
private int countCreated
private int countRecycled
private int countUpdated
private int countDuplicated
private int countConflicting
private int countDeleted
private int countInvalid
private int countEmpty
private final int maxPerCategory
private final Set<org.apache.commons.lang3.tuple.Pair<String,String>> documentsInCollision
public void addCreated(String key)
public void addRecycled(String key)
public void addUpdated(String key)
public void addDuplicated(String key)
public void addConflicting(String key)
public void addDeleted(String key)
public void addInvalid(String key)
public void addConflictingDocument(String type, String id)
type
- the "applink" type of documentid
- the ID of the document (generally the attachmentId)public void addConflictingPage(Long pageId)
public Set<org.apache.commons.lang3.tuple.Pair<String,String>> getDocumentsInCollision()
public void fillMessageBean(MessageBean parsingReport)
Copyright © 2022 Requirement Yogi. All rights reserved.