|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alarmpoint.integrations.nnmi.mg.NetworkNodeManagerMobileGatewayWrapper
public class NetworkNodeManagerMobileGatewayWrapper
NetworkNodeManagerMobileGatewayWrapper is a wrapper class which enables retrieving of remote data from NNMi. The wrapper uses Axis2 JavaServiceStubs which were created based on NNMi's WSDL to prefore WS calls to NNMi. The wrapper is responsible for wrapping the service stubs so they are not directly referenced from outside classes and allows for an easy way to retrive the NNMi Java Stub objects.
Constructor Summary | |
---|---|
NetworkNodeManagerMobileGatewayWrapper()
Default constructor, this should only be used for testing as it uses hardcoded values for the WS credentials. |
|
NetworkNodeManagerMobileGatewayWrapper(java.lang.String host,
java.lang.String port,
java.lang.String wsUser,
java.lang.String wsPassword)
This constructor sets up the NetworkNodeManagerMobileGatewayWrapper with the correct WS credentials to perform WS calls though the NNMi Java Service Stubs. |
Method Summary | |
---|---|
java.lang.String[] |
getAssignToList()
Retrieve a list of Assignable users for a incident |
java.util.List<IncidentBeanServiceStub.Incident> |
getChildIncidents(java.lang.String parentId)
Retrieve the Child Incidents based on the Incident ID of the parent provided. |
IncidentBeanServiceStub.Incident |
getIncident(java.lang.String id)
Retrieve the Incident using its id. |
java.util.List<IncidentBeanServiceStub.Incident> |
getIncidents(IncidentBeanServiceStub.Filter filter)
Retrieve the Incidents based on the IncidentFilter provided. |
IncidentBeanServiceStub |
getIncidentService()
|
InterfaceBeanServiceStub._interface |
getInterface(java.lang.String sourceName)
Retrieve the IpAddress Source Object using its name. |
IPAddressBeanServiceStub.IpAddress |
getIPAddress(java.lang.String sourceName)
Retrieve the IpAddress Source Object using its name. |
IPSubnetBeanServiceStub.IpSubnet |
getIPSubnet(java.lang.String sourceName)
Retrieve the IpSubnet Source Object using its name. |
L2ConnectionBeanServiceStub.L2Connection |
getL2Connection(java.lang.String sourceName)
Retrieve the L2Connection Source Object using its name. |
NodeBeanServiceStub.Node |
getNode(java.lang.String nodeName)
Retrieve the Node using its name. |
NodeBeanServiceStub |
getNodeService()
|
java.lang.String |
getPort()
|
void |
setPort(java.lang.String port)
|
IncidentBeanServiceStub.UpdateAssignedToResponse |
updateAssignedTo(java.lang.String id,
java.lang.String assigne)
Update the incident specified by its ID with the associated priority |
IncidentBeanServiceStub.UpdateLifecycleStateResponse |
updateLifecycleState(java.lang.String id,
java.lang.String lifecycle)
Update the incident specified by its ID with the associated lifecycle |
IncidentBeanServiceStub.UpdateNotesResponse |
updateNotes(java.lang.String id,
java.lang.String notes)
Update the incident specified by its ID with the associated notes |
IncidentBeanServiceStub.UpdatePriorityResponse |
updatePriority(java.lang.String id,
java.lang.String priority)
Update the incident specified by its ID with the associated priority |
boolean |
validateCredentials()
Verifies that the given credentials are correct otherwise it throws an NmsIncidentFaultException0 exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkNodeManagerMobileGatewayWrapper() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public NetworkNodeManagerMobileGatewayWrapper(java.lang.String host, java.lang.String port, java.lang.String wsUser, java.lang.String wsPassword) throws org.apache.axis2.AxisFault
host
- wsUser
- wsPassword
-
org.apache.axis2.AxisFault
Method Detail |
---|
public IncidentBeanServiceStub getIncidentService()
public NodeBeanServiceStub getNodeService()
public java.util.List<IncidentBeanServiceStub.Incident> getIncidents(IncidentBeanServiceStub.Filter filter) throws java.rmi.RemoteException, NmsIncidentFaultException0
filter
- (Filter must contain the appropriate IncidentFilter)
java.rmi.RemoteException
NmsIncidentFaultException0
public java.util.List<IncidentBeanServiceStub.Incident> getChildIncidents(java.lang.String parentId) throws java.rmi.RemoteException, NmsIncidentFaultException0
Parent
- Incident ID
java.rmi.RemoteException
NmsIncidentFaultException0
public IncidentBeanServiceStub.Incident getIncident(java.lang.String id) throws java.rmi.RemoteException, NmsIncidentFaultException0
id
-
java.rmi.RemoteException
NmsIncidentFaultException0
public IncidentBeanServiceStub.UpdatePriorityResponse updatePriority(java.lang.String id, java.lang.String priority) throws java.rmi.RemoteException, NmsIncidentFaultException0
id
- priority
-
java.rmi.RemoteException
NmsIncidentFaultException0
public IncidentBeanServiceStub.UpdateAssignedToResponse updateAssignedTo(java.lang.String id, java.lang.String assigne) throws java.rmi.RemoteException, NmsIncidentFaultException0
id
- priority
-
java.rmi.RemoteException
NmsIncidentFaultException0
public IncidentBeanServiceStub.UpdateLifecycleStateResponse updateLifecycleState(java.lang.String id, java.lang.String lifecycle) throws java.rmi.RemoteException, NmsIncidentFaultException0
id
- lifecycle
-
java.rmi.RemoteException
NmsIncidentFaultException0
public IncidentBeanServiceStub.UpdateNotesResponse updateNotes(java.lang.String id, java.lang.String notes) throws java.rmi.RemoteException, NmsIncidentFaultException0
id
- notes
-
java.rmi.RemoteException
NmsIncidentFaultException0
public NodeBeanServiceStub.Node getNode(java.lang.String nodeName) throws java.rmi.RemoteException, NmsNodeFaultException0
nodeName
-
java.rmi.RemoteException
NmsNodeFaultException0
public L2ConnectionBeanServiceStub.L2Connection getL2Connection(java.lang.String sourceName) throws java.lang.UnsupportedOperationException, java.rmi.RemoteException, NmsL2ConnectionFaultException0
sourceName
-
java.lang.UnsupportedOperationException
java.rmi.RemoteException
NmsL2ConnectionFaultException0
public IPAddressBeanServiceStub.IpAddress getIPAddress(java.lang.String sourceName) throws java.lang.UnsupportedOperationException, java.rmi.RemoteException, NmsIPAddressFaultException0
sourceName
-
java.lang.UnsupportedOperationException
java.rmi.RemoteException
NmsIPAddressFaultException0
public IPSubnetBeanServiceStub.IpSubnet getIPSubnet(java.lang.String sourceName) throws java.lang.UnsupportedOperationException, java.rmi.RemoteException, NmsIPSubnetFaultException0
sourceName
-
java.lang.UnsupportedOperationException
java.rmi.RemoteException
NmsIPSubnetFaultException0
public InterfaceBeanServiceStub._interface getInterface(java.lang.String sourceName) throws java.lang.UnsupportedOperationException, java.rmi.RemoteException, NmsInterfaceFaultException0
sourceName
-
java.lang.UnsupportedOperationException
java.rmi.RemoteException
NmsInterfaceFaultException0
public java.lang.String[] getAssignToList() throws java.rmi.RemoteException, java.lang.Exception
java.rmi.RemoteException
java.lang.Exception
NmsIncidentFaultException0
public boolean validateCredentials() throws java.rmi.RemoteException, NmsIncidentFaultException0
java.rmi.RemoteException
NmsIncidentFaultException0
public java.lang.String getPort()
public void setPort(java.lang.String port)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |