Class InventoryService
- java.lang.Object
-
- org.opennms.web.svclayer.inventory.InventoryService
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class InventoryService extends java.lang.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(java.lang.String deviceName)
checkRancidNodeboolean
checkRWSAlive()
checkRWSAliveboolean
createBucket(java.lang.String bucket)
createBucketboolean
createNodeOnRouterDb(java.lang.String groupName, java.lang.String deviceName, java.lang.String deviceType, java.lang.String status, java.lang.String comment)
createNodeOnRouterDbboolean
deleteBucket(java.lang.String bucket)
deleteBucketboolean
deleteBucketItem(java.lang.String bucket, java.lang.String filename)
deleteBucketItemboolean
deleteClogin(java.lang.String deviceName)
deleteCloginboolean
deleteNodeOnRouterDb(java.lang.String groupName, java.lang.String deviceName)
deleteNodeOnRouterDbjava.util.Map<java.lang.String,java.lang.Object>
getBuckets(int nodeid)
getBucketsjava.util.Map<java.lang.String,java.lang.Object>
getInventory(int nodeid, java.lang.String group, java.lang.String version)
getInventoryNodeDao
getNodeDao()
getNodeDaojava.util.Map<java.lang.String,java.lang.Object>
getRancidNode(int nodeid)
getRancidNodejava.util.Map<java.lang.String,java.lang.Object>
getRancidNodeBase(int nodeid)
getRancidNodeBasejava.util.Map<java.lang.String,java.lang.Object>
getRancidNodeList(int nodeid)
getRancidNodeListjava.util.Map<java.lang.String,java.lang.Object>
getRancidNodeList(int nodeid, java.lang.String group)
getRancidNodeListjava.util.Map<java.lang.String,java.lang.Object>
getRancidNodeWithCLogin(int nodeid, boolean adminRole)
getRancidNodeWithCLoginjava.util.Map<java.lang.String,java.lang.Object>
getRancidNodeWithCLoginForGroup(int nodeid, java.lang.String group, boolean adminRole)
getRancidNodeWithCLoginForGroupRWSConfig
getRwsConfig()
getRwsConfigvoid
setNodeDao(NodeDao nodeDao)
setNodeDaovoid
setRwsConfig(RWSConfig rwsConfig)
setRwsConfigboolean
switchStatus(java.lang.String groupName, java.lang.String deviceName)
switchStatusboolean
updateClogin(java.lang.String deviceName, java.lang.String groupName, java.lang.String userID, java.lang.String pass, java.lang.String enPass, java.lang.String loginM, java.lang.String autoE)
updateCloginboolean
updateNodeOnRouterDb(java.lang.String groupName, java.lang.String deviceName, java.lang.String deviceType, java.lang.String status, java.lang.String comment)
updateNodeOnRouterDb
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.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(java.lang.String deviceName)
checkRancidNode
- Parameters:
deviceName
- aString
object.- Returns:
- a boolean.
-
getRancidNodeBase
public java.util.Map<java.lang.String,java.lang.Object> getRancidNodeBase(int nodeid)
getRancidNodeBase
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getRancidNode
public java.util.Map<java.lang.String,java.lang.Object> getRancidNode(int nodeid)
getRancidNode
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getBuckets
public java.util.Map<java.lang.String,java.lang.Object> getBuckets(int nodeid)
getBuckets
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getRancidNodeList
public java.util.Map<java.lang.String,java.lang.Object> getRancidNodeList(int nodeid)
getRancidNodeList
- Parameters:
nodeid
- a int.- Returns:
- a java$util$Map object.
-
getRancidNodeList
public java.util.Map<java.lang.String,java.lang.Object> getRancidNodeList(int nodeid, java.lang.String group)
getRancidNodeList
- Parameters:
nodeid
- a int.group
- aString
object.- Returns:
- a java$util$Map object.
-
getInventory
public java.util.Map<java.lang.String,java.lang.Object> getInventory(int nodeid, java.lang.String group, java.lang.String version)
getInventory
- Parameters:
nodeid
- a int.group
- aString
object.version
- aString
object.- Returns:
- a java$util$Map object.
-
getRancidNodeWithCLoginForGroup
public java.util.Map<java.lang.String,java.lang.Object> getRancidNodeWithCLoginForGroup(int nodeid, java.lang.String group, boolean adminRole)
getRancidNodeWithCLoginForGroup
- Parameters:
nodeid
- a int.group
- aString
object.adminRole
- a boolean.- Returns:
- a java$util$Map object.
-
getRancidNodeWithCLogin
public java.util.Map<java.lang.String,java.lang.Object> getRancidNodeWithCLogin(int nodeid, boolean adminRole)
getRancidNodeWithCLogin
- Parameters:
nodeid
- a int.adminRole
- a boolean.- Returns:
- a java$util$Map object.
-
switchStatus
public boolean switchStatus(java.lang.String groupName, java.lang.String deviceName)
switchStatus
- Parameters:
groupName
- aString
object.deviceName
- aString
object.- Returns:
- a boolean.
-
deleteNodeOnRouterDb
public boolean deleteNodeOnRouterDb(java.lang.String groupName, java.lang.String deviceName)
deleteNodeOnRouterDb
- Parameters:
groupName
- aString
object.deviceName
- aString
object.- Returns:
- a boolean.
-
updateNodeOnRouterDb
public boolean updateNodeOnRouterDb(java.lang.String groupName, java.lang.String deviceName, java.lang.String deviceType, java.lang.String status, java.lang.String comment)
updateNodeOnRouterDb
- Parameters:
groupName
- aString
object.deviceName
- aString
object.deviceType
- aString
object.status
- aString
object.comment
- aString
object.- Returns:
- a boolean.
-
createNodeOnRouterDb
public boolean createNodeOnRouterDb(java.lang.String groupName, java.lang.String deviceName, java.lang.String deviceType, java.lang.String status, java.lang.String comment)
createNodeOnRouterDb
- Parameters:
groupName
- aString
object.deviceName
- aString
object.deviceType
- aString
object.status
- aString
object.comment
- aString
object.- Returns:
- a boolean.
-
updateClogin
public boolean updateClogin(java.lang.String deviceName, java.lang.String groupName, java.lang.String userID, java.lang.String pass, java.lang.String enPass, java.lang.String loginM, java.lang.String autoE)
updateClogin
- Parameters:
deviceName
- aString
object.groupName
- aString
object.userID
- aString
object.pass
- aString
object.enPass
- aString
object.loginM
- aString
object.autoE
- aString
object.- Returns:
- a boolean.
-
deleteClogin
public boolean deleteClogin(java.lang.String deviceName)
deleteClogin
- Parameters:
deviceName
- aString
object.- Returns:
- a boolean.
-
deleteBucketItem
public boolean deleteBucketItem(java.lang.String bucket, java.lang.String filename)
deleteBucketItem
- Parameters:
bucket
- aString
object.filename
- aString
object.- Returns:
- a boolean.
-
deleteBucket
public boolean deleteBucket(java.lang.String bucket)
deleteBucket
- Parameters:
bucket
- aString
object.- Returns:
- a boolean.
-
createBucket
public boolean createBucket(java.lang.String bucket)
createBucket
- Parameters:
bucket
- aString
object.- Returns:
- a boolean.
-
-