Package br.com.davinti.vitruvio.spi.impl
Class BibliotecaServiceImpl
Object
BibliotecaServiceImpl
- All Implemented Interfaces:
BibliotecaService
@Service("vBibliotecaServico")
public class BibliotecaServiceImpl
extends Object
implements BibliotecaService
-
Field Summary
Fields inherited from interface BibliotecaService
ENDPOINT_TOKEN_ISSUER_KEY, ENDPOINT_TOKEN_ISSUER_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBibliotecaArquivoaddArquivo(Biblioteca biblioteca, Arquivo arquivo) buildEndpointUrl(Biblioteca biblioteca, Arquivo arquivo) buildEndpointUrl(Biblioteca biblioteca, String resourceName) buildEndpointUrl(String libraryKey, String resourceName) ArquivogetArquivoPorNome(String siglaBiblioteca, String nomeArquivo) List<Arquivo> getArquivos(BibliotecaArquivoFilter filter) List<Arquivo> getArquivos(BibliotecaArquivoFilter filter, int offset, int limit) BibliotecaBibliotecagetBibliotecaPorSigla(String nome) List<Biblioteca> List<Biblioteca> getBibliotecasPorTipo(TipoBiblioteca tipo) voidinit()booleanisSiglaEmUso(String sigla) booleanisSiglaEmUso(String sigla, Long excluideId) voidlimparBiblioteca(Long bibliotecaId) voidremoverArquivo(Integer fileId) intremoverArquivos(Collection<Integer> filesId) voidBibliotecasalvarBiblioteca(Biblioteca biblioteca) voidsetBibliotecaDao(BibliotecaDao bibliotecaDao) voidsetFileService(FileService fileService) voidsetmBeanExporter(MBeanExporter mBeanExporter)
-
Constructor Details
-
BibliotecaServiceImpl
public BibliotecaServiceImpl()
-
-
Method Details
-
init
@PostConstruct public void init() -
setBibliotecaDao
-
setFileService
-
setmBeanExporter
@Autowired public void setmBeanExporter(MBeanExporter mBeanExporter) -
salvarBiblioteca
@Transactional(propagation=REQUIRED) public Biblioteca salvarBiblioteca(Biblioteca biblioteca) - Specified by:
salvarBibliotecain interfaceBibliotecaService
-
getBibliotecaById
- Specified by:
getBibliotecaByIdin interfaceBibliotecaService
-
getBibliotecas
- Specified by:
getBibliotecasin interfaceBibliotecaService
-
getBibliotecasPorTipo
- Specified by:
getBibliotecasPorTipoin interfaceBibliotecaService
-
isSiglaEmUso
- Specified by:
isSiglaEmUsoin interfaceBibliotecaService
-
isSiglaEmUso
- Specified by:
isSiglaEmUsoin interfaceBibliotecaService
-
getBibliotecaPorSigla
- Specified by:
getBibliotecaPorSiglain interfaceBibliotecaService
-
createFilter
- Specified by:
createFilterin interfaceBibliotecaService
-
addArquivo
@Transactional(propagation=REQUIRED) public BibliotecaArquivo addArquivo(Biblioteca biblioteca, Arquivo arquivo) - Specified by:
addArquivoin interfaceBibliotecaService
-
getArquivos
- Specified by:
getArquivosin interfaceBibliotecaService
-
getArquivos
- Specified by:
getArquivosin interfaceBibliotecaService
-
getArquivosCount
- Specified by:
getArquivosCountin interfaceBibliotecaService
-
getArquivoPorNome
- Specified by:
getArquivoPorNomein interfaceBibliotecaService
-
removerBiblioteca
- Specified by:
removerBibliotecain interfaceBibliotecaService
-
limparBiblioteca
- Specified by:
limparBibliotecain interfaceBibliotecaService
-
removerArquivos
- Specified by:
removerArquivosin interfaceBibliotecaService
-
removerArquivo
- Specified by:
removerArquivoin interfaceBibliotecaService
-
buildEndpointUrl
- Specified by:
buildEndpointUrlin interfaceBibliotecaService
-
buildEndpointUrl
- Specified by:
buildEndpointUrlin interfaceBibliotecaService
-
buildEndpointUrl
- Specified by:
buildEndpointUrlin interfaceBibliotecaService
-