Promote security publishing configuration automatically when persisting models
When we persist a model that holds a file, we should be able to configure its needed publishing configuration in the policy. The can be done on the basis of securit resource, as shown in the following example:
SecurityPublishingConfiguration: F3_Blog_Domain_Model_Post_HiddenPosts: fileProperty: image publishingConfiguration: roles: [ Editor, Administrator ] expireDate: 2h
This would add a publishing configuration with roles and an expire date to all file objects that are attached to posts that match the F3_Blog_Domain_Model_Post_HiddenPosts security resource (entity resource identifier).