public interface RemoteUtilities extends BaseSession
Session
. The server must explicitly export a RemoteUtilities
object in order to allow clients to access the methods in this class. Application
writers should be aware that this class will allow clients to delete and modify files
on the server.
RemoteUtilities#getRemoteUtilities
BaseSession.LibraryUnloadOption
Modifier and Type | Method and Description |
---|---|
void |
copyFile(String originalFilename,
String newFilename)
Copies a file.
|
void |
createDirectory(String dirname)
Creates a directory.
|
void |
deleteFile(String filename)
Deletes a file.
|
boolean |
fileExists(String testFilename)
Tests to see that a file exists
License requirements: None. |
String |
getEnvironmentVariable(String variableName)
Deprecated.
Deprecated in NX8.0.0. Use Session.GetEnvironmentVariable instead.
|
boolean |
isFileWritable(String filename)
Returns true if a file exists, and is writable by the NX session.
|
void |
removeDirectory(String dirname)
Deletes a directory.
|
void |
renameFile(String oldFilename,
String newFilename)
Renames a file.
|
void |
setFileWritable(String filename,
boolean writable)
Sets a file's permissions to be writable by the NX session.
|
closeTestOutput, compareTestOutput, setTestOutput, setTestOutput, taggedObjectManager
printTestData, printTestData, tag, tagValue
void renameFile(String oldFilename, String newFilename) throws NXException, RemoteException
oldFilename
- Old filename. newFilename
- New filename. NXException
RemoteException
void copyFile(String originalFilename, String newFilename) throws NXException, RemoteException
originalFilename
- Original filename. newFilename
- Newly copied filename. NXException
RemoteException
boolean fileExists(String testFilename) throws NXException, RemoteException
testFilename
- Filename to query NXException
RemoteException
void deleteFile(String filename) throws NXException, RemoteException
filename
- File to be deleted. NXException
RemoteException
boolean isFileWritable(String filename) throws NXException, RemoteException
filename
- File to be checked. NXException
RemoteException
void setFileWritable(String filename, boolean writable) throws NXException, RemoteException
filename
- File to be checked. writable
- True to make the file writable, false to make it readonlyNXException
RemoteException
void createDirectory(String dirname) throws NXException, RemoteException
dirname
- Name of new directory NXException
RemoteException
void removeDirectory(String dirname) throws NXException, RemoteException
dirname
- Name of directory to be deleted NXException
RemoteException
String getEnvironmentVariable(String variableName) throws NXException, RemoteException
variableName
- The environment variable NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.