public class FileFolderUtil
extends java.lang.Object
| Constructor and Description |
|---|
FileFolderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static FileInfo |
makeFolders(FileFolderService service,
org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
java.util.List pathElements,
org.alfresco.service.namespace.QName folderTypeQName)
Checks for the presence of, and creates as necessary, the folder
structure in the provided path.
|
public static FileInfo makeFolders(FileFolderService service, org.alfresco.service.cmr.repository.NodeRef parentNodeRef, java.util.List pathElements, org.alfresco.service.namespace.QName folderTypeQName)
An empty path list is not allowed as it would be impossible to necessarily return file info for the parent node - it might not be a folder node.
parentNodeRef - the node under which the path will be createdpathElements - the folder name path to create - may not be emptyfolderTypeQName - the types of nodes to create. This must be a valid subtype of
they folder
type.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.