[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20231: First implementation of FileResource. Allows data values of FILE_RESOURCE dataElement type in whi...

Merge authors:
  Halvdan Hoem Grelland (halvdanhg)

revision-diff.txt (81.4 KB)

···

------------------------------------------------------------
revno: 20231 [merge]
committer: Halvdan Hoem Grelland <halvdanhg@gmail.com>
branch nick: dhis2
timestamp: Fri 2015-09-18 18:56:12 +0200
message:
  First implementation of FileResource. Allows data values of FILE_RESOURCE dataElement type in which the file is saved to an external filestore. The filestore itself is configurable as filesystem (local) or AWS S3 (external) in this first iteration. DataValueController has undergone fairly large changes where most validation code is now centralized in private methods throwing the relevant WebMessageException on validation failure. FileResource data values are staged though the api/dataValues/files endpoint, saved by writing the returned UID to api/dataValues and read by reading the dataValue from the api/dataValues/files endpoint. Deleting the dataValue will delete the underlying file.
added:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/fileresource/
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/fileresource/FileResource.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/fileresource/FileResourceContentStore.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/fileresource/FileResourceDomain.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/fileresource/FileResourceService.java
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/BaseJCloudsFileResourceContentStore.java
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/DefaultFileResourceContentStore.java
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/DefaultFileResourceService.java
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/fileresource/
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/fileresource/hibernate/
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/fileresource/hibernate/FileResource.hbm.xml
  dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/webmessage/responses/FileResourceWebMessageResponse.java
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/ValueType.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElement.java
  dhis-2/dhis-services/dhis-service-core/pom.xml
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/datavalue/DefaultDataValueService.java
  dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ValidationUtils.java
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java
  dhis-2/pom.xml

--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription