Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
docs: add commend for method ConfigObject.checkAttributeCombinations().
Browse files Browse the repository at this point in the history
  • Loading branch information
flyisland committed Mar 30, 2021
1 parent e88d642 commit da79cb4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/solace/tools/sempcfg/model/ConfigObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,19 @@ public void removeAttributesWithDefaultValue() {
forEachChild(ConfigObject::removeAttributesWithDefaultValue);
}

/**
* For example, below is the description of POST action of URI: /msgVpns/{msgVpnName}/restDeliveryPoints/{restDeliveryPointName}/restConsumers,
* means that if attribute `remotePort` is present in the payload, then attribute `tlsEnabled` is required in the payload too.
*
*| Class | Attribute | Requires | Conflicts |
* | :---------------------------------- | :------------------------------- | :------------------------------ | :-------- |
* | MsgVpnRestDeliveryPointRestConsumer | authenticationClientCertPassword | authenticationClientCertContent |
* | MsgVpnRestDeliveryPointRestConsumer | authenticationHttpBasicPassword | authenticationHttpBasicUsername |
* | MsgVpnRestDeliveryPointRestConsumer | authenticationHttpBasicUsername | authenticationHttpBasicPassword |
* | MsgVpnRestDeliveryPointRestConsumer | remotePort | tlsEnabled |
* | MsgVpnRestDeliveryPointRestConsumer | tlsEnabled | remotePort |
*/

public void checkAttributeCombinations() {
var requiresAttributesWithDefalutValue = sempSpec.getRequiresAttributeWithDefaultValue(attributes.keySet());
attributes.putAll(requiresAttributesWithDefalutValue);
Expand Down

0 comments on commit da79cb4

Please sign in to comment.