@Override
public void delete(DeleteSsl command, ActionReport report) {
IiopService iiopService = command.config.getExtensionByType(IiopService.class);
IiopListener iiopListener = null;
for (IiopListener listener : iiopService.getIiopListener()) {
if (listener.getId().equals(command.listenerId)) {
iiopListener = listener;
}
}
if (iiopListener == null) {
report.setMessage(localStrings.getLocalString(
"delete.ssl.iiop.listener.notfound",
"Iiop Listener named {0} not found", command.listenerId));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
return;
}
if (iiopListener.getSsl() == null) {
report.setMessage(localStrings.getLocalString(
"delete.ssl.element.doesnotexist", "Ssl element does " +
"not exist for Listener named {0}", command.listenerId));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
return;