Package org.mifosplatform.infrastructure.documentmanagement.contentrepository

Examples of org.mifosplatform.infrastructure.documentmanagement.contentrepository.ContentRepository.saveImage()


            final Long fileSize) {
        final Client client = this.clientRepositoryWrapper.findOneWithNotFoundDetection(clientId);
        deletePreviousClientImage(client);

        final ContentRepository contentRepository = this.contentRepositoryFactory.getRepository();
        final String imageLocation = contentRepository.saveImage(inputStream, clientId, imageName, fileSize);
        return updateClientImage(client, imageLocation, contentRepository.getStorageType());
    }

    @Transactional
    @Override
View Full Code Here


    public CommandProcessingResult saveOrUpdateClientImage(final Long clientId, final Base64EncodedImage encodedImage) {
        final Client client = this.clientRepositoryWrapper.findOneWithNotFoundDetection(clientId);
        deletePreviousClientImage(client);

        final ContentRepository contenRepository = this.contentRepositoryFactory.getRepository();
        final String imageLocation = contenRepository.saveImage(encodedImage, clientId, "image");

        return updateClientImage(client, imageLocation, contenRepository.getStorageType());
    }

    @Transactional
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.