public interface IntegrationService
Modifier and Type | Method and Description |
---|---|
boolean |
hasAssociation(java.lang.String mimetype,
java.lang.String[] extensions)
Checks if this application is associated with the specified mimetype
and filename extensions.
|
boolean |
hasDesktopShortcut()
Checks if the application has a desktop shortcut.
|
boolean |
hasMenuShortcut()
Checks if the application has a menu shortcut.
|
boolean |
removeAssociation(java.lang.String mimetype,
java.lang.String[] extensions)
Remove an association for this application as handler for the specified
mimetype.
|
boolean |
removeShortcuts()
Requests that all shortcuts for the application are removed.
|
boolean |
requestAssociation(java.lang.String mimetype,
java.lang.String[] extensions)
Requests that this application is registered as the handler for the
specified mime type and filename extensions.
|
boolean |
requestShortcut(boolean desktop,
boolean menu,
java.lang.String submenu)
Requests that a shortcut is created for this application.
|
boolean requestShortcut(boolean desktop, boolean menu, java.lang.String submenu)
desktop
- true
if the shortcut should appear on the desktopmenu
- true
if the shortcut should appear in a system menusubmenu
- the path to the submenu where to place the shortcut (only
meaningful if menu is true). true
if both the given menu
and desktop
are false or all shortcuts requested by menu
and
desktop
were successfully created.
false
otherwise.boolean hasDesktopShortcut()
true
if the application has a desktop shortcut,
false
otherwiseboolean hasMenuShortcut()
true
if the application has a menu shortcut,
false
otherwiseboolean removeShortcuts()
true
if the shortcuts have been removed successfully
false
otherwiseboolean requestAssociation(java.lang.String mimetype, java.lang.String[] extensions)
mimetype
- the mimetype to register this application as handler forextensions
- the filename extensions to register this application
as handler fortrue
if the app has been associated successfully,
false
otherwisejava.lang.IllegalArgumentException
- if either mimetype
or
extensions
is null
, or if mimetype
has
illegal mime type syntax, or if extensions
contains
null
or empty elementsboolean hasAssociation(java.lang.String mimetype, java.lang.String[] extensions)
mimetype
- the mimetype to check association forextensions
- the filename extensions to check association fortrue
if this application is associated with the
specified mimetype and filename extensions, false
otherwisejava.lang.IllegalArgumentException
- if either mimetype
or
extensions
is null
, or if mimetype
has
illegal mime type syntax, or if extensions
is empty or contains
null
or empty elementsboolean removeAssociation(java.lang.String mimetype, java.lang.String[] extensions)
mimetype
- the mimetype to remove association forextensions
- the filename extensions to remove association fortrue
if the association has been removed successfully,
false
otherwisejava.lang.IllegalArgumentException
- if either mimetype
or
extensions
is null
, or if mimetype
has
illegal mime type syntax, or if extensions
contains
null
or empty elementsCopyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved.