org.alfresco.service.cmr.model
Class FileFolderUtil

java.lang.Object
  extended by org.alfresco.service.cmr.model.FileFolderUtil

public class FileFolderUtil
extends java.lang.Object

Higher level utility methods to be used in conjunction with the FileFolderService.


Constructor Summary
FileFolderUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFolderUtil

public FileFolderUtil()
Method Detail

makeFolders

public 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.

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.

Parameters:
parentNodeRef - the node under which the path will be created
pathElements - the folder name path to create - may not be empty
folderTypeQName - the types of nodes to create. This must be a valid subtype of they folder type.
Returns:
Returns the info of the last folder in the path.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.