public class SharedDriveHelpers extends Object
| Constructor and Description |
|---|
SharedDriveHelpers(String serverName,
String userName,
String password)
Construct the helper and initialize the connection.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addDocument(String targetPath,
String sourceFile)
Add a document.
|
void |
addUserToFolder(String targetPath,
String userName)
Add user ACL to folder.
|
void |
close()
Close the connection.
|
void |
deleteDocument(String targetPath)
Delete a document.
|
String |
lookupDocument(String targetPath)
See if a document exists.
|
protected String |
mapToIdentifier(String path)
Map a "path" specification to a full identifier.
|
void |
removeUserFromFolder(String targetPath,
String userName)
Remove user ACL from folder.
|
public static final String _rcsid
public SharedDriveHelpers(String serverName, String userName, String password) throws ManifoldCFException
serverName - is the DNS name of the server.userName - is the name to use to log in.password - is the password.ManifoldCFExceptionpublic void close()
throws ManifoldCFException
ManifoldCFExceptionpublic String lookupDocument(String targetPath) throws ManifoldCFException
targetPath - is the document's path, beginning with the share name and
separated by "/" characters.ManifoldCFExceptionpublic String addDocument(String targetPath, String sourceFile) throws ManifoldCFException
targetPath - is the target path, beginning with the share name and separated
by "/" characters.sourceFile - is the local source file name to copy to the target.ManifoldCFExceptionpublic void deleteDocument(String targetPath) throws ManifoldCFException
targetPath - is the file path to delete, beginning with the share name and
separated by "/" characters.ManifoldCFExceptionpublic void addUserToFolder(String targetPath, String userName) throws ManifoldCFException
targetPath - is the folder path to add the acl to, beginning with the share
name and separated by "/" characters.userName - is the user to add.ManifoldCFExceptionpublic void removeUserFromFolder(String targetPath, String userName) throws ManifoldCFException
targetPath - is the folder path to add the acl to, beginning with the share
name and separated by "/" characters.userName - is the user to remove.ManifoldCFExceptionprotected String mapToIdentifier(String path) throws IOException
IOException