|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.axeda.esrs.portal.ha.HASyncManager
public class HASyncManager
Created by IntelliJ IDEA. User: kholbrook Date: Sep 15, 2009 Time: 9:56:50 AM To change this template use File | Settings | File Templates.
| Method Summary | |
|---|---|
Identifier |
createSyncPackage(java.lang.String modelNumber,
java.lang.String type,
java.lang.String targetIdentifier,
java.lang.String syncFileXML,
boolean isFromUser)
Create a Sync XML package to be deployed to a target list of devices. |
void |
deploySyncPackage(Identifier packageId,
java.util.List<DeviceIdentification> deviceIds,
boolean isFromUser)
Deploy the Sync XML package which was created using the createSyncPackage method |
static HASyncManager |
getInstance()
Get an instance of the HASyncManager. |
static HASyncManager |
getInstance(java.lang.String username)
Get an instance of the HASyncManager. |
static java.lang.String |
getPackageName()
Convenience method to look up the name of the Software Package. |
protected int |
getPackageSequenceValue()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HASyncManager getInstance(java.lang.String username)
throws AxedaSDKManagerException
username - The name of the user which will be used to create a context for this user
AxedaSDKManagerException - if the User cannot be found in the DBpublic static HASyncManager getInstance()
public Identifier createSyncPackage(java.lang.String modelNumber,
java.lang.String type,
java.lang.String targetIdentifier,
java.lang.String syncFileXML,
boolean isFromUser)
throws PackageCreationException
modelNumber - The name of the model to bind this package totype - The first part of the package folder identifiertargetIdentifier - The second part of the package folder identifiersyncFileXML - The String representing the contents of the XML file to be deployedisFromUser - True if the request comes from a User's logged in session Context, false if run from a process
PackageCreationException - If there is a problem creating the package for Deployment (File I/O issues, bad ModelNumber, etc.)public static java.lang.String getPackageName()
public void deploySyncPackage(Identifier packageId,
java.util.List<DeviceIdentification> deviceIds,
boolean isFromUser)
packageId - The ID of the package returned from the createSyncPackage methoddeviceIds - The List of DeviceIdentification objects which represent the ids of the Devices to which we are deploying the packageisFromUser - True if the request comes from a User's session, false if called from a processprotected int getPackageSequenceValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||