|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncclient.spap.ApplicationManager
public class ApplicationManager
This class is responsible for the management of the SyncClient Conduit applications. It performs the following tasks:
An installation package is a jar file containing a SyncClient Conduit application. It is structured as follows:
- {application-description-file}.adf - {other packages and classes} - bin - {other binary files}For example:
- soccerleagues.adf - com - funambol - soccerleagues - SoccerleaguesStoreManager.class - bin - Leagues.prc - Italy.pdb - England.pdbThe package is first save as an asset, so that it can be handled by the application provisioning subsystem.
Field Summary | |
---|---|
static java.lang.String[] |
ALLOWED_SYNC_MODES
|
Constructor Summary | |
---|---|
ApplicationManager(ManagementNode applicationConfigNode)
Creates a new instance of ApplicationManager. |
Method Summary | |
---|---|
static Application |
applicationFromADF(java.lang.String adf)
Creates an application object from the ADF file. |
static Application |
applicationFromAsset(Asset asset)
Creates an application object from an asset. |
Application[] |
getApplications()
Returns the installed applications. |
Application |
install(java.io.File f)
Install an application packaged in a jar/zip file as described in the class description. |
static Asset |
makeAsset(Application app,
java.io.File packageFile)
Creates an Asset object from an Application and its package. |
void |
uninstall(Application app)
Uninstall the application ideintified by the given application URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String[] ALLOWED_SYNC_MODES
Constructor Detail |
---|
public ApplicationManager(ManagementNode applicationConfigNode)
applicationConfigNode
- application configuration management treeMethod Detail |
---|
public Application install(java.io.File f) throws ApplicationManagementException
The file is read and copied in the installation directory; then the DM structure required by the application provisioning subsystem is created so that the application looks like an installable asset.
f
- the package file
ApplicationManagementException
- if an error occurs during installationpublic void uninstall(Application app) throws ApplicationManagementException
app
- the application to unistall
ApplicationManagementException
- in case of errorspublic Application[] getApplications() throws ApplicationManagementException
ApplicationManagementException
public static Application applicationFromADF(java.lang.String adf) throws ApplicationManagementException
adf
- the adf content
ApplicationManagementException
- if there is something wrong with
the ADFpublic static Application applicationFromAsset(Asset asset) throws ApplicationManagementException
asset
- the asset from which create the application
ApplicationManagementException
- if there is something wrong with
the assetpublic static Asset makeAsset(Application app, java.io.File packageFile) throws ApplicationManagementException
app
- the application objectpackageFile
- the package file - NULL
ApplicationManagementException
- if something gets wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |