Class InventoryService
- java.lang.Object
-
- org.opennms.web.svclayer.inventory.InventoryService
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class InventoryService extends Object implements org.springframework.beans.factory.InitializingBean
InventoryService class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description InventoryService()
Constructor for InventoryService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetboolean
checkRancidNode(String deviceName)
checkRancidNodeboolean
checkRWSAlive()
checkRWSAliveboolean
createBucket(String bucket)
createBucketboolean
createNodeOnRouterDb(String groupName, String deviceName, String deviceType, String status, String comment)
createNodeOnRouterDbboolean
deleteBucket(String bucket)
deleteBucketboolean
deleteBucketItem(String bucket, String filename)
deleteBucketItemboolean
deleteClogin(String deviceName)
deleteCloginboolean
deleteNodeOnRouterDb(String groupName, String deviceName)
deleteNodeOnRouterDbMap<String,Object>
getBuckets(int nodeid)
getBucketsMap<String,Object>
getInventory(int nodeid, String group, String version)
getInventoryNodeDao
getNodeDao()
getNodeDaoMap<String,Object>
getRancidNode(int nodeid)
getRancidNodeMap<String,Object>
getRancidNodeBase(int nodeid)
getRancidNodeBaseMap<String,Object>
getRancidNodeList(int nodeid)
getRancidNodeListMap<String,Object>
getRancidNodeList(int nodeid, String group)
getRancidNodeListMap<String,Object>
getRancidNodeWithCLogin(int nodeid, boolean adminRole)
getRancidNodeWithCLoginMap<String,Object>
getRancidNodeWithCLoginForGroup(int nodeid, String group, boolean adminRole)
getRancidNodeWithCLoginForGroupRWSConfig
getRwsConfig()
getRwsConfigvoid
setNodeDao(NodeDao nodeDao)
setNodeDaovoid
setRwsConfig(RWSConfig rwsConfig)
setRwsConfigboolean
switchStatus(String groupName, String deviceName)
switchStatusboolean
updateClogin(String deviceName, String groupName, String userID, String pass, String enPass, String loginM, String autoE)
updateCloginboolean
updateNodeOnRouterDb(String groupName, String deviceName, String deviceType, String status, String comment)
updateNodeOnRouterDb
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
- if any.
-
setRwsConfig
public void setRwsConfig(RWSConfig rwsConfig)
setRwsConfig
- Parameters:
rwsConfig
- aRWSConfig
object.
-
setNodeDao
public void setNodeDao(NodeDao nodeDao)
setNodeDao
- Parameters:
nodeDao
- aNodeDao
object.
-
checkRWSAlive
public boolean checkRWSAlive()
checkRWSAlive
- Returns:
- a boolean.
-
checkRancidNode
public boolean checkRancidNode(String deviceName)
checkRancidNode
- Parameters:
deviceName
- aString
object.- Returns:
- a boolean.
-
getRancidNodeBase
public Map<String,Object> getRancidNodeBase(int nodeid)
getRancidNodeBase
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getRancidNode
public Map<String,Object> getRancidNode(int nodeid)
getRancidNode
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getBuckets
public Map<String,Object> getBuckets(int nodeid)
getBuckets
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getRancidNodeList
public Map<String,Object> getRancidNodeList(int nodeid)
getRancidNodeList
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getRancidNodeList
public Map<String,Object> getRancidNodeList(int nodeid, String group)
getRancidNodeList
- Parameters:
nodeid
- a int.group
- aString
object.- Returns:
- a java$util$Map object.
-
getInventory
public Map<String,Object> getInventory(int nodeid, String group, String version)
getInventory
-
getRancidNodeWithCLoginForGroup
public Map<String,Object> getRancidNodeWithCLoginForGroup(int nodeid, String group, boolean adminRole)
getRancidNodeWithCLoginForGroup
- Parameters:
nodeid
- a int.group
- aString
object.adminRole
- a boolean.- Returns:
- a java$util$Map object.
-
getRancidNodeWithCLogin
public Map<String,Object> getRancidNodeWithCLogin(int nodeid, boolean adminRole)
getRancidNodeWithCLogin
- Parameters:
nodeid
- a int.adminRole
- a boolean.- Returns:
- a java$util$Map object.
-
deleteNodeOnRouterDb
public boolean deleteNodeOnRouterDb(String groupName, String deviceName)
deleteNodeOnRouterDb
-
updateNodeOnRouterDb
public boolean updateNodeOnRouterDb(String groupName, String deviceName, String deviceType, String status, String comment)
updateNodeOnRouterDb
-
createNodeOnRouterDb
public boolean createNodeOnRouterDb(String groupName, String deviceName, String deviceType, String status, String comment)
createNodeOnRouterDb
-
updateClogin
public boolean updateClogin(String deviceName, String groupName, String userID, String pass, String enPass, String loginM, String autoE)
updateClogin
-
deleteClogin
public boolean deleteClogin(String deviceName)
deleteClogin
- Parameters:
deviceName
- aString
object.- Returns:
- a boolean.
-
deleteBucket
public boolean deleteBucket(String bucket)
deleteBucket
- Parameters:
bucket
- aString
object.- Returns:
- a boolean.
-
-