Package com.logicaldoc.util.exec
Class PrivilegedRunner
java.lang.Object
com.logicaldoc.util.exec.PrivilegedRunner
This class is responsible for allowing the java program to launch a command
 with administrator permissions. The way of achieving this greatly varies
 among the platforms. The JDK classes are of not help here as there is no way
 to tell a JVM to run as a different user but to launch a new one.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintexecuteWithElevatedRights(String command) static booleanisMac()static booleanisUnix()static boolean
- 
Constructor Details- 
PrivilegedRunnerpublic PrivilegedRunner()
 
- 
- 
Method Details- 
executeWithElevatedRights- Throws:
- IOException
- InterruptedException
 
- 
isWindowspublic static boolean isWindows()
- 
isMacpublic static boolean isMac()
- 
isUnixpublic static boolean isUnix()
 
-