Ability to add/view and edit client photo

Description

add an implementation that allows client photos to be persisted/stored on filesystem that is easy to extend for different types of environments e.g. local filesystem for simple installation, or storage on S3 if on Amazon etc.

A number of organisations request this: admcambodia, vastech, etc

see or for historic reference

Environment

None

Activity

Show:
UdaiU
October 6, 2011, 12:59 PM

1. I think we can do that but I am not actually doing any image processing while storing the images to resize it. I will fix the width and height will adjust as per ratio. This should take care of the big size image issue.

2. User uploads the image and validation fails for image, image will be dropped and user can continue without the image. If he want the right image to be uploaded then he would have to choose the image again once the validation fails.

Lukasz Chudy
October 6, 2011, 1:37 PM

2. Ok, you're right, this validation is enough.

Mifos Hudson Jira Plugin User
October 6, 2011, 4:53 PM

Integrated in

head-g-release-secondary #160
: size of the image is fixed

Udai Gupta :
Files :

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp

  • application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/customerPicture.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp

Mifos Hudson Jira Plugin User
October 6, 2011, 5:34 PM

Integrated in

head-master-secondary #512
: Ability to add/view and edit client photo
: Implemented original ratio and validation of Image
: Delete link
: size of the image is fixed

Udai Gupta :
Files :

  • appdomain/src/main/resources/org/mifos/framework/util/resources/hibernate.cfg.xml

  • appdomain/src/main/java/org/mifos/customers/client/persistence/LegacyClientDao.java

  • appdomain/src/main/java/org/mifos/framework/image/domain/ImageInfo.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/create_ClientPersonalInfo.jsp

  • application/src/test/java/org/mifos/config/ConfigurationManagerTest.java

  • appdomain/src/main/java/org/mifos/customers/persistence/CustomerDaoHibernate.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp

  • application/src/main/java/org/mifos/customers/client/struts/action/ClientCustAction.java

  • appdomain/src/main/resources/org/mifos/customers/business/CustomerBO.hbm.xml

  • application/src/test/java/org/mifos/framework/image/service/ClientPhotoServiceIntegrationTest.java

  • serviceInterfaces/src/main/java/org/mifos/application/servicefacade/ClientServiceFacade.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp

  • serviceInterfaces/src/main/java/org/mifos/dto/screen/ClientDisplayDto.java

  • appdomain/src/main/java/org/mifos/framework/image/domain/ClientPhoto.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp

  • application/src/main/resources/org/mifos/config/localizedResources/ClientUIResources.properties

  • appdomain/src/main/java/org/mifos/customers/client/business/ClientBO.java

  • appdomain/src/main/resources/org/mifos/config/resources/applicationConfiguration.default.properties

  • appdomain/src/main/java/org/mifos/framework/image/service/ClientPhotoServiceFileSystem.java

  • application/src/test/java/org/mifos/framework/util/helpers/TestObjectFactory.java

  • appdomain/src/main/resources/org/mifos/image/syserror.png

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp

  • appdomain/src/main/java/org/mifos/framework/image/service/ClientPhotoService.java

  • appdomain/src/main/java/org/mifos/customers/client/business/CustomerPictureEntity.java

  • application/src/test/java/org/mifos/customers/ClientUpdateTest.java

  • appdomain/src/main/java/org/mifos/application/servicefacade/ClientServiceFacadeWebTier.java

  • appdomain/src/main/java/org/mifos/framework/image/service/ImageStorageManager.java

  • application/src/main/java/org/mifos/framework/ApplicationInitializer.java

  • appdomain/src/main/java/org/mifos/customers/client/util/helpers/ClientConstants.java

  • appdomain/src/main/resources/org/mifos/config/resources/services.xml

  • application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java

  • common/src/main/java/org/mifos/framework/util/ConfigurationLocator.java

  • db/src/main/resources/changesets/changelog-Release_G.xml

  • appdomain/src/main/resources/org/mifos/application/collectionsheet/business/CollectionSheetRetrieveAndSave.hbm.xml

  • appdomain/src/main/resources/org/mifos/image/nopicture.png

  • appdomain/src/main/java/org/mifos/customers/business/service/CustomerServiceImpl.java

  • serviceInterfaces/src/main/java/org/mifos/dto/screen/ClientPhotoDto.java

  • application/src/test/java/org/mifos/domain/builders/ClientBuilder.java

  • application/src/test/java/org/mifos/customers/client/business/ClientIntegrationTest.java

Udai Gupta :
Files :

  • application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java

  • application/src/main/resources/org/mifos/config/localizedResources/ClientUIResources.properties

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp

  • appdomain/src/main/java/org/mifos/customers/client/util/helpers/ClientConstants.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp

  • application/src/main/java/org/mifos/customers/client/struts/action/ClientCustAction.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/customerPicture.jsp

Udai Gupta :
Files :

  • application/src/main/resources/org/mifos/config/localizedResources/ClientUIResources.properties

  • application/src/main/java/org/mifos/customers/client/struts/action/ClientCustAction.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/create_ClientPersonalInfo.jsp

  • application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp

Udai Gupta :
Files :

  • application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/customerPicture.jsp

  • application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp

Lukasz Chudy
October 7, 2011, 8:49 AM

Verified on 07.10.2011
Add/view and edit photo functionality has been implemented properly.

Assignee

UdaiU

Reporter

keithwoodlock

Labels

Implementation Priority

None

URL

None

Team

Core

Epic

None

productboard URL

None

Man Day Estimate

None

Components

Fix versions

Priority

Critical
Configure