Package br.com.davinti.vitruvio.spi.impl
Class PadraoServiceImpl
Object
PadraoServiceImpl
- All Implemented Interfaces:
PadraoService
Coleção de métodos utilitários para o produto padrão.
- Author:
- Tiago Inaba
-
Nested Class Summary
Nested classes/interfaces inherited from interface PadraoService
PadraoService.PatchStats -
Field Summary
Fields inherited from interface PadraoService
IGNORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHttpClientRetorna client HTTP autenticado no Vitrúvio especificado na config.getDiffFiles(PerfilExportacaoDTO perfil, EmpresaAmbiente empresa) Carrega os arquivos para diff em memória, comparando o ambiente recebido com o ambiente atual.getDiffFiles(PerfilExportacaoDTO leftPerfil, EmpresaAmbiente leftEmpresa, PerfilExportacaoDTO rightPerfil, EmpresaAmbiente rightEmpresa) Carrega os arquivos para diff em memória, comparando os ambientes recebidos.EmpresaAmbientegetEmpresaAmbiente(Empresa empresa, String ambiente) List<EmpresaAmbiente> PadraoRegistroEntitygetLastDiff(PerfilExportacaoDTO perfil, EmpresaAmbiente empresa) Retorna o último registro recebido do ambiente e perfil especificados.Retorna o URL do Vitrúvio especificado na config para sincronização.List<EmpresaAmbientePatch> getPatchDetalhes(PadraoChangesetDTO patch) getPatchStats(PadraoChangesetDTO patch) booleanregistrarPatchEmpresaAmbiente(LiquibaseChangelogDTO changelog, Empresa empresa, String ambiente) intremoverRegistrosAntigos(int days) EmpresaAmbientesaveEmpresaAmbiente(EmpresaAmbiente entity)
-
Constructor Details
-
PadraoServiceImpl
public PadraoServiceImpl()
-
-
Method Details
-
getAuthenticatedHttpClient
public HttpClient getAuthenticatedHttpClient()Description copied from interface:PadraoServiceRetorna client HTTP autenticado no Vitrúvio especificado na config.- Specified by:
getAuthenticatedHttpClientin interfacePadraoService
-
getOriginUrl
Description copied from interface:PadraoServiceRetorna o URL do Vitrúvio especificado na config para sincronização. O URL sempre terminará com "/".- Specified by:
getOriginUrlin interfacePadraoService
-
getLastDiff
public PadraoRegistroEntity getLastDiff(PerfilExportacaoDTO perfil, EmpresaAmbiente empresa) Description copied from interface:PadraoServiceRetorna o último registro recebido do ambiente e perfil especificados.- Specified by:
getLastDiffin interfacePadraoService
-
removerRegistrosAntigos
public int removerRegistrosAntigos(int days) - Specified by:
removerRegistrosAntigosin interfacePadraoService
-
getDiffFiles
public PadraoDiffFiles getDiffFiles(PerfilExportacaoDTO perfil, EmpresaAmbiente empresa) throws ZipException, IOException, InvalidManifestFileException Description copied from interface:PadraoServiceCarrega os arquivos para diff em memória, comparando o ambiente recebido com o ambiente atual.- Specified by:
getDiffFilesin interfacePadraoService- Throws:
InvalidManifestFileExceptionZipExceptionIOException
-
getDiffFiles
public PadraoDiffFiles getDiffFiles(PerfilExportacaoDTO leftPerfil, EmpresaAmbiente leftEmpresa, PerfilExportacaoDTO rightPerfil, EmpresaAmbiente rightEmpresa) throws ZipException, IOException, InvalidManifestFileException Description copied from interface:PadraoServiceCarrega os arquivos para diff em memória, comparando os ambientes recebidos.- Specified by:
getDiffFilesin interfacePadraoService- Throws:
InvalidManifestFileExceptionZipExceptionIOException
-
getEmpresaAmbientes
- Specified by:
getEmpresaAmbientesin interfacePadraoService
-
saveEmpresaAmbiente
public EmpresaAmbiente saveEmpresaAmbiente(EmpresaAmbiente entity) - Specified by:
saveEmpresaAmbientein interfacePadraoService
-
getEmpresaAmbiente
- Specified by:
getEmpresaAmbientein interfacePadraoService
-
registrarPatchEmpresaAmbiente
public boolean registrarPatchEmpresaAmbiente(LiquibaseChangelogDTO changelog, Empresa empresa, String ambiente) - Specified by:
registrarPatchEmpresaAmbientein interfacePadraoService
-
getPatchStats
- Specified by:
getPatchStatsin interfacePadraoService
-
getPatchDetalhes
- Specified by:
getPatchDetalhesin interfacePadraoService
-