Skip to content

Commit

Permalink
FISH-1181 FISH-1182 Fix conflicting param names
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pielage <[email protected]>
  • Loading branch information
Pandrex247 committed Mar 11, 2021
1 parent 2ee41e7 commit 55cda2c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class SnmpNotificationConfigurer extends BaseSetNotifierConfigurationComm
@Param(name = "hostName")
private String hostName;

@Param(name = "port", defaultValue = "162", optional = true)
@Param(name = "snmpPort", defaultValue = "162", optional = true, alias = "snmpport")
private Integer port;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class XmppNotificationConfigurer extends BaseSetNotifierConfigurationComm
@Param(name = "hostName")
private String hostName;

@Param(name = "port", defaultValue = "5222", optional = true)
@Param(name = "xmppPort", defaultValue = "5222", optional = true, alias = "xmppport")
private Integer port;

@Param(name = "serviceName")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ holder.
label="$resource{i18nsnn.notifier.snmp.configuration.portLabel}"
helpText="$resource{i18nsnn.notifier.snmp.configuration.portLabelHelpText}">
<sun:textField id="portField" columns="$int{75}" maxLength="255" styleClass="port"
text="#{pageSession.valueMap['port']}" />
text="#{pageSession.valueMap['snmpPort']}" />
</sun:property>
</sun:propertySheetSection>
</sun:propertySheet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected Map<String, Object> getNotifierConfiguration(SnmpNotifierConfiguration
map.put("OID", configuration.getOid());
map.put("Version", configuration.getVersion());
map.put("Host Name", configuration.getHost());
map.put("Port", configuration.getPort());
map.put("SNMP Port", configuration.getPort());
}

return map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class SetSnmpNotifierConfigurationCommand extends BaseSetNotifierConfigur
@Param(name = "hostName")
private String hostName;

@Param(name = "port", defaultValue = "162", optional = true)
@Param(name = "snmpPort", defaultValue = "162", optional = true, alias = "snmpport")
private Integer port;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ holder.
label="$resource{i18nxn.notifier.xmpp.configuration.portLabel}"
helpText="$resource{i18nxn.notifier.xmpp.configuration.portLabelHelpText}">
<sun:textField id="portField" columns="$int{75}" maxLength="255" styleClass="port"
text="#{pageSession.valueMap['port']}" />
text="#{pageSession.valueMap['xmppPort']}" />
</sun:property>
<sun:property id="serviceNameProp" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}"
label="$resource{i18nxn.notifier.xmpp.configuration.serviceNameLabel}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected Map<String, Object> getNotifierConfiguration(XmppNotifierConfiguration

if (configuration != null) {
map.put("Host Name", configuration.getHost());
map.put("Port", configuration.getPort());
map.put("XMPP Port", configuration.getPort());
map.put("Service Name", configuration.getServiceName());
map.put("Username", configuration.getUsername());
map.put("Password", configuration.getPassword());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class SetXmppNotifierConfigurationCommand extends BaseSetNotifierConfigur
@Param(name = "hostName")
private String hostName;

@Param(name = "port", defaultValue = "5222", optional = true)
@Param(name = "xmppPort", defaultValue = "5222", optional = true, alias = "xmppport")
private Integer port;

@Param(name = "serviceName")
Expand Down

0 comments on commit 55cda2c

Please sign in to comment.