Details
-
Enhancement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
Description
The management API doesn't have a "SET" attribute/parameter type but use cases like JBEAP-19958 shows there's some need for a bit of set-like behavior.
Idea here is the controller module could expose some static factories for ParameterCorrectors and ParameterValidators to impose set semantics on a ModelType.LIST attribute.
A validator would be used to reject lists with duplicates.
A corrector would be used to remove dups from a list without failing.
For a corrector construction could perhaps be parameterized by allowing passing in the name of the attribute and a log level. Those would be used to log when the corrector removes duplicates. The corrector would definitely need to know the attribute name to log an appropriate message. The appropriate level for a message may vary based on the attribute.