public class ServiceUtil
extends java.lang.Object
Constructor and Description |
---|
ServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkAccess(ApplicationInstance app,
SecurityDialogs.AccessType type,
java.lang.Object... extras)
Returns whether the app requesting a JNLP service has the right permissions.
|
static boolean |
checkAccess(SecurityDialogs.AccessType type,
java.lang.Object... extras)
Returns whether the app requesting a JNLP service has the right permissions.
|
static void |
checkExistingSingleInstance(JNLPFile jnlpFile)
Checks that this application (represented by the jnlp) isnt already running
|
static BasicService |
getBasicService() |
static ClipboardService |
getClipboardService() |
static DownloadService |
getDownloadService() |
static ExtensionInstallerService |
getExtensionInstallerService() |
static FileOpenService |
getFileOpenService() |
static FileSaveService |
getFileSaveService() |
static PersistenceService |
getPersistenceService() |
static PrintService |
getPrintService() |
static SingleInstanceService |
getSingleInstanceService() |
static boolean |
isSigned(ApplicationInstance app)
Returns whether the app requesting a JNLP service is a trusted
application
|
public static BasicService getBasicService()
public static ClipboardService getClipboardService()
public static DownloadService getDownloadService()
public static ExtensionInstallerService getExtensionInstallerService()
public static FileOpenService getFileOpenService()
public static FileSaveService getFileSaveService()
public static PersistenceService getPersistenceService()
public static PrintService getPrintService()
public static SingleInstanceService getSingleInstanceService()
public static void checkExistingSingleInstance(JNLPFile jnlpFile)
jnlpFile
- the JNLPFile
that specifies the applicationInstanceExistsException
- if an instance of this application already existspublic static boolean checkAccess(SecurityDialogs.AccessType type, java.lang.Object... extras)
type
- the type of access being requestedextras
- extra Strings (usually) that are passed to the dialog for
message formatting.public static boolean checkAccess(ApplicationInstance app, SecurityDialogs.AccessType type, java.lang.Object... extras)
app
- the application which is requesting the check. If null, the current
application is used.type
- the type of access being requestedextras
- extra Strings (usually) that are passed to the dialog for
message formatting.public static boolean isSigned(ApplicationInstance app)
app
- the application which is requesting the check. If null, the
current application is used.