Package com.hp.ucmdb.api.state
Interface StatesService
public interface StatesService
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a state if it did not exist alreadyPerforms calculation of what would get deleted as a result of recursive deleteList all active states for this customervoid
modify
(TopologyModification topologyModification) Copy cis to authorized state Similar to:TopologyUpdateService.execute(com.hp.ucmdb.api.topology.TopologyModification, com.hp.ucmdb.api.topology.ModifyMode)
The difference is that unless all the CIs that would get deleted as a result of recursive delete were specified the whole bulk would fail withExecutionException
boolean
removeState
(String state) Remove a state if it exists
-
Method Details
-
listStates
List all active states for this customer- Returns:
- list of state names
-
addState
Add a state if it did not exist already- Parameters:
state
- Name of the state to be added. Currently onlyState.AUTHORIZED
are supported- Returns:
- true if the state did not exist else otherwise
-
removeState
Remove a state if it exists- Parameters:
state
- Name of the state to be added. Currently onlyState.AUTHORIZED
are supported- Returns:
- true if the state existed else otherwise
-
modify
Copy cis to authorized state Similar to:TopologyUpdateService.execute(com.hp.ucmdb.api.topology.TopologyModification, com.hp.ucmdb.api.topology.ModifyMode)
The difference is that unless all the CIs that would get deleted as a result of recursive delete were specified the whole bulk would fail withExecutionException
-
analyzeDeletions
Performs calculation of what would get deleted as a result of recursive delete- Parameters:
data
- input data- Returns:
- data that would get deleted
-