|
AdventNet Web NMS 4 DMS API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.nms.extranet.remote.communication.fw.DataObject
For smooth data transfer between the DMS and Central Server, the data is sent as a modeled object called DataObject. This object holds all the required information on the data. The DataObject currently supports XML Element (vastly used data representation) and any Serializable Object as inputs to construct the DataObject. Moreover the XML element need not be parsed to construct the DataObject. To get an instance of this object, the default constructor of this class can be used. Required fields and data can be set for the DataObject instance, to be sent to DMS or the Central Server.
| Field Summary | |
static int |
ELEMENT
Identifies the type of data given as input data to construct DataObject. |
static int |
OBJECT
Identifies the type of data given as input data to construct DataObject. |
| Constructor Summary | |
DataObject()
|
|
| Method Summary | |
java.lang.String |
getDataID()
Returns the Data ID of the DataObject. |
int |
getDataPriority()
Returns the priority set to send the DataObject. |
int |
getDataType()
Returns DataObject.OBJECT or DataObject.ELEMENT according to the data type set. |
org.w3c.dom.Element |
getElementData()
This method returns the Element with which this DataObject is constructed. |
int |
getNotificationType()
Returns the Notification Type of the DataObject. |
java.lang.Object |
getObjectData()
This method returns the Object with which this DataObject is constructed. |
java.lang.String |
getRegionID()
Returns the Region ID of the DMS to which the data belongs. |
java.util.Properties |
getUserProperties()
Returns the user property of the DataObject. |
boolean |
isDataAvailable()
Checks for the availability of data in the DataObject. |
void |
setDataID(java.lang.String dataID)
Sets the Data ID of the DataObject. |
void |
setDataPriority(int dataPriority)
Sets the priority to send the DataObject from DMS to Central Server. |
void |
setDataType(int dataType)
Sets the data type to the DataObject as either Element or Object. |
void |
setElementData(org.w3c.dom.Element ele)
Sets the Element as data to the created DataObject instance. |
void |
setNotificationType(int notificationType)
Sets the Notification Type of the DataObject. |
void |
setObjectData(java.lang.Object obj)
To transfer a serializable Object from or to DMS or Central Server, the Object is given as a parameter to this method for the created DataObject instance. |
void |
setRegionID(java.lang.String regionID)
Sets the Region ID of the DMS to which the data belongs. |
void |
setUserProperties(java.util.Properties userProps)
Sets the user property for the DataObject.Users can set their own property set to the DataObject before sending it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OBJECT
public static final int ELEMENT
| Constructor Detail |
public DataObject()
| Method Detail |
public java.lang.String getDataID()
setDataID(String)public void setDataID(java.lang.String dataID)
dataID - Data ID of the DataObject.getDataID()public int getDataType()
DataObject.OBJECT or DataObject.ELEMENT according to the data type set. If the DataObject is constructed using an Element as data type, then this method returns DataObject.ELEMENT as the value.setDataType(int)public void setDataType(int dataType)
dataType - data type of the DataObject.getDataType()public java.lang.String getRegionID()
setRegionID(String)public void setRegionID(java.lang.String regionID)
regionID - RegionID of the DMS.getRegionID()public int getDataPriority()
setDataPriority(int)public void setDataPriority(int dataPriority)
DataPriorityID.SEND_IMMEDIATE_WITHOUT_STORE, DataPriorityID.HIGHPRIORITY_SEND_IMMEDIATE, DataPriorityID.HIGHPRIORITY,DataPriorityID.LOWPRIORITY.dataPriority - priority to send the DataObject.getDataPriority()public int getNotificationType()
setNotificationType(int)public void setNotificationType(int notificationType)
notificationType - Notification Type of the DataObject.getNotificationType()public java.util.Properties getUserProperties()
setUserProperties(Properties)public void setUserProperties(java.util.Properties userProps)
userProps - User Property of the DataObject.getUserProperties()public boolean isDataAvailable()
public void setElementData(org.w3c.dom.Element ele)
Element from or to DMS or Central Server, DataObject instance is created first and then this method is called to set the Element as the data for the created instance. Alternatively, DataObjectUtil.getDataObject method can be used.setObjectData(java.lang.Object)
public void setObjectData(java.lang.Object obj)
throws java.io.NotSerializableException
DataObjectUtil.getDataObject method can be used.
setElementData(Element)java.io.NotSerializableException - public org.w3c.dom.Element getElementData()
public java.lang.Object getObjectData()
|
AdventNet Web NMS 4 DMS API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||