Class DisplayProperties

  • All Implemented Interfaces:
    Action, HasNoBeans

    public final class DisplayProperties
    extends java.lang.Object
    implements Action, HasNoBeans
    Action to display the specified properties within the search results.
    • Field Detail

      • additionalProperties

        private Properties additionalProperties
        The properties object to be displayed.
    • Constructor Detail

      • DisplayProperties

        public DisplayProperties()
    • Method Detail

      • performAction

        public void performAction​(SearchTransaction searchTransaction,
                                  Action.Phase phase)
        Adds the action's properties object to the curator model's exhibits.
        Specified by:
        performAction in interface Action
        Parameters:
        searchTransaction - Current search transaction
        phase - 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)
        Properties are added only in the output phase (once the response object has been created from Padre's output).
        Specified by:
        runsInPhase in interface Action
        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)
        Specified by:
        configure in interface Action
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getAdditionalProperties

        public Properties getAdditionalProperties()
        The properties object to be displayed.
      • setAdditionalProperties

        public void setAdditionalProperties​(Properties additionalProperties)
        The properties object to be displayed.