public interface RepositoryDiskInterface
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.repository.NodeRef |
closeFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String Path,
NetworkFile file)
CloseFile.
|
void |
copyContent(org.alfresco.service.cmr.repository.NodeRef rootNode,
String fromPath,
String toPath)
Copy the content from one node to another.
|
NetworkFile |
createFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String Path,
long allocationSize,
boolean isHidden)
CreateFile.
|
void |
deleteEmptyFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String path) |
org.alfresco.service.cmr.repository.NodeRef |
deleteFile2(SrvSession session,
TreeConnection tree,
org.alfresco.service.cmr.repository.NodeRef rootNode,
String path)
Delete file
|
NetworkFile |
openFile(SrvSession session,
TreeConnection tree,
org.alfresco.service.cmr.repository.NodeRef rootNode,
String path,
OpenFileMode mode,
boolean truncate) |
void |
reduceQuota(SrvSession session,
TreeConnection tree,
NetworkFile file) |
void |
renameFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String oldName,
String newName,
boolean soft,
boolean moveAsSystem)
Rename the specified file.
|
NetworkFile |
restoreFile(SrvSession sess,
TreeConnection tree,
org.alfresco.service.cmr.repository.NodeRef rootNode,
String path,
long allocationSize,
org.alfresco.service.cmr.repository.NodeRef originalNodeRef)
RestoreFile.
|
void copyContent(org.alfresco.service.cmr.repository.NodeRef rootNode,
String fromPath,
String toPath)
throws FileNotFoundException
rootNode - fromPath - - the source nodetoPath - - the target nodeFileNotFoundExceptionNetworkFile createFile(org.alfresco.service.cmr.repository.NodeRef rootNode, String Path, long allocationSize, boolean isHidden) throws IOException
rootNode - fromPath - - the source nodetoPath - - the target nodeallocationSize - size to allocate for new fileisHidden - FileNotFoundExceptionIOExceptionNetworkFile restoreFile(SrvSession sess, TreeConnection tree, org.alfresco.service.cmr.repository.NodeRef rootNode, String path, long allocationSize, org.alfresco.service.cmr.repository.NodeRef originalNodeRef) throws IOException
rootNode - fromPath - - the source nodetoPath - - the target nodeallocationSize - size to allocate for new fileoriginalNodeRef - FileNotFoundExceptionIOExceptionNetworkFile openFile(SrvSession session, TreeConnection tree, org.alfresco.service.cmr.repository.NodeRef rootNode, String path, OpenFileMode mode, boolean truncate) throws IOException
session - // temp until refactortree - // temp until refactorrootNode - path - mode - truncate - IOExceptionorg.alfresco.service.cmr.repository.NodeRef closeFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String Path,
NetworkFile file)
throws IOException
rootNode - fromPath - - the source nodetoPath - - the target nodeFileNotFoundExceptionIOExceptionorg.alfresco.service.cmr.repository.NodeRef deleteFile2(SrvSession session, TreeConnection tree, org.alfresco.service.cmr.repository.NodeRef rootNode, String path) throws IOException
session - tree - rootNode - path - IOExceptionvoid reduceQuota(SrvSession session, TreeConnection tree, NetworkFile file)
session - tree - file - void deleteEmptyFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String path)
rootNode - path - void renameFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String oldName,
String newName,
boolean soft,
boolean moveAsSystem)
throws IOException
sess - Server sessiontree - Tree connectionoldName - java.lang.StringnewName - java.lang.StringIOException - The exception description.Copyright © 2005–2014 Alfresco Software. All rights reserved.