[OPENDJ-6302] config framework: generate overrides for non wrapped values in client interfaces Created: 21/May/19  Updated: 07/Nov/19

Status: Dev backlog
Project: OpenDJ
Component/s: config
Affects Version/s: 7.0.0
Fix Version/s: 7.0.0

Type: Task Priority: Major
Reporter: Jean-Noël Rouvignac Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to OPENDJ-6301 Generate configuration change events ... Dev backlog

 Description   

Example with ReplicationServerCfgClient):

 ReplicationServerCfgClient rsCfgClient =
 sync.createReplicationServer(ReplicationServerCfgDefn.getInstance(), new ArrayList<>());
 rsCfgClient.setReplicationPort(newValue(replicationPort));
 rsCfgClient.setReplicationServer(asSetOfValueOrExpression(replicationServersLC));
 rsCfgClient.commit();

It would be so much nicer/simpler if the config framework handled all the necessary wrapping into ValueOrExpression objects, so the code simply came back to what it used to be:

 ReplicationServerCfgClient rsCfgClient =
 sync.createReplicationServer(ReplicationServerCfgDefn.getInstance(), new ArrayList<>());
 rsCfgClient.setReplicationPort(replicationPort);
 rsCfgClient.setReplicationServer(replicationServersLC);
 rsCfgClient.commit();

Acceptance criteria

This task can be closed once clients can configure the server without the need to use ValueOrExpression.newValue() or Expressions.asSetOfValueOrExpression() when only setting values (i.e. not setting expressions).


Generated at Fri Oct 23 08:35:37 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.