Package eu.europa.esig.dss.alert.status
Class ObjectStatus
java.lang.Object
eu.europa.esig.dss.alert.status.MessageStatus
eu.europa.esig.dss.alert.status.ObjectStatus
- All Implemented Interfaces:
Status
- Direct Known Subclasses:
SignatureStatus
,TokenStatus
Implementation of a
Status
interface, containing a list of concerned objects' identifiers and
their corresponding errors-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRelatedObjectIdentifierAndErrorMessage
(String objectId, String errorMessage) Adds concerned object identifier and information about the occurred eventThis method returns a complete error message computed from the mainmessage
and subMessages from the different objectsgetMessageForObjectWithId
(String objectId) Returns corresponding error message for the object with the given idReturns a collection of object identifiers associated with the eventboolean
isEmpty()
Returns whether the object is not filled (all values are null)protected String
Returns a string listing the occurred errors for each concerned objectMethods inherited from class eu.europa.esig.dss.alert.status.MessageStatus
getMessage, setMessage, toString
-
Constructor Details
-
ObjectStatus
public ObjectStatus()Default constructor initializing an empty objects map
-
-
Method Details
-
addRelatedObjectIdentifierAndErrorMessage
-
getMessageForObjectWithId
-
getRelatedObjectIds
Description copied from interface:Status
Returns a collection of object identifiers associated with the event- Specified by:
getRelatedObjectIds
in interfaceStatus
- Overrides:
getRelatedObjectIds
in classMessageStatus
- Returns:
- a collection of
String
object ids associated with the event
-
isEmpty
public boolean isEmpty()Description copied from interface:Status
Returns whether the object is not filled (all values are null)- Specified by:
isEmpty
in interfaceStatus
- Overrides:
isEmpty
in classMessageStatus
- Returns:
- TRUE if the Status is empty (underlying even did not occur), FALSE otherwise (event occurred)
-
getErrorString
Description copied from interface:Status
This method returns a complete error message computed from the mainmessage
and subMessages from the different objects- Specified by:
getErrorString
in interfaceStatus
- Overrides:
getErrorString
in classMessageStatus
- Returns:
String
-
objectMapToString
-