|
Method Summary | ||
copy(NodeRef sourceNodeRef, NodeRef targetParentRef, String newName) Copy a source file or folder. |
||
create(NodeRef parentNodeRef, String name, QName typeQName) Create a file or folder; or any valid node of type derived from file or folder. |
||
create(NodeRef parentNodeRef, String name, QName typeQName, QName assocQName) Create a file or folder; or any valid node of type derived from file or folder |
||
void |
delete(NodeRef nodeRef) Delete a file or folder |
|
boolean |
exists(NodeRef nodeRef) Check the validity of a node reference |
|
getFileInfo(NodeRef nodeRef) Get the file info (name, folder, etc) for the given node |
||
getLocalizedSibling(NodeRef nodeRef) Uses the cm:name of the given node and attempts to find a sibling node with a more specific localized name. |
||
getNameOnlyPath(NodeRef rootNodeRef, NodeRef nodeRef) Get the file or folder names from the root down to and including the node provided. |
||
getNamePath(NodeRef rootNodeRef, NodeRef nodeRef) Get the file or folder information from the root down to and including the node provided. |
||
getReader(NodeRef nodeRef) Get the reader to the file represented by the node according to the File/Folder model. |
||
getType(QName typeQName) Checks the type for whether it is a recognised file or folder type or is invalid for the FileFolderService. |
||
getWriter(NodeRef nodeRef) Get the writer to the file represented by the node according to the File/Folder model. |
||
boolean |
isHidden(NodeRef nodeRef) | |
list(NodeRef contextNodeRef) Lists immediate child files and folders of the given context node. |
||
list(NodeRef contextNodeRef, boolean files, boolean folders, Set<QName> ignoreTypeQNames, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) Lists page of immediate child files and/or folders of the given context node with optional filtering (exclusion of certain child file/folder subtypes) and sorting author janv |
||
list(NodeRef contextNodeRef, boolean files, boolean folders, String pattern, Set<QName> ignoreTypeQNames, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) Lists page of immediate child files and/or folders of the given context node with pattern matching and optional filtering (exclusion of certain child file/folder subtypes) and sorting Pattern uses '*' as a wildcard |
||
list(NodeRef rootNodeRef, Set<QName> searchTypeQNames, Set<QName> ignoreAspectQNames, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) Lists page of immediate child objects of the given context node with specification of which types to list and optional filtering (exclusion of certain child file/folder subtypes) and sorting |
||
listDeepFolders(NodeRef contextNodeRef, SubFolderFilter filter) Deprecated. |
||
listFiles(NodeRef contextNodeRef) Lists all immediate child files of the given context node Note: this could be a long list (and will be trimmed at a pre-configured maximum). |
||
listFolders(NodeRef contextNodeRef) Lists all immediate child folders of the given context node Note: this could be a long list (and will be trimmed at a pre-configured maximum). |
||
move(NodeRef sourceNodeRef, NodeRef sourceParentRef, NodeRef targetParentRef, String newName) Deprecated. From 3.4.2, use moveFrom(NodeRef, NodeRef, NodeRef, String) or move(NodeRef, NodeRef, String). See ALF-7692 |
||
move(NodeRef sourceNodeRef, NodeRef targetParentRef, String newName) Move a file or folder to a new name and/or location. |
||
moveFrom(NodeRef sourceNodeRef, NodeRef sourceParentRef, NodeRef targetParentRef, String newName) Move a file or folder to a new name and/or location. |
||
rename(NodeRef fileFolderRef, String newName) Rename a file or folder in its current location |
||
resolveNamePath(NodeRef rootNodeRef, List<String> pathElements) Resolve a file or folder name path from a given root node down to the final node. |
||
resolveNamePath(NodeRef rootNodeRef, List<String> pathElements, boolean mustExist) Resolve a file or folder name path from a given root node down to the final node. |
||
search(NodeRef contextNodeRef, String namePattern, boolean includeSubFolders) Deprecated. for shallow search use list, listFolders, listFiles, searchSimple. For deep listing use listDeepFolders. Avoid calling this method with any name pattern except for "*". |
||
search(NodeRef contextNodeRef, String namePattern, boolean fileSearch, boolean folderSearch, boolean includeSubFolders) Deprecated. for shallow search use list, listFolders, listFiles, searchSimple. For deep listing use listDeepFolders. Avoid calling this method with any name pattern except for "*". |
||
searchSimple(NodeRef contextNodeRef, String name) Get a node ref of the node that has the name within the parent node |
||
void |
setHidden(NodeRef nodeRef, boolean isHidden) | |
toFileInfoList(List<NodeRef> nodeRefs) |
If both the parent folder and name remain the same, then nothing is done.
If both the parent folder and name remain the same, then nothing is done.
It is possible to specify which is the parent node when moving nodes; nodes can reside in multiple locations.If both the parent folder and name remain the same, then nothing is done.
The association QName for the patch defaults to cm:filename i.e. the Content Model namespace with the filename as the local name.
null
if mustExist
is false
and the file does not exist
|