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
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 decidedctx
- current user context- Returns:
- priority of WBProblem.
-
getProblemId
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 decidedctx
- current user context- Returns:
- problemId for WBProblem
-
getAttribute1
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 decidedctx
- current user context- Returns:
- value of Attribute1 field of WBProblem
-
getAttribute2
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 decidedctx
- current user context- Returns:
- value of Attribute2 field of WBProblem
-
getAttribute3
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 decidedctx
- current user context- Returns:
- value of Attribute3 field of WBProblem
-
addSummarySection
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 WBProblemmodel
- model to be considered to add new summary to existing summaries of WBProblemctx
- current user context
-
addParams
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 WBProblemmodel
- model to be considered to add new params to existing params of WBProblemctx
- current user context
-
getOwnerId
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 WBProblemctx
- current user context- Returns:
- owner id of WBProblem
-
getExpiryDate
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 WBProblemctx
- current user context- Returns:
- expiry date of WBProblem
-
getTitleArgs
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 WBProblemctx
- current user context- Returns:
- title arguments of WBProblem
-