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 void
addError(String metadataPath, Errors errors)
Add an error.Map<String,Errors>
getAllErrors()
Retrieves the errors.boolean
hasErrors()
Test if there is at least one error.String
toString()
-
-
-
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:
true
if there is at least one error,false
otherwise.
-
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 ornull
if global to the content.errors
- the errors.
-
-