Examples of deleteImage()


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

        final Image image = client.getImage();
        // delete image from the file system
        if (image != null) {
            final ContentRepository contentRepository = this.contentRepositoryFactory.getRepository(StorageType.fromInt(image
                    .getStorageType()));
            contentRepository.deleteImage(clientId, image.getLocation());
            client.setImage(null);
            this.imageRepository.delete(image);
            this.clientRepositoryWrapper.save(client);
        }
View Full Code Here

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

    private void deletePreviousClientImage(final Client client) {
        final Image image = client.getImage();
        if (image != null) {
            final ContentRepository contentRepository = this.contentRepositoryFactory.getRepository(StorageType.fromInt(image
                    .getStorageType()));
            contentRepository.deleteImage(client.getId(), image.getLocation());
        }
    }

    private CommandProcessingResult updateClientImage(final Client client, final String imageLocation, final StorageType storageType) {
        Image image = client.getImage();
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.