AdventNet Web NMS 4 API Specification

com.adventnet.nms.fe.common
Interface SessionNarrowerInterface

All Known Implementing Classes:
CustomSessionBean, MapSessionBean

public interface SessionNarrowerInterface

This interface defines methods that are common to all EJB/non-EJB session beans. This interface will be used by all FE's getXXXSession method.

Since:
Web NMS 2.3

Method Summary
 java.lang.Object getInstance()
          Returns the SessionBean instance.
 void setAPI(CommonAPI comapi)
          Set the CommonAPI for this module to be used by Session Bean.
 void setConnection(java.sql.Connection con)
          Set the Connection to be used by Session Bean.
 void setJdbcAPI(JdbcAPI jdbcapi)
          Set the JdbcAPI for this module to be used by Session Bean.
 void setLogAPI(LogAPI logapi)
          Set the LogAPI for this module to be used by Session Bean.
 void setSeverityAPI(com.adventnet.nms.fe.common.SeverityFEAPI sevAPI)
          Set the SeverityFEAPI to be used by Session Bean.
 

Method Detail

getInstance

public java.lang.Object getInstance()
Returns the SessionBean instance. Used by modules' main class like AlertFE, MapFE etc.. in their getXXXSession() method.

setAPI

public void setAPI(CommonAPI comapi)
Set the CommonAPI for this module to be used by Session Bean.
Parameters:
comapi - a CommonAPI instance to be used by this Session Bean.

setJdbcAPI

public void setJdbcAPI(JdbcAPI jdbcapi)
Set the JdbcAPI for this module to be used by Session Bean.
Parameters:
jdbcapi - a JdbcAPI instance to be used by this Session Bean.

setLogAPI

public void setLogAPI(LogAPI logapi)
Set the LogAPI for this module to be used by Session Bean.
Parameters:
logapi - a LogAPI instance to be used by this Session Bean.

setSeverityAPI

public void setSeverityAPI(com.adventnet.nms.fe.common.SeverityFEAPI sevAPI)
Set the SeverityFEAPI to be used by Session Bean.
Parameters:
sevAPI - a SeverityFEAPI instance to be used by this Session Bean.

setConnection

public void setConnection(java.sql.Connection con)
Set the Connection to be used by Session Bean.
Parameters:
con - a Connection to be used by this Session Bean.

AdventNet Web NMS 4 API Specification