public class InventoryService extends Object implements org.springframework.beans.factory.InitializingBean
InventoryService class.
Constructor and Description |
---|
InventoryService()
Constructor for InventoryService.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
boolean |
checkRancidNode(String deviceName)
checkRancidNode
|
boolean |
checkRWSAlive()
checkRWSAlive
|
boolean |
createBucket(String bucket)
createBucket
|
boolean |
createNodeOnRouterDb(String groupName,
String deviceName,
String deviceType,
String status,
String comment)
createNodeOnRouterDb
|
boolean |
deleteBucket(String bucket)
deleteBucket
|
boolean |
deleteBucketItem(String bucket,
String filename)
deleteBucketItem
|
boolean |
deleteClogin(String deviceName)
deleteClogin
|
boolean |
deleteNodeOnRouterDb(String groupName,
String deviceName)
deleteNodeOnRouterDb
|
Map<String,Object> |
getBuckets(int nodeid)
getBuckets
|
Map<String,Object> |
getInventory(int nodeid,
String group,
String version)
getInventory
|
NodeDao |
getNodeDao()
getNodeDao
|
Map<String,Object> |
getRancidNode(int nodeid)
getRancidNode
|
Map<String,Object> |
getRancidNodeBase(int nodeid)
getRancidNodeBase
|
Map<String,Object> |
getRancidNodeList(int nodeid)
getRancidNodeList
|
Map<String,Object> |
getRancidNodeList(int nodeid,
String group)
getRancidNodeList
|
Map<String,Object> |
getRancidNodeWithCLogin(int nodeid,
boolean adminRole)
getRancidNodeWithCLogin
|
Map<String,Object> |
getRancidNodeWithCLoginForGroup(int nodeid,
String group,
boolean adminRole)
getRancidNodeWithCLoginForGroup
|
RWSConfig |
getRwsConfig()
getRwsConfig
|
void |
setNodeDao(NodeDao nodeDao)
setNodeDao
|
void |
setRwsConfig(RWSConfig rwsConfig)
setRwsConfig
|
boolean |
switchStatus(String groupName,
String deviceName)
switchStatus
|
boolean |
updateClogin(String deviceName,
String groupName,
String userID,
String pass,
String enPass,
String loginM,
String autoE)
updateClogin
|
boolean |
updateNodeOnRouterDb(String groupName,
String deviceName,
String deviceType,
String status,
String comment)
updateNodeOnRouterDb
|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- if any.public void setRwsConfig(RWSConfig rwsConfig)
setRwsConfig
rwsConfig
- a RWSConfig
object.public void setNodeDao(NodeDao nodeDao)
setNodeDao
nodeDao
- a NodeDao
object.public boolean checkRWSAlive()
checkRWSAlive
public boolean checkRancidNode(String deviceName)
checkRancidNode
deviceName
- a String
object.public Map<String,Object> getRancidNodeBase(int nodeid)
getRancidNodeBase
nodeid
- a int.public Map<String,Object> getRancidNode(int nodeid)
getRancidNode
nodeid
- a int.public Map<String,Object> getBuckets(int nodeid)
getBuckets
nodeid
- a int.public Map<String,Object> getRancidNodeList(int nodeid)
getRancidNodeList
nodeid
- a int.public Map<String,Object> getRancidNodeList(int nodeid, String group)
getRancidNodeList
nodeid
- a int.group
- a String
object.public Map<String,Object> getInventory(int nodeid, String group, String version)
getInventory
public Map<String,Object> getRancidNodeWithCLoginForGroup(int nodeid, String group, boolean adminRole)
getRancidNodeWithCLoginForGroup
nodeid
- a int.group
- a String
object.adminRole
- a boolean.public Map<String,Object> getRancidNodeWithCLogin(int nodeid, boolean adminRole)
getRancidNodeWithCLogin
nodeid
- a int.adminRole
- a boolean.public boolean deleteNodeOnRouterDb(String groupName, String deviceName)
deleteNodeOnRouterDb
public boolean updateNodeOnRouterDb(String groupName, String deviceName, String deviceType, String status, String comment)
updateNodeOnRouterDb
public boolean createNodeOnRouterDb(String groupName, String deviceName, String deviceType, String status, String comment)
createNodeOnRouterDb
public boolean updateClogin(String deviceName, String groupName, String userID, String pass, String enPass, String loginM, String autoE)
updateClogin
public boolean deleteClogin(String deviceName)
deleteClogin
deviceName
- a String
object.public boolean deleteBucket(String bucket)
deleteBucket
bucket
- a String
object.Copyright © 2021. All rights reserved.