public abstract class NetworkDrive extends Object
| Constructor and Description |
|---|
NetworkDrive(UserModel userModel,
String serverNetworkPath,
String localVolumePath)
For MAC
#mountOsApp can be mount_smbfs |
| Modifier and Type | Method and Description |
|---|---|
void |
assertNetworkDriveIsMounted() |
void |
assertNetworkDriveIsUmounted() |
File |
copyFile(String sourceRelativePath,
String destinationRelativePath) |
File |
copyFolder(String sourceRelativePath,
String destinationRelativePath) |
File |
createFile(String relativePathToLocalVolumePath) |
File |
createFile(String relativePathToLocalVolumePath,
FileInputStream fileInputStream) |
File |
createFolder(String relativePathToLocalVolumePath) |
void |
deleteContent(String relativePathToLocalVolumePath) |
String |
getLocalVolumePath() |
String |
getServerNetworkPath() |
UserModel |
getUserForNetworkAccess() |
boolean |
isNetworkDriveMounted() |
void |
mount() |
protected abstract void |
mountCode() |
File |
moveFile(String sourceRelativePath,
String destinationRelativePath) |
File |
moveFolder(String sourceRelativePath,
String destinationRelativePath) |
File |
renameContent(String originalRelativePath,
String renamedRelativePath) |
protected void |
runCommand(String command,
Object... arguments) |
void |
setLocalVolumePath(String localVolumePath) |
void |
setServerNetworkPath(String serverNetworkPath) |
void |
setUserForNetworkAccess(UserModel userModel) |
protected abstract void |
umountCode() |
void |
unount() |
File |
updateContent(String relativePathToLocalVolumePath,
ByteArrayInputStream byteArrayInputStream) |
public UserModel getUserForNetworkAccess()
public void setUserForNetworkAccess(UserModel userModel)
protected void runCommand(String command, Object... arguments) throws Exception
Exceptionpublic String getLocalVolumePath()
public void setLocalVolumePath(String localVolumePath)
public String getServerNetworkPath()
public void setServerNetworkPath(String serverNetworkPath)
public void assertNetworkDriveIsMounted()
throws Exception
Exceptionpublic void assertNetworkDriveIsUmounted()
throws Exception
Exceptionpublic File createFile(String relativePathToLocalVolumePath) throws IOException
IOExceptionpublic File createFile(String relativePathToLocalVolumePath, FileInputStream fileInputStream) throws IOException
IOExceptionpublic File createFolder(String relativePathToLocalVolumePath) throws IOException
IOExceptionpublic void deleteContent(String relativePathToLocalVolumePath) throws IOException
IOExceptionpublic File updateContent(String relativePathToLocalVolumePath, ByteArrayInputStream byteArrayInputStream) throws IOException
IOExceptionpublic File renameContent(String originalRelativePath, String renamedRelativePath) throws IOException
IOExceptionpublic File copyFile(String sourceRelativePath, String destinationRelativePath) throws IOException
IOExceptionpublic File copyFolder(String sourceRelativePath, String destinationRelativePath) throws IOException
IOExceptionpublic File moveFile(String sourceRelativePath, String destinationRelativePath) throws IOException
IOExceptionpublic File moveFolder(String sourceRelativePath, String destinationRelativePath) throws IOException
IOExceptionCopyright © 2005–2019 Alfresco Software. All rights reserved.