forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jcloud does not really support version numbers and will instead creat…
…e an ETAG which is not comprehensible by the end users. We need to use jcloud storage metadata properties to manage the versions being created. Added the following new properties for identifying the version property name to be used as well as the strategy. - jcloud.external.resource.management.version.property.name - jcloud.versioning.strategy The strategy is to indicate how versioning will be performed based on how the system is configured. - ALL - each file uploaded will create a new version (Default) - DRAFT - each file updloaded will create a new version - but once approved, it can only create one version for each approval - APPROVED - Can only create one version per approval process. Jcloud does not allow specifying the creation date on the object. It will always assume that it was created on the date loaded and updated on the date loaded. So if loading older data and we want the date to reflect that older date, we need to store the data in a custom property. Added support for specifying the created date property name as well. jcloud.external.resource.management.created.date.property.name Updates the existing change date so that it always specifies the changed date. Prior to this change it would leave the change date property empty when it was equal to the current date. Also fixed some other minor issue - remove finalize() as it was deprecated.
- Loading branch information
Showing
7 changed files
with
410 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
414 changes: 333 additions & 81 deletions
414
datastorages/jcloud/src/main/java/org/fao/geonet/api/records/attachments/JCloudStore.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters