mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126575 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 124672 jkaabimofrad: Added check for spring bean DI (as before it caused SFS cloud to fail when downloading or creating docs as we are extending the NodesImpl in the cloud overlay). Also, minor fixes to NodesImpl. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126920 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -139,6 +139,7 @@ import org.alfresco.service.cmr.version.VersionType;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.Pair;
|
||||
import org.alfresco.util.PropertyCheck;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@@ -210,7 +211,7 @@ public class NodesImpl implements Nodes
|
||||
// ignore types/aspects
|
||||
private Set<QName> ignoreQNames;
|
||||
|
||||
private ConcurrentHashMap<String,NodeRef> ddCache = new ConcurrentHashMap<String, NodeRef>();
|
||||
private ConcurrentHashMap<String,NodeRef> ddCache = new ConcurrentHashMap<>();
|
||||
|
||||
private Set<String> nonAttachContentTypes = Collections.emptySet(); // pre-configured whitelist, eg. images & pdf
|
||||
|
||||
@@ -221,6 +222,12 @@ public class NodesImpl implements Nodes
|
||||
|
||||
public void init()
|
||||
{
|
||||
PropertyCheck.mandatory(this, "serviceRegistry", sr);
|
||||
PropertyCheck.mandatory(this, "behaviourFilter", behaviourFilter);
|
||||
PropertyCheck.mandatory(this, "repositoryHelper", repositoryHelper);
|
||||
PropertyCheck.mandatory(this, "quickShareLinks", quickShareLinks);
|
||||
PropertyCheck.mandatory(this, "poster", poster);
|
||||
|
||||
this.namespaceService = sr.getNamespaceService();
|
||||
this.fileFolderService = sr.getFileFolderService();
|
||||
this.nodeService = sr.getNodeService();
|
||||
@@ -1498,7 +1505,7 @@ public class NodesImpl implements Nodes
|
||||
|
||||
// Checks for the presence of, and creates as necessary,
|
||||
// the folder structure in the provided path elements list.
|
||||
if (pathElements != null && !pathElements.isEmpty())
|
||||
if (!pathElements.isEmpty())
|
||||
{
|
||||
parentNodeRef = makeFolders(parentNodeRef, pathElements);
|
||||
}
|
||||
|
Reference in New Issue
Block a user