INT-4117: File Outbound Set File Permissions
JIRA: https://jira.spring.io/browse/INT-4117 Add an option to set file permissions on the `FileWritingMessageHandler` when the file system supports it. Polishing - PR Comments; more robust file system detection. Add DSL support and fix NPE with missing timestamp header. Fix javadoc Fix javadoc Some polishing: * Add `chmod >= 0` assertion * Make some assertion with string concatenation as `Supplier`-based to deffer that string concatenation
This commit is contained in:
committed by
Artem Bilan
parent
c8aafde20b
commit
2b99c191f6
@@ -706,6 +706,12 @@ copy was required).
|
||||
For other payloads, if the `FileHeaders.SET_MODIFIED` header (`file_setModified`) is present, it will be used to set
|
||||
the destination file's `lastModified` timestamp, as long as the header is a `Number`.
|
||||
|
||||
[[file-permissions]]
|
||||
==== File Permissions
|
||||
|
||||
Starting with _version 5.0_, when writing files to a file system that supports Posix permissions, you can specify those permissions on the outbound channel adapter or gateway.
|
||||
The property is an integer and is usually supplied in the familiar octal format; e.g. `0640` meaning the owner has read/write permissions, the group has read only permission and others have no access.
|
||||
|
||||
[[file-outbound-channel-adapter]]
|
||||
==== File Outbound Channel Adapter
|
||||
|
||||
|
||||
@@ -111,7 +111,11 @@ See <<file-tailing>> for more information.
|
||||
The flush predicates for the `FileWritingMessageHandler` now have an additional parameter.
|
||||
See <<file-flushing>> for more information.
|
||||
|
||||
The file outbound channel adapter (`FileWritingMessageHandler`) now supports the `REPLACE_IF_MODIFIED` `FileExistsMode`.
|
||||
The file outbound channel adapter and gateway (`FileWritingMessageHandler`) now support the `REPLACE_IF_MODIFIED` `FileExistsMode`.
|
||||
See <<file-writing-destination-exists>> for more information.
|
||||
|
||||
They also now support setting file permissions on the newly written file.
|
||||
See <<file-permissions>> for more information.
|
||||
|
||||
==== (S)FTP Changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user