Interface PersonalizedIssueComp<E>


public interface PersonalizedIssueComp<E>
A computation for detecting an issue for which a user is subscribed. Invoked asynchronously in response to an action-based workflow.
  • Method Details

    • execute

      void execute​(PersonalizedIssueCompContext<E> context) throws java.lang.Exception
      Executes this personalized issue computation (asynchronously relative to the original action-based workflow).
      Parameters:
      context - value object containing information relevant to computing the personalized issue
      Throws:
      java.lang.Exception
    • populateDisplayFields

      default void populateDisplayFields​(IssueSubscription subscription, Model m, java.util.Map<java.lang.String,​java.lang.String> displayFields, PlatformUserContext userContext)
      Parameters:
      subscription - subscription for which an Alert has been generated
      model - model on which the Alert was generated
      displayFields - a Map of display field name to string value. Map comes with no values, but with a key for each Display Fields which the IssueSubscription "selected" in the UI. Implementation of method should use the model supplied to lookup suitable values to put into the display fields - it should mutate the map directly. It should also check permisision carefully to ensure display fields are left blank where not permitted. For example, if the user chose "Cost" and "Price" but should only be permitted to see "Price" cause they're a buyer, then "Cost" should be left blank or removed.
      userContext - Current user context