/** * Incluir um firewall * * @return Tela de destino. */ public String incluir() { try { Firewall firewall = new Firewall(); popularInformacoesTela(firewall); firewallFacade.inserirFirewall(firewall); limparCampos(); showMessageInfo(Mensagens.getInstance().REGISTRO_CADASTRADO_SUCESSO); return FORM_FIREWALL; } catch (NomeNaoInformadoException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().NOME_NAO_INFORMADO); return FORM_FIREWALL; } catch (IpNaoInformadoException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().IP_NAO_INFORMADO); return FORM_FIREWALL; } catch (PortaSshNaoInformadaException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().PORTASSH_NAO_INFORMADA); return FORM_FIREWALL; } catch (RootNaoInformadoException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().ROOT_NAO_INFORMADO); return FORM_FIREWALL; } catch (SenhaNaoInformadaException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().SENHA_NAO_INFORMADO); return FORM_FIREWALL; } catch (DistribuicaoNaoInformadaException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().DISTRIBUICAO_NAO_INFORMADO); return FORM_FIREWALL; } catch (ClienteNaoInformadoException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().CLIENTE_NAO_INFORMADO); return FORM_FIREWALL; } catch (FirewallJaCadastradoException e) { LOGGER.error(e); showMessageError(Mensagens.getInstance().FIREWALL_JA_CADASTRADO); return FORM_FIREWALL; } catch (IntegrationException e) { LOGGER.error(e); showMessageErrorCustom(e.getDescricao()); return FORM_FIREWALL; } catch (BusinessException e) { LOGGER.error(e); showMessageErrorCustom(e.getDescricao()); return FORM_FIREWALL; } }