public class ConfigurationService
extends Object
implements oracle.adfmf.config.client.ProgressListener
Modifier and Type | Field and Description |
---|---|
static String |
SANDBOX_NAME |
static String |
VERSION_PATTERN |
Constructor and Description |
---|
ConfigurationService() |
Modifier and Type | Method and Description |
---|---|
boolean |
activateVersion(String versionToActivate)
Activate a version.
|
void |
addProgressListener(oracle.adfmf.config.client.ProgressListener listener)
Add a new progress listener to monitor the performance.
|
void |
deleteVersion(String version)
Deletes an existing application version on the device.
|
String |
getActiveVersion()
Get the active version on the device.
|
String[] |
getAvailableVersions()
Get the available version on the device.
|
String |
getDeliveryMechanism()
Get a specific delivery mechanism's configuration item.
|
String |
getDeliveryMechanismConfiguration(String property)
Get a specific delivery mechanism's configuration item for the current
delivery mechanism.
|
String |
getDeliveryMechanismConfiguration(String mechanism,
String property)
Get a specific delivery mechanism's configuration item.
|
String |
getLatestVersion()
Get the latest version published on the server for the current application
|
java.util.List |
getProgressListeners()
Get the registered progress listeners.
|
String[] |
getPublishedVersions()
Get a list of published versions on the server for the current application
|
String[] |
getSandboxes()
Get the list of sandboxes available on the server.
|
boolean |
isAvailableVersion(String version)
Determines if the passed in version is available on the device.
|
boolean |
isThereAnyNewConfigurationChanges(String appID,
String version)
Given the application ID and version number determine if there are any new
configuration changes.
|
void |
removeProgressListener(oracle.adfmf.config.client.ProgressListener listener)
Remove a given progress listener.
|
void |
setDeliveryMechanism(String mechanism)
Set a specific delivery mechanism to a registered mechanism name.
|
void |
setDeliveryMechanismConfiguration(String property,
String value)
Set a specific delivery mechanism's configuration item for the current
delivery mechanism.
|
void |
setDeliveryMechanismConfiguration(String mechanism,
String property,
String value)
Set a specific delivery mechanism's configuration item.
|
static void |
setOverrides() |
boolean |
stageAndActivateVersion(String version)
Stage and activate a version.
|
boolean |
stageVersion(String versionToStage)
Get or stage the configuration associated with the passed in version from the server.
|
void |
updateProgress(String name,
String message,
float percentage)
ProgressListener update progress handler.
|
public static final String SANDBOX_NAME
public static final String VERSION_PATTERN
public static void setOverrides()
public boolean activateVersion(String versionToActivate)
versionToActivate
- public String[] getPublishedVersions() throws AdfException
AdfException
public String getLatestVersion() throws AdfException
AdfException
public String[] getSandboxes() throws AdfException
AdfException
public void deleteVersion(String version) throws AdfException
version
- to be deletedAdfException
public void addProgressListener(oracle.adfmf.config.client.ProgressListener listener)
listener
- public String getActiveVersion()
public String[] getAvailableVersions()
public boolean isAvailableVersion(String version)
version
- to be verifiedpublic String getDeliveryMechanism()
property
- namepublic String getDeliveryMechanismConfiguration(String property)
property
- namepublic String getDeliveryMechanismConfiguration(String mechanism, String property)
property
- namepublic java.util.List getProgressListeners()
public boolean isThereAnyNewConfigurationChanges(String appID, String version) throws AdfException
appID
- version
- AdfException
public void setDeliveryMechanism(String mechanism)
property
- namevalue
- valuepublic void setDeliveryMechanismConfiguration(String property, String value)
property
- namevalue
- valuepublic void setDeliveryMechanismConfiguration(String mechanism, String property, String value)
property
- namevalue
- valuepublic void removeProgressListener(oracle.adfmf.config.client.ProgressListener listener)
listener
- public boolean stageAndActivateVersion(String version) throws AdfException
version
- AdfException
- on any error (i.e. could not stage or active).stageVersion
,
activateVersion
public boolean stageVersion(String versionToStage) throws AdfException
version
- AdfException
public void updateProgress(String name, String message, float percentage)
updateProgress
in interface oracle.adfmf.config.client.ProgressListener
name
- of the resourcemessage
- associated with the resourcepercentage
- overall completion percentage