platform
Class WindowsOS
java.lang.Object
platform.AbstractOS
platform.WindowsOS
- All Implemented Interfaces:
- JAPHelp.IExternalEMailCaller, JAPHelp.IExternalURLCaller
public class WindowsOS
- extends AbstractOS
This class is instantiated by AbstractOS if the current OS is Windows
Method Summary |
boolean |
copyAsRoot(java.io.File a_sourceFile,
java.io.File a_targetDirectory,
AbstractOS.AbstractRetryCopyProcess a_checkRetry)
Copies a file with root/administrator rights to the specified directory. |
java.lang.String |
getAppdataDefaultDirectory(java.lang.String a_applicationName)
If available, returns the specific directory path where the application
data (config files etc.) is stored by default. |
protected java.lang.String |
getAsString(java.net.URL a_url)
|
java.lang.String |
getConfigPath(java.lang.String a_applicationName)
Implementations must return a valid path to the config file. |
java.lang.String |
getDefaultHelpPath(java.lang.String a_applicationName)
returns the default destination path for an external installtion of the
help files. |
private java.lang.String |
getEnvPath(java.lang.String a_applicationName,
java.lang.String a_envPath)
|
java.lang.String |
getTempPath()
|
boolean |
isHelpAutoInstalled()
|
protected boolean |
openLink(java.lang.String a_link)
|
Methods inherited from class platform.AbstractOS |
createBrowserCommand, createURLLink, createURLLink, getActiveVMs, getDefaultBrowserPath, getDefaultTempPath, getenv, getInstance, getProperty, init, initEnv, isDefaultURLAvailable, openBrowser, openBrowser, openEMail, openURL, toAbsolutePath, toRelativePath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HKEY_CLASSES_ROOT
public static final int HKEY_CLASSES_ROOT
- See Also:
- Constant Field Values
HKEY_CURRENT_USER
public static final int HKEY_CURRENT_USER
- See Also:
- Constant Field Values
HKEY_LOCAL_MACHINE
public static final int HKEY_LOCAL_MACHINE
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
KEY_QUERY_VALUE
public static final int KEY_QUERY_VALUE
- See Also:
- Constant Field Values
KEY_SET_VALUE
public static final int KEY_SET_VALUE
- See Also:
- Constant Field Values
KEY_CREATE_SUB_KEY
public static final int KEY_CREATE_SUB_KEY
- See Also:
- Constant Field Values
KEY_ENUMERATE_SUB_KEYS
public static final int KEY_ENUMERATE_SUB_KEYS
- See Also:
- Constant Field Values
KEY_READ
public static final int KEY_READ
- See Also:
- Constant Field Values
KEY_WRITE
public static final int KEY_WRITE
- See Also:
- Constant Field Values
KEY_ALL_ACCESS
public static final int KEY_ALL_ACCESS
- See Also:
- Constant Field Values
ERROR_SUCCESS
public static final int ERROR_SUCCESS
- See Also:
- Constant Field Values
ERROR_FILE_NOT_FOUND
public static final int ERROR_FILE_NOT_FOUND
- See Also:
- Constant Field Values
ERROR_ACCESS_DENIED
public static final int ERROR_ACCESS_DENIED
- See Also:
- Constant Field Values
WindowsOS
public WindowsOS()
throws java.lang.Exception
- Throws:
java.lang.Exception
openLink
protected boolean openLink(java.lang.String a_link)
- Specified by:
openLink
in class AbstractOS
getAsString
protected java.lang.String getAsString(java.net.URL a_url)
- Overrides:
getAsString
in class AbstractOS
isHelpAutoInstalled
public boolean isHelpAutoInstalled()
- Overrides:
isHelpAutoInstalled
in class AbstractOS
getDefaultHelpPath
public java.lang.String getDefaultHelpPath(java.lang.String a_applicationName)
- Description copied from class:
AbstractOS
- returns the default destination path for an external installtion of the
help files. May be os specific. This method returns the path to the
folder which contains the Jarfile or users working directory if JonDo is
not executed. from a Jar file. A specific OS class may override this
method if the help path should be another one.
- Overrides:
getDefaultHelpPath
in class AbstractOS
- Returns:
- the path to the folder which contains the Jarfile or the users
working directory if JonDo is not executed from a Jar file
getConfigPath
public java.lang.String getConfigPath(java.lang.String a_applicationName)
- Description copied from class:
AbstractOS
- Implementations must return a valid path to the config file.
- Specified by:
getConfigPath
in class AbstractOS
getAppdataDefaultDirectory
public java.lang.String getAppdataDefaultDirectory(java.lang.String a_applicationName)
- Description copied from class:
AbstractOS
- If available, returns the specific directory path where the application
data (config files etc.) is stored by default.
- Overrides:
getAppdataDefaultDirectory
in class AbstractOS
- Returns:
copyAsRoot
public boolean copyAsRoot(java.io.File a_sourceFile,
java.io.File a_targetDirectory,
AbstractOS.AbstractRetryCopyProcess a_checkRetry)
- Description copied from class:
AbstractOS
- Copies a file with root/administrator rights to the specified directory.
- Overrides:
copyAsRoot
in class AbstractOS
- Returns:
- true if copying the file was successful; false is an error
occurred or if this operation is not supported on this platform
getTempPath
public java.lang.String getTempPath()
- Overrides:
getTempPath
in class AbstractOS
getEnvPath
private java.lang.String getEnvPath(java.lang.String a_applicationName,
java.lang.String a_envPath)