|
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.nms.client.ClientCVAPIImpl
|
+--com.adventnet.nms.config.ClientAuditAPIImpl
ClientAuditAPIImpl is the implementation of the ClientAuditAPI which the API users would instantiate to manipulate with Audit Custom Views.
| Fields inherited from class com.adventnet.nms.client.ClientCVAPIImpl |
customViewsHT, lookupName, serverCVApi, sessionId, temporaryCustomViews, user |
| Constructor Summary | |
ClientAuditAPIImpl(java.lang.String hostName,
int rmiRegPort,
java.lang.String userName)
Constructor with params of host name and rmi registry port of the server and user name with which the client logs in. |
|
ClientAuditAPIImpl(java.lang.String hostName,
int rmiRegPort,
java.lang.String userName,
java.lang.String password)
Creates a new ClientAuditAPIImpl instance. |
|
ClientAuditAPIImpl(java.lang.String hostName,
int rmiRegPort,
java.lang.String userName,
java.lang.String password,
java.lang.String cryptoClass)
Creates a new ClientAuditAPIImpl instance. |
|
ClientAuditAPIImpl(java.lang.String hostName,
java.lang.String userName)
|
|
| Method Summary | |
java.lang.String[] |
getDefaultDisplayFields()
getDefaultDisplayFields method returns an array of
default field names to be used as display fields for new Custom Views. |
java.lang.String[] |
getDefaultDisplayLabels()
getDefaultDisplayLabels method returns an array of
default labels (display names) for the fields in the Custom View. |
protected java.lang.String |
getKeyFieldName()
getKeyFieldName returns the name of the property
by which the Object is uniquely identified. |
protected java.lang.String |
getLookupName()
getLookupName returns the name to be used for RMI lookup. |
java.util.Hashtable |
getPropertiesOfObject(java.lang.String name)
This method will accept name of a ManagedObject and returns properties of the object. |
protected boolean |
isShowLatest()
isShowLatest specifies whether or not a module
shows the latest objects (objects created/updated lately) always. |
| Methods inherited from class com.adventnet.nms.client.ClientCVAPIImpl |
createCustomView, createCustomView, createCustomView, createCustomView, createCustomView, getAPI, getCustomView, getCustomViewNames, getServerAPI, getSessionId, getUserName, removeCustomView, retrieveCustomView, saveCustomView, saveCustomViewForAll, showDialog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.adventnet.nms.client.CommonClientAPI |
createCustomView, createCustomView, createCustomView, createCustomView, createCustomView, getCustomView, getCustomViewNames, removeCustomView, retrieveCustomView, saveCustomView, saveCustomViewForAll |
| Constructor Detail |
public ClientAuditAPIImpl(java.lang.String hostName,
java.lang.String userName)
public ClientAuditAPIImpl(java.lang.String hostName,
int rmiRegPort,
java.lang.String userName)
public ClientAuditAPIImpl(java.lang.String hostName,
int rmiRegPort,
java.lang.String userName,
java.lang.String password)
throws java.lang.Exception
ClientAuditAPIImpl instance.hostName - The FE server's hostName to lookup for the APIrmiRegPort - The port in which the RMI registry is listeninguserName - The user for whom the instance is createdpassword - The password for the user. This is required in case WebNMS
is started in Secure RMI Mode. In such a case only RMIAccessAPI will
be available via RMI and all other APIs will be available only after
authentication. This can be set to null in normal setup of WebNMS.
public ClientAuditAPIImpl(java.lang.String hostName,
int rmiRegPort,
java.lang.String userName,
java.lang.String password,
java.lang.String cryptoClass)
throws java.lang.Exception
ClientAuditAPIImpl instance.hostName - The FE server's hostName to lookup for the APIrmiRegPort - The port in which the RMI registry is listeninguserName - The user for whom the instance is createdpassword - The password for the user. This is required if WebNMS is started in Secure RMI Mode * In such a case only RMIAccessAPI will be available via RMI and all other APIs will be available only
after authentication. This can be set to null in normal setup of WebNMS.cryptoClass - name of the class which is used to encrypt the
password, if Custom Authentication is used| Method Detail |
public java.util.Hashtable getPropertiesOfObject(java.lang.String name)
throws java.rmi.RemoteException
getPropertiesOfObject in interface ClientAuditAPIprotected java.lang.String getLookupName()
ClientCVAPIImplgetLookupName returns the name to be used for RMI lookup.
The RMI lookup with this name should return a reference to a class
which implements ServerCustomViewAPI.getLookupName in class ClientCVAPIImplcom.adventnet.nms.client.ClientCVAPIImplString value of the name to used for lookupprotected java.lang.String getKeyFieldName()
ClientCVAPIImplgetKeyFieldName returns the name of the property
by which the Object is uniquely identified.getKeyFieldName in class ClientCVAPIImplcom.adventnet.nms.client.ClientCVAPIImplpublic java.lang.String[] getDefaultDisplayFields()
CommonClientAPIgetDefaultDisplayFields method returns an array of
default field names to be used as display fields for new Custom Views.
These are a subset of the property names for an Object in that module.
The labels that are displayed for these fields are available
in CommonClientAPI.getDefaultDisplayLabels()getDefaultDisplayFields in interface CommonClientAPIgetDefaultDisplayFields in class ClientCVAPIImplcom.adventnet.nms.client.CommonClientAPIString[] of display fields for the new Custom View.public java.lang.String[] getDefaultDisplayLabels()
CommonClientAPIgetDefaultDisplayLabels method returns an array of
default labels (display names) for the fields in the Custom View.
The size of the array returned by this method should match with those
returned by CommonClientAPI.getDefaultDisplayFields()
getDefaultDisplayLabels in interface CommonClientAPIgetDefaultDisplayLabels in class ClientCVAPIImplcom.adventnet.nms.client.CommonClientAPIString[] valueprotected boolean isShowLatest()
ClientCVAPIImplisShowLatest specifies whether or not a module
shows the latest objects (objects created/updated lately) always.
If this returns true and if the objects in the Custom View show the latest, then the view will get updated such that it will always contain the latest.
For example, if the custom view contains 95 objects and and what is being currently viewed is from 86 to 95 (latest) with the view length of 10. The view can be specified as [86 to 95 of 95].
Say a new object gets added increasing the total to 96 for this custom view.
Now if this method were to return true, then the row gets added in the view, with the range changing to [87 to 96 of 96] example : Event module custom views.
If this method returns false, then the rows stay unaffected, with the total alone changing .Hence the view will be [86 to 95 of 96]. You may see the 96th row by doing a query for next set of rows. example : Topo module custom views.
isShowLatest in class ClientCVAPIImplcom.adventnet.nms.client.ClientCVAPIImplboolean value whether to showlatest or not.
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||