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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelatedObjectIdentifierAndErrorMessage(String objectId, String errorMessage) Adds concerned object identifier and information about the occurred eventThis method returns a complete error message computed from the mainmessageand 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 eventbooleanisEmpty()Returns whether the object is not filled (all values are null)protected StringReturns 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
Adds concerned object identifier and information about the occurred event -
getMessageForObjectWithId
Returns corresponding error message for the object with the given id -
getRelatedObjectIds
Description copied from interface:StatusReturns a collection of object identifiers associated with the event- Specified by:
getRelatedObjectIdsin interfaceStatus- Overrides:
getRelatedObjectIdsin classMessageStatus- Returns:
- a collection of
Stringobject ids associated with the event
-
isEmpty
public boolean isEmpty()Description copied from interface:StatusReturns whether the object is not filled (all values are null)- Specified by:
isEmptyin interfaceStatus- Overrides:
isEmptyin classMessageStatus- Returns:
- TRUE if the Status is empty (underlying even did not occur), FALSE otherwise (event occurred)
-
getErrorString
Description copied from interface:StatusThis method returns a complete error message computed from the mainmessageand subMessages from the different objects- Specified by:
getErrorStringin interfaceStatus- Overrides:
getErrorStringin classMessageStatus- Returns:
String
-
objectMapToString
Returns a string listing the occurred errors for each concerned object- Returns:
String
-