Interface ValidationWBProblemPopulator


public interface ValidationWBProblemPopulator
Used in conjunction with ModelValidationConfig. will be used to populate WBProblem to be created against the model based on any validation rules failure
  • Method Summary

    Modifier and Type Method Description
    void addParams​(org.json.JSONObject params, Model model, PlatformUserContext ctx)
    Adds new params using model info to existing params of the WBProblem created against the model for any validation rules failure.
    void addSummarySection​(org.json.JSONArray summaries, Model model, PlatformUserContext ctx)
    Adds new summaries using model info to existing summaries of the WBProblem created against the model for any validation rules failure.
    java.lang.String getAttribute1​(Model model, PlatformUserContext ctx)
    Given a model, returns the value for attribute1 of the WBProblem created against the model for any validation rules failure.
    java.lang.String getAttribute2​(Model model, PlatformUserContext ctx)
    Given a model, returns the value for Attribute2 of the WBProblem created against the model for any validation rules failure.
    java.lang.String getAttribute3​(Model model, PlatformUserContext ctx)
    Given a model, returns the value for Attribute3 of the WBProblem created against the model for any validation rules failure.
    java.util.Calendar getExpiryDate​(Model model, PlatformUserContext ctx)
    Given a model, returns the expiry date of the WBProblem created against the model for any validation rules failure.
    java.lang.Long getOwnerId​(Model model, PlatformUserContext ctx)
    Given a model, returns the owner id of the WBProblem created against the model for any validation rules failure.
    java.lang.String getPriority​(Model model, PlatformUserContext ctx)
    Given a model, returns the priority of the WBProblem created against the model for any validation rules failure.
    java.lang.String getProblemId​(Model model, PlatformUserContext ctx)
    Given a model, returns the problem id of the WBProblem created against the model for any validation rules failure.
    java.lang.String getTitleArgs​(Model model, PlatformUserContext ctx)
    Given a model, returns the title arguments of the WBProblem created against the model for any validation rules failure.
  • Method Details

    • getPriority

      java.lang.String getPriority​(Model model, PlatformUserContext ctx)
      Given a model, returns the priority of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model from priority of WBProblem to be decided
      ctx - current user context
      Returns:
      priority of WBProblem.
    • getProblemId

      java.lang.String getProblemId​(Model model, PlatformUserContext ctx)
      Given a model, returns the problem id of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model from problem id of WBProblem to be decided
      ctx - current user context
      Returns:
      problemId for WBProblem
    • getAttribute1

      java.lang.String getAttribute1​(Model model, PlatformUserContext ctx)
      Given a model, returns the value for attribute1 of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model from Attribute1 value of WBProblem to be decided
      ctx - current user context
      Returns:
      value of Attribute1 field of WBProblem
    • getAttribute2

      java.lang.String getAttribute2​(Model model, PlatformUserContext ctx)
      Given a model, returns the value for Attribute2 of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model from Attribute2 value of WBProblem to be decided
      ctx - current user context
      Returns:
      value of Attribute2 field of WBProblem
    • getAttribute3

      java.lang.String getAttribute3​(Model model, PlatformUserContext ctx)
      Given a model, returns the value for Attribute3 of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model from Attribute3 value of WBProblem to be decided
      ctx - current user context
      Returns:
      value of Attribute3 field of WBProblem
    • addSummarySection

      void addSummarySection​(org.json.JSONArray summaries, Model model, PlatformUserContext ctx)
      Adds new summaries using model info to existing summaries of the WBProblem created against the model for any validation rules failure.
      Parameters:
      summaries - existing summaries of WBProblem
      model - model to be considered to add new summary to existing summaries of WBProblem
      ctx - current user context
    • addParams

      void addParams​(org.json.JSONObject params, Model model, PlatformUserContext ctx)
      Adds new params using model info to existing params of the WBProblem created against the model for any validation rules failure.
      Parameters:
      params - existing params of WBProblem
      model - model to be considered to add new params to existing params of WBProblem
      ctx - current user context
    • getOwnerId

      java.lang.Long getOwnerId​(Model model, PlatformUserContext ctx)
      Given a model, returns the owner id of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model to be considered to decide the owner of WBProblem
      ctx - current user context
      Returns:
      owner id of WBProblem
    • getExpiryDate

      java.util.Calendar getExpiryDate​(Model model, PlatformUserContext ctx)
      Given a model, returns the expiry date of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model to be considered to decide the expiry date of WBProblem
      ctx - current user context
      Returns:
      expiry date of WBProblem
    • getTitleArgs

      java.lang.String getTitleArgs​(Model model, PlatformUserContext ctx)
      Given a model, returns the title arguments of the WBProblem created against the model for any validation rules failure.
      Parameters:
      model - model to be considered to decide title arguments of WBProblem
      ctx - current user context
      Returns:
      title arguments of WBProblem