|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectoracle.adfmf.config.client.ConfigurationService
public class ConfigurationService
The ConfigurationService provides the ability to obtain dynamic configuration from a variety of delivery mechanism. The goal of this embedded service is to 'refresh' local configurations like connections, pages, ... from an enterprise or configuration server.
Field Summary | |
---|---|
static String |
SANDBOX_NAME
|
static String |
VERSION_PATTERN
|
Constructor Summary | |
---|---|
ConfigurationService()
|
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SANDBOX_NAME
public static final String VERSION_PATTERN
Constructor Detail |
---|
public ConfigurationService()
Method Detail |
---|
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 deleted
AdfException
public void addProgressListener(oracle.adfmf.config.client.ProgressListener listener)
listener
- public String getActiveVersion()
public String[] getAvailableVersions()
public boolean isAvailableVersion(String version)
version
- to be verified
public String getDeliveryMechanism()
property
- name
public String getDeliveryMechanismConfiguration(String property)
property
- name
public String getDeliveryMechanismConfiguration(String mechanism, String property)
property
- name
public 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
|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |