mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
108038: Merged 5.0.N (5.0.3) to HEAD-BUG-FIX (5.1/Cloud) 107601: Merged V4.2-BUG-FIX (4.2.5) to 5.0.N (5.0.3) 107332: Merged DEV to V4.2-BUG-FIX (4.2.5) 105981 : MNT-12226 : Alfresco fails to version metadata after uploading new content version even when autoVersionOnUpdateProps=true - Added config for upload.post.js webscript. So now users may configure versioning for Share APP separatelly. 106157 : MNT-12226 : Alfresco fails to version metadata after uploading new content version even when autoVersionOnUpdateProps=true - Updated previous solution so that if no config provided for upload.post.js webscript then default model versioning strategy used., 107537: MNT-12226 : Alfresco fails to version metadata after uploading new content version even when autoVersionOnUpdateProps=true - Fixed build failure. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@108069 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2328,6 +2328,21 @@ public class ScriptNode implements Scopeable, NamespacePrefixResolverProvider
|
||||
this.services.getVersionService().ensureVersioningEnabled(nodeRef, props);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures that this document has the cm:versionable aspect applied to it,
|
||||
* and that it has the initial version in the version store.
|
||||
* Calling this on a versioned node with a version store entry will have
|
||||
* no effect.
|
||||
* Calling this on a newly uploaded share node will have versioning enabled
|
||||
* for it (Share currently does lazy versioning to improve performance of
|
||||
* documents that are uploaded but never edited, and multi upload performance).
|
||||
*
|
||||
*/
|
||||
public void ensureVersioningEnabled()
|
||||
{
|
||||
this.services.getVersionService().ensureVersioningEnabled(nodeRef, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a version of this document. Note: this will add the cm:versionable aspect.
|
||||
*
|
||||
|
Reference in New Issue
Block a user