Class DisplayMessage
- java.lang.Object
-
- com.funnelback.publicui.search.model.curator.action.DisplayMessage
-
- All Implemented Interfaces:
Action,HasNoBeans
public final class DisplayMessage extends java.lang.Object implements Action, HasNoBeans
Action to display the specified message within the search results.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.funnelback.publicui.search.model.curator.config.Action
Action.Phase
-
-
Constructor Summary
Constructors Constructor Description DisplayMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configurer configurer)Configure this action (expected to autowire in any dependencies)booleanequals(java.lang.Object o)MessagegetMessage()The message to display when this action is performed.inthashCode()voidperformAction(SearchTransaction searchTransaction, Action.Phase phase)Add the given message to the curator model's exhibits in the given searchTransaction.booleanrunsInPhase(Action.Phase phase)Messages are added only in the output phase (once the response object has been created from Padre's output).voidsetMessage(Message message)The message to display when this action is performed.java.lang.StringtoString()
-
-
-
Field Detail
-
message
private Message message
The message to display when this action is performed.
-
-
Method Detail
-
performAction
public void performAction(SearchTransaction searchTransaction, Action.Phase phase)
Add the given message to the curator model's exhibits in the given searchTransaction.- Specified by:
performActionin interfaceAction- Parameters:
searchTransaction- Current search transactionphase- The phase being processed (Some actions may wish to behave differently depending on the current phase of processing).
-
runsInPhase
public boolean runsInPhase(Action.Phase phase)
Messages are added only in the output phase (once the response object has been created from Padre's output).- Specified by:
runsInPhasein interfaceAction- Parameters:
phase- The phase being processed (Some actions may wish to behave differently depending on the current phase of processing).- Returns:
- true if this action should be run in the given phase, otherwise return false.
-
configure
public void configure(Configurer configurer)
Configure this action (expected to autowire in any dependencies)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getMessage
public Message getMessage()
The message to display when this action is performed.
-
setMessage
public void setMessage(Message message)
The message to display when this action is performed.
-
-