Package org.ametys.cms.workflow
Class AllErrors
- java.lang.Object
 - 
- org.ametys.cms.workflow.AllErrors
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private Map<String,Errors>_allErrors 
- 
Constructor Summary
Constructors Constructor Description AllErrors() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(String metadataPath, Errors errors)Add an error.Map<String,Errors>getAllErrors()Retrieves the errors.booleanhasErrors()Test if there is at least one error.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
_allErrors
private Map<String,Errors> _allErrors
 
 - 
 
- 
Constructor Detail
- 
AllErrors
public AllErrors()
 
 - 
 
- 
Method Detail
- 
hasErrors
public boolean hasErrors()
Test if there is at least one error.- Returns:
 trueif there is at least one error,falseotherwise.
 
- 
getAllErrors
public Map<String,Errors> getAllErrors()
Retrieves the errors.- Returns:
 - the errors.
 
 
- 
addError
public void addError(String metadataPath, Errors errors)
Add an error.- Parameters:
 metadataPath- the metadata path ornullif global to the content.errors- the errors.
 
 - 
 
 -