Interface PadraoService

All Known Implementing Classes:
PadraoServiceImpl

public interface PadraoService
Coleção de métodos utilitários para o produto padrão
Author:
Tiago Inaba
  • Field Details

  • Method Details

    • getAuthenticatedHttpClient

      HttpClient getAuthenticatedHttpClient()
      Retorna client HTTP autenticado no Vitrúvio especificado na config.
    • getOriginUrl

      String getOriginUrl()
      Retorna o URL do Vitrúvio especificado na config para sincronização. O URL sempre terminará com "/".
    • getDiffFiles

      PadraoDiffFiles getDiffFiles(PerfilExportacaoDTO perfil, EmpresaAmbiente empresa) throws ZipException, IOException, InvalidManifestFileException
      Carrega os arquivos para diff em memória, comparando o ambiente recebido com o ambiente atual.
      Throws:
      InvalidManifestFileException
      ZipException
      IOException
    • getDiffFiles

      PadraoDiffFiles getDiffFiles(PerfilExportacaoDTO leftPerfil, EmpresaAmbiente leftEmpresa, PerfilExportacaoDTO rightPerfil, EmpresaAmbiente rightEmpresa) throws ZipException, IOException, InvalidManifestFileException
      Carrega os arquivos para diff em memória, comparando os ambientes recebidos.
      Throws:
      InvalidManifestFileException
      ZipException
      IOException
    • getLastDiff

      PadraoRegistroEntity getLastDiff(PerfilExportacaoDTO perfil, EmpresaAmbiente empresa)
      Retorna o último registro recebido do ambiente e perfil especificados.
    • removerRegistrosAntigos

      int removerRegistrosAntigos(int days)
    • getEmpresaAmbiente

      EmpresaAmbiente getEmpresaAmbiente(Empresa empresa, String ambiente)
    • getEmpresaAmbientes

      List<EmpresaAmbiente> getEmpresaAmbientes()
    • saveEmpresaAmbiente

      EmpresaAmbiente saveEmpresaAmbiente(EmpresaAmbiente entity)
    • registrarPatchEmpresaAmbiente

      boolean registrarPatchEmpresaAmbiente(LiquibaseChangelogDTO changelog, Empresa empresa, String ambiente)
    • getPatchStats

      PadraoService.PatchStats getPatchStats(PadraoChangesetDTO patch)
    • getPatchDetalhes

      List<EmpresaAmbientePatch> getPatchDetalhes(PadraoChangesetDTO patch)