Class IncomingMessageAnalyzerResult
java.lang.Object
com.novomind.ecom.api.imail.core.result.IncomingMessageAnalyzerResult
The IncomingMessageAnalyzerResult is the returned object of the extension point
IncomingMessageAnalyzer.
It contains all AnalyzerDecisions made during one call of
analyzeIncomingMessage.- Since:
- 11.15
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IncomingMessageAnalyzerResultAn IncomingMessageAnalyzerResult which contains noAnalyzerDecisions.
Adding Decisions to this shared instance will throw anUnsupportedOperationException -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newIncomingMessageAnalyzerResultwith no decisions. -
Method Summary
Modifier and TypeMethodDescriptionaddCategoryDecision(CategoryAnalyzerDecision decision) Adds a CategoryAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal CategoryAnalyzerDecision.Adds a TemplateAnalyzerDecision for confirmation templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.Adds a ContactAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal ContactAnalyzerDecision.addLanguageDecision(LanguageAnalyzerDecision decision) Adds a LanguageAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LanguageAnalyzerDecision.addLocationDecision(LocationAnalyzerDecision decision) Adds a LocationAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LocationAnalyzerDecision.Adds a RoutingTagAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal RoutingTagAnalyzerDecision.Adds a TemplateAnalyzerDecision for suggestion templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.Returns the sorted set of category analyzer decisions.Returns the sorted set of template analyzer decisions for confirmation templates.Returns the sorted set of contact analyzer decisions.Returns the sorted set of language analyzer decisions.Returns the sorted set of location analyzer decisions.Returns the sorted set of routing tag analyzer decisions.Returns the sorted set of template analyzer decisions for suggestion templates.booleanReturns true if this instance is the sharedUNMODIFIEDresult.
-
Field Details
-
UNMODIFIED
An IncomingMessageAnalyzerResult which contains noAnalyzerDecisions.
Adding Decisions to this shared instance will throw anUnsupportedOperationException- Since:
- 11.15
-
-
Constructor Details
-
IncomingMessageAnalyzerResult
public IncomingMessageAnalyzerResult()Constructs a newIncomingMessageAnalyzerResultwith no decisions.- Since:
- 11.15
-
-
Method Details
-
isUnmodified
public boolean isUnmodified()Returns true if this instance is the sharedUNMODIFIEDresult.- Returns:
- true if this instace is an
UNMODIFIEDResult - Since:
- 11.15
-
addCategoryDecision
Adds a CategoryAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal CategoryAnalyzerDecision.- Parameters:
decision- aCategoryAnalyzerDecision- Returns:
- the instance for fluent usage
- Since:
- 11.15
-
addLanguageDecision
Adds a LanguageAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LanguageAnalyzerDecision.- Parameters:
decision- aLanguageAnalyzerDecision- Returns:
- the instance for fluent usage
- Since:
- 11.15
-
addLocationDecision
Adds a LocationAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal LocationAnalyzerDecision.- Parameters:
decision- aLocationAnalyzerDecision- Returns:
- the instance for fluent usage
- Since:
- 11.15
-
addRoutingTagDecision
Adds a RoutingTagAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal RoutingTagAnalyzerDecision.- Parameters:
decision- aRoutingTagAnalyzerDecision- Returns:
- the instance for fluent usage
- Since:
- 13.2
-
addSuggestionTemplateDecision
public IncomingMessageAnalyzerResult addSuggestionTemplateDecision(TemplateAnalyzerDecision decision) Adds a TemplateAnalyzerDecision for suggestion templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.- Parameters:
decision- aTemplateAnalyzerDecision- Returns:
- the instance for fluent usage
- Since:
- 12.31
-
addConfirmationTemplateDecision
public IncomingMessageAnalyzerResult addConfirmationTemplateDecision(TemplateAnalyzerDecision decision) Adds a TemplateAnalyzerDecision for confirmation templates to this IncomingMessageAnalyzerResult even if the Set already contains an equal TemplateAnalyzerDecision.- Parameters:
decision- aTemplateAnalyzerDecision- Returns:
- the instance for fluent usage
- Since:
- 12.31
-
addContactAnalyzerDecision
Adds a ContactAnalyzerDecision to this IncomingMessageAnalyzerResult even if the Set already contains an equal ContactAnalyzerDecision.- Parameters:
decision- aTemplateAnalyzerDecision- Returns:
- the instance for fluent usage
- Since:
- 12.41
-
getCategoryDecisions
Returns the sorted set of category analyzer decisions.- Returns:
- the
SortedSetofCategoryAnalyzerDecisions - Since:
- 11.15
-
getLanguageDecisions
Returns the sorted set of language analyzer decisions.- Returns:
- the
SortedSetofLanguageAnalyzerDecisions - Since:
- 11.15
-
getLocationDecisions
Returns the sorted set of location analyzer decisions.- Returns:
- the
SortedSetofLocationAnalyzerDecisions - Since:
- 11.15
-
getRoutingTagDecisions
Returns the sorted set of routing tag analyzer decisions.- Returns:
- the
SortedSetofRoutingTagAnalyzerDecisions - Since:
- 13.2
-
getSuggestionTemplateDecisions
Returns the sorted set of template analyzer decisions for suggestion templates.- Returns:
- the
SortedSetofTemplateAnalyzerDecisions for the suggestion template - Since:
- 12.31
-
getConfirmationTemplateDecisions
Returns the sorted set of template analyzer decisions for confirmation templates.- Returns:
- the
SortedSetofTemplateAnalyzerDecisions for the confirmation template - Since:
- 12.31
-
getContactAnalyzerDecisions
Returns the sorted set of contact analyzer decisions.- Returns:
- the
SortedSetofContactAnalyzerDecisions - Since:
- 12.41
-