|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.management.config.xml.BaseElement
|
+--com.adventnet.nms.provisioning.xml.MOUpdate
The MOUpdate class represents Managed Object update data in the templates.
After provisioning operation is completed on a device, the corresponding managed object in the database
is updated through MOUpdates present in the Template.
The user can use this MOUpdate element for updating Topology database.
For updating databases other
than Topology database, users can use SQLUpdate element.
Usage of Tag in Template:
<MOUpdate MOName="localhost" MOClass="com.adventnet.nms.topodb.ManagedObject"
isNew="false" when="onFailure" >
MOName is the name of the Managed Object to be updated.
<Property name="displayName" value="localhost"/>
</MOUpdate>
MOClass is the class name of the Managed Object.
If the value of the attribute "isNew" is true, then a new Managed Object will be added to the database,
else the existing Managed Object present in the database is updated.
"when" attribute indicates the criteria for updating the database, whether on success or failure.
The properties to be updated are specified using the Property tags.
SQLUpdate,
InventoryUpdate, Serialized Form| Fields inherited from class com.adventnet.management.config.xml.BaseElement |
element, isServer |
| Constructor Summary | |
MOUpdate()
Creates a new MOUpdate instance. |
|
MOUpdate(org.w3c.dom.Element element)
Creates a new MOUpdate that contains representaion of the supplied xml element. |
|
MOUpdate(java.lang.String xmlString)
Creates a new MOUpdate object that contains representation of the supplied xml string. |
|
| Method Summary | |
java.lang.String |
getIsNew()
Fetches unique identifier associated with this MOUpdate. |
java.lang.String |
getMOClass()
Fetches the class name of the Managed Object which need to be updated. |
java.lang.String |
getMOName()
Fetches the name of the Managed Object which need to be updated. |
java.util.Vector |
getPropertyElements()
Fetches all the Property elements in this InventoryUpdate. |
java.lang.String |
getWhen()
Fetches when attribute value. |
void |
setIsNew(java.lang.String isNew)
Sets unique identifier associated with this MOUpdate. |
void |
setMOClass(java.lang.String moClass)
Sets the class name of the Managed Object. |
void |
setMOName(java.lang.String moName)
Sets the name of the Managed Object which need to be updated. |
void |
setWhen(java.lang.String when)
Sets when attribute value to the specified one. |
| Methods inherited from class com.adventnet.management.config.xml.BaseElement |
addSubTag, getAttribute, getElement, getProperties, getSubTagsByName, hasAttribute, removeSubTagsByName, setAttribute, setProperties, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MOUpdate(org.w3c.dom.Element element)
throws InvalidTemplateException
element - element that represents MOUpdate.InvalidTemplateException - if an error occurs
public MOUpdate(java.lang.String xmlString)
throws InvalidTemplateException
xmlString - xml string that contains representation of this MOUpdate.InvalidTemplateException - if any error occurs.public MOUpdate()
| Method Detail |
public java.util.Vector getPropertyElements()
public java.lang.String getMOName()
public void setMOName(java.lang.String moName)
moName - value of "MOName" attribute of this MOUpdate.public java.lang.String getMOClass()
public void setMOClass(java.lang.String moClass)
moClass - value of "MOClass" attribute of this MOUpdate.public java.lang.String getIsNew()
public void setIsNew(java.lang.String isNew)
isNew - value of "isNew" attribute of this MOUpdate.public java.lang.String getWhen()
public void setWhen(java.lang.String when)
when - value of "when" attribute of this MOUpdate.
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||