public class FileFolderUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileFolderUtil.PathElementDetails
A simple POJO to hold information about the folder which will be created.
|
Constructor and Description |
---|
FileFolderUtil() |
Modifier and Type | Method and Description |
---|---|
static FileInfo |
makeFolders(FileFolderService service,
org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
List<String> pathElements,
org.alfresco.service.namespace.QName folderTypeQName)
Checks for the presence of, and creates as necessary, the folder
structure in the provided path.
|
static FileInfo |
makeFolders(FileFolderService service,
org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
List<String> pathElements,
org.alfresco.service.namespace.QName folderTypeQName,
BehaviourFilter behaviourFilter,
Set<org.alfresco.service.namespace.QName> parentBehavioursToDisable)
Same as above, with option to disable parent behaviour(s) when creating sub-folder
|
static FileInfo |
makeFolders(FileFolderService service,
org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
List<FileFolderUtil.PathElementDetails> pathElementDetails,
org.alfresco.service.namespace.QName folderTypeQName,
BehaviourFilter behaviourFilter,
Set<org.alfresco.service.namespace.QName> parentBehavioursToDisable)
Checks for the presence of, and creates as necessary, the folder
structure in the provided paths with the following options:
Option to disable parent behaviour(s) when creating sub-folder.
Each folder has the option to have its own set of aspects
|
static FileInfo |
makeFolders(FileFolderService service,
org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
List<FileFolderUtil.PathElementDetails> pathElementDetails,
org.alfresco.service.namespace.QName folderTypeQName,
BehaviourFilter behaviourFilter,
Set<org.alfresco.service.namespace.QName> parentBehavioursToDisable,
Set<org.alfresco.service.cmr.repository.NodeRef> allFoldersRefsInThePath)
Checks for the presence of, and creates as necessary, the folder
structure in the provided paths with the following options:
Option to disable parent behaviour(s) when creating sub-folder.
Each folder has the option to have its own set of aspects
|
public static FileInfo makeFolders(FileFolderService service, org.alfresco.service.cmr.repository.NodeRef parentNodeRef, List<String> 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
.public static FileInfo makeFolders(FileFolderService service, org.alfresco.service.cmr.repository.NodeRef parentNodeRef, List<String> pathElements, org.alfresco.service.namespace.QName folderTypeQName, BehaviourFilter behaviourFilter, Set<org.alfresco.service.namespace.QName> parentBehavioursToDisable)
service
- FileFolderServiceparentNodeRef
- NodeReffolderTypeQName
- QNamebehaviourFilter
- BehaviourFilterpublic static FileInfo makeFolders(FileFolderService service, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.NodeRef parentNodeRef, List<FileFolderUtil.PathElementDetails> pathElementDetails, org.alfresco.service.namespace.QName folderTypeQName, BehaviourFilter behaviourFilter, Set<org.alfresco.service.namespace.QName> parentBehavioursToDisable)
service
- the FileFolderService objectnodeService
- the NodeService objectparentNodeRef
- the node under which the path will be createdpathElementDetails
- the list of folder hierarchy where each folder
can have its own set of aspects - may not be emptyfolderTypeQName
- the types of nodes to create. This must be a valid
subtype of they folder type
behaviourFilter
- the BehaviourFilter objectparentBehavioursToDisable
- the set of behaviours that must be
disabledFileInfo
of the last folder in the path.public static FileInfo makeFolders(FileFolderService service, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.NodeRef parentNodeRef, List<FileFolderUtil.PathElementDetails> pathElementDetails, org.alfresco.service.namespace.QName folderTypeQName, BehaviourFilter behaviourFilter, Set<org.alfresco.service.namespace.QName> parentBehavioursToDisable, Set<org.alfresco.service.cmr.repository.NodeRef> allFoldersRefsInThePath)
service
- the FileFolderService objectnodeService
- the NodeService objectparentNodeRef
- the node under which the path will be createdpathElementDetails
- the list of folder hierarchy where each folder
can have its own set of aspects - may not be emptyfolderTypeQName
- the types of nodes to create. This must be a valid
subtype of they folder type
behaviourFilter
- the BehaviourFilter objectparentBehavioursToDisable
- the set of behaviours that must be
disabledallFoldersRefsInThePath
- (Optional) if an instance of a Set is provided,
then it'd be populated with nodeRefs of all
the folders that have been specified in the path
elements details.(pathElementDetails
).FileInfo
of the last folder in the path.Copyright © 2005–2017 Alfresco Software. All rights reserved.