summaryrefslogtreecommitdiffstats
path: root/plugins/reception-plugins/src/main
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@ericsson.com>2018-09-07 13:45:52 +0100
committerliamfallon <liam.fallon@ericsson.com>2018-09-07 13:48:25 +0100
commit6279d12fc01c4ded32bca030d82b58d3d786864b (patch)
treed29a654ff476b8c63907145cb7147b10d3f28abf /plugins/reception-plugins/src/main
parent9d3612f325ae52e41a0a6d9e794b42e98305d7ec (diff)
Parameter Group fields must have getters
Parameter handling is changed so that all fields must have a getter following normal naming conventions. This change brings that in. Issue-ID: POLICY-1095 Change-Id: Idc61960347a67c50f33fc272dcd00ceca7553d95 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'plugins/reception-plugins/src/main')
-rw-r--r--plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java6
-rw-r--r--plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java74
2 files changed, 40 insertions, 40 deletions
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java
index 99529759..04c978ba 100644
--- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java
+++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java
@@ -47,7 +47,7 @@ public class SdcConfiguration implements IConfiguration {
@Override
public List<String> getMsgBusAddress() {
- return configParameters.getMsgBusAddress();
+ return configParameters.getMessageBusAddress();
}
@Override
@@ -87,7 +87,7 @@ public class SdcConfiguration implements IConfiguration {
@Override
public String getConsumerID() {
- return configParameters.getConsumerID();
+ return configParameters.getConsumerId();
}
@Override
@@ -102,7 +102,7 @@ public class SdcConfiguration implements IConfiguration {
@Override
public boolean activateServerTLSAuth() {
- return configParameters.activateServerTLSAuth();
+ return configParameters.isActiveServerTlsAuth();
}
@Override
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java
index 5c46049f..ce925bb7 100644
--- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java
+++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java
@@ -45,17 +45,17 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
private List<String> artifactTypes;
private String consumerGroup;
private String environmentName;
- private String keystorePath;
- private String keystorePassword;
- private boolean activeserverTlsAuth;
- private boolean isFilterinEmptyResources;
- private Boolean isUseHttpsWithDmaap;
+ private String keyStorePath;
+ private String keyStorePassword;
+ private boolean activeServerTlsAuth;
+ private boolean isFilterInEmptyResources;
+ private boolean isUseHttpsWithDmaap;
/**
* Inner static class is to used as a Builder.
*
*/
- public static class PssdConfigurationBuilder {
+ public static class SdcConfigurationBuilder {
private String asdcAddress;
private List<String> messageBusAddress;
private String user;
@@ -72,77 +72,77 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
private boolean isFilterinEmptyResources;
private Boolean isUseHttpsWithDmaap;
- public PssdConfigurationBuilder setAsdcAddress(final String val) {
+ public SdcConfigurationBuilder setAsdcAddress(final String val) {
asdcAddress = val;
return this;
}
- public PssdConfigurationBuilder setMessageBusAddress(final List<String> val) {
+ public SdcConfigurationBuilder setMessageBusAddress(final List<String> val) {
messageBusAddress = val;
return this;
}
- public PssdConfigurationBuilder setUser(final String val) {
+ public SdcConfigurationBuilder setUser(final String val) {
user = val;
return this;
}
- public PssdConfigurationBuilder setPassword(final String val) {
+ public SdcConfigurationBuilder setPassword(final String val) {
password = val;
return this;
}
- public PssdConfigurationBuilder setPollingInterval(final int val) {
+ public SdcConfigurationBuilder setPollingInterval(final int val) {
pollingInterval = val;
return this;
}
- public PssdConfigurationBuilder setPollingTimeout(final int val) {
+ public SdcConfigurationBuilder setPollingTimeout(final int val) {
pollingTimeout = val;
return this;
}
- public PssdConfigurationBuilder setConsumerId(final String val) {
+ public SdcConfigurationBuilder setConsumerId(final String val) {
consumerId = val;
return this;
}
- public PssdConfigurationBuilder setArtifactTypes(final List<String> val) {
+ public SdcConfigurationBuilder setArtifactTypes(final List<String> val) {
artifactTypes = val;
return this;
}
- public PssdConfigurationBuilder setConsumerGroup(final String val) {
+ public SdcConfigurationBuilder setConsumerGroup(final String val) {
consumerGroup = val;
return this;
}
- public PssdConfigurationBuilder setEnvironmentName(final String val) {
+ public SdcConfigurationBuilder setEnvironmentName(final String val) {
environmentName = val;
return this;
}
- public PssdConfigurationBuilder setKeystorePath(final String val) {
+ public SdcConfigurationBuilder setKeystorePath(final String val) {
keystorePath = val;
return this;
}
- public PssdConfigurationBuilder setKeystorePassword(final String val) {
+ public SdcConfigurationBuilder setKeystorePassword(final String val) {
keystorePassword = val;
return this;
}
- public PssdConfigurationBuilder setActiveserverTlsAuth(final boolean val) {
+ public SdcConfigurationBuilder setActiveserverTlsAuth(final boolean val) {
activeserverTlsAuth = val;
return this;
}
- public PssdConfigurationBuilder setIsFilterinEmptyResources(final boolean val) {
+ public SdcConfigurationBuilder setIsFilterinEmptyResources(final boolean val) {
isFilterinEmptyResources = val;
return this;
}
- public PssdConfigurationBuilder setIsUseHttpsWithDmaap(final Boolean val) {
+ public SdcConfigurationBuilder setIsUseHttpsWithDmaap(final Boolean val) {
isUseHttpsWithDmaap = val;
return this;
}
@@ -161,7 +161,7 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
*
* @param builder stores all the values used by PssdConfigurationParametersGroup
*/
- private SdcReceptionHandlerConfigurationParameterGroup(final PssdConfigurationBuilder builder) {
+ private SdcReceptionHandlerConfigurationParameterGroup(final SdcConfigurationBuilder builder) {
asdcAddress = builder.asdcAddress;
messageBusAddress = builder.messageBusAddress;
user = builder.user;
@@ -172,10 +172,10 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
artifactTypes = builder.artifactTypes;
consumerGroup = builder.consumerGroup;
environmentName = builder.environmentName;
- keystorePath = builder.keystorePath;
- keystorePassword = builder.keystorePassword;
- activeserverTlsAuth = builder.activeserverTlsAuth;
- isFilterinEmptyResources = builder.isFilterinEmptyResources;
+ keyStorePath = builder.keystorePath;
+ keyStorePassword = builder.keystorePassword;
+ activeServerTlsAuth = builder.activeserverTlsAuth;
+ isFilterInEmptyResources = builder.isFilterinEmptyResources;
isUseHttpsWithDmaap = builder.isUseHttpsWithDmaap;
}
@@ -184,7 +184,7 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
return asdcAddress;
}
- public List<String> getMsgBusAddress() {
+ public List<String> getMessageBusAddress() {
return messageBusAddress;
}
@@ -204,7 +204,7 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
return pollingTimeout;
}
- public String getConsumerID() {
+ public String getConsumerId() {
return consumerId;
}
@@ -221,22 +221,22 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
}
public String getKeyStorePassword() {
- return keystorePassword;
+ return keyStorePassword;
}
- public String getKeyStorePath() {
- return keystorePath;
+ public boolean isActiveServerTlsAuth() {
+ return activeServerTlsAuth;
}
- public boolean activateServerTLSAuth() {
- return activeserverTlsAuth;
+ public String getKeyStorePath() {
+ return keyStorePath;
}
public boolean isFilterInEmptyResources() {
- return isFilterinEmptyResources;
+ return isFilterInEmptyResources;
}
- public Boolean isUseHttpsWithDmaap() {
+ public boolean isUseHttpsWithDmaap() {
return isUseHttpsWithDmaap;
}
@@ -269,8 +269,8 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan
validateStringElement(validationResult, user, "user");
validateStringElement(validationResult, consumerId, "consumerId");
validateStringElement(validationResult, consumerGroup, "consumerGroup");
- validateStringElement(validationResult, keystorePath, "keystorePath");
- validateStringElement(validationResult, keystorePassword, "keystorePassword");
+ validateStringElement(validationResult, keyStorePath, "keyStorePath");
+ validateStringElement(validationResult, keyStorePassword, "keyStorePassword");
validateIntElement(validationResult, pollingInterval, "pollingInterval");
validateIntElement(validationResult, pollingTimeout, "pollingTimeout");
validateStringListElement(validationResult, messageBusAddress, "messageBusAddress");