/** * MailArchiver is an application that provides services for storing and managing e-mail messages through a Web Services SOAP interface. * Copyright (C) 2012 Marcio Andre Scholl Levien and Fernando Alberto Reuter Wendt and Jose Ronaldo Nogueira Fonseca Junior * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ /******************************************************************************\ * * This product was developed by * * SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), * * a government company established under Brazilian law (5.615/70), * at Department of Development of Porto Alegre. * \******************************************************************************/ package serpro.mailarchiver.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import serpro.mailarchiver.service.web.*; import serpro.mailarchiver.util.Logger; @Configuration public class ArchiveServicesConfig { private static final Logger log = Logger.getLocalLogger(); @Autowired private InfrastructureConfig infrastructureConfig; public ArchiveServicesConfig() { log.debug("Instanciando configuration bean ArchiveServicesConfig"); } @Bean public ArchiveServices archiveServices() { log.debug("Instanciando bean archiveServices"); DefaultArchiveServices archiveServices = new DefaultArchiveServices(); log.debug("Bean archiveServices configurado"); return archiveServices; } @Bean public GetFaultInfoOperation getFaultInfoOperation() { log.debug("Instanciando bean getFaultInfoOperation"); GetFaultInfoOperation getFaultInfoOperation = new DefaultGetFaultInfoOperation(); log.debug("Bean getFaultInfoOperation configurado"); return getFaultInfoOperation; } @Bean public LoginOperation loginOperation() { log.debug("Instanciando bean loginOperation"); LoginOperation loginOperation = new DefaultLoginOperation(); log.debug("Bean loginOperation configurado"); return loginOperation; } @Bean public LogoutOperation logoutOperation() { log.debug("Instanciando bean logoutOperation"); LogoutOperation logoutOperation = new DefaultLogoutOperation(); log.debug("Bean logoutOperation configurado"); return logoutOperation; } @Bean public ListFoldersOperation listFoldersOperation() { log.debug("Instanciando bean listFoldersOperation"); ListFoldersOperation listFoldersOperation = new DefaultListFoldersOperation(); log.debug("Bean listFoldersOperation configurado"); return listFoldersOperation; } @Bean public ListMessagesOperation listMessagesOperation() { log.debug("Instanciando bean listMessagesOperation"); ListMessagesOperation listMessagesOperation = new DefaultListMessagesOperation(); log.debug("Bean listMessagesOperation configurado"); return listMessagesOperation; } @Bean public ListAttachmentsOperation listAttachmentsOperation() { log.debug("Instanciando bean listAttachmentsOperation"); ListAttachmentsOperation listAttachmentsOperation = new DefaultListAttachmentsOperation(); log.debug("Bean listAttachmentsOperation configurado"); return listAttachmentsOperation; } @Bean public GetMessageBodyOperation getMessageBodyOperation() { log.debug("Instanciando bean getMessageBodyOperation"); GetMessageBodyOperation getMessageBodyOperation = new DefaultGetMessageBodyOperation(); log.debug("Bean getMessageBodyOperation configurado"); return getMessageBodyOperation; } @Bean public GetRawBinaryBodyOperation getRawBinaryBodyOperation() { log.debug("Instanciando bean getRawBinaryBodyOperation"); GetRawBinaryBodyOperation getRawBinaryBodyOperation = new DefaultGetRawBinaryBodyOperation(); log.debug("Bean getRawBinaryBodyOperation configurado"); return getRawBinaryBodyOperation; } @Bean public CopyMessagesOperation copyMessagesOperation() { log.debug("Instanciando bean copyMessagesOperation"); CopyMessagesOperation copyMessagesOperation = new DefaultCopyMessagesOperation(); log.debug("Bean copyMessagesOperation configurado"); return copyMessagesOperation; } @Bean public MoveMessagesOperation moveMessagesOperation() { log.debug("Instanciando bean moveMessagesOperation"); MoveMessagesOperation moveMessagesOperation = new DefaultMoveMessagesOperation(); log.debug("Bean moveMessagesOperation configurado"); return moveMessagesOperation; } @Bean public DeleteMessagesOperation deleteMessagesOperation() { log.debug("Instanciando bean deleteMessagesOperation"); DeleteMessagesOperation deleteMessagesOperation = new DefaultDeleteMessagesOperation(); log.debug("Bean deleteMessagesOperation configurado"); return deleteMessagesOperation; } @Bean public TagMessagesOperation tagMessagesOperation() { log.debug("Instanciando bean tagMessagesOperation"); TagMessagesOperation tagMessagesOperation = new DefaultTagMessagesOperation(); log.debug("Bean tagMessagesOperation configurado"); return tagMessagesOperation; } @Bean public ZipMessagesOperation zipMessagesOperation() { log.debug("Instanciando bean zipMessagesOperation"); ZipMessagesOperation zipMessagesOperation = new DefaultZipMessagesOperation(); log.debug("Bean zipMessagesOperation configurado"); return zipMessagesOperation; } @Bean public CreateFolderOperation createFolderOperation() { log.debug("Instanciando bean createFolderOperation"); CreateFolderOperation createFolderOperation = new DefaultCreateFolderOperation(); log.debug("Bean createFolderOperation configurado"); return createFolderOperation; } @Bean public CreateAbsoluteFolderOperation createAbsoluteFolderOperation() { log.debug("Instanciando bean createAbsoluteFolderOperation"); CreateAbsoluteFolderOperation createAbsoluteFolderOperation = new DefaultCreateAbsoluteFolderOperation(); log.debug("Bean createAbsoluteFolderOperation configurado"); return createAbsoluteFolderOperation; } @Bean public RenameFolderOperation renameFolderOperation() { log.debug("Instanciando bean renameFolderOperation"); RenameFolderOperation renameFolderOperation = new DefaultRenameFolderOperation(); log.debug("Bean renameFolderOperation configurado"); return renameFolderOperation; } @Bean public MoveFolderOperation moveFolderOperation() { log.debug("Instanciando bean moveFolderOperation"); MoveFolderOperation moveFolderOperation = new DefaultMoveFolderOperation(); log.debug("Bean moveFolderOperation configurado"); return moveFolderOperation; } @Bean public DeleteFolderOperation deleteFolderOperation() { log.debug("Instanciando bean deleteFolderOperation"); DeleteFolderOperation deleteFolderOperation = new DefaultDeleteFolderOperation(); log.debug("Bean deleteFolderOperation configurado"); return deleteFolderOperation; } @Bean public ArchiveOperation archiveOperation() { log.debug("Instanciando bean archiveOperation"); ArchiveOperation archiveOperation = new DefaultArchiveOperation(); log.debug("Bean archiveOperation configurado"); return archiveOperation; } @Bean public GetFolderInfoOperation getFolderInfoOperation() { log.debug("Instanciando bean getFolderInfoOperation"); GetFolderInfoOperation getFolderInfoOperation = new DefaultGetFolderInfoOperation(); log.debug("Bean getFolderInfoOperation configurado"); return getFolderInfoOperation; } @Bean public GetMessageInfoOperation getMessageInfoOperation() { log.debug("Instanciando bean getMessageInfoOperation"); GetMessageInfoOperation getMessageInfoOperation = new DefaultGetMessageInfoOperation(); log.debug("Bean getMessageInfoOperation configurado"); return getMessageInfoOperation; } @Bean public GetStateOperation getStateOperation() { log.debug("Instanciando bean getStateOperation"); GetStateOperation getStateOperation = new DefaultGetStateOperation(); log.debug("Bean getStateOperation configurado"); return getStateOperation; } }