Package com.hp.ucmdb.api.topology
Interface TopologyData
- All Superinterfaces:
 Serializable
- All Known Subinterfaces:
 TopologyModificationData
A structure serving as input to topology modification methods.
- 
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the CI to the list of modifications.Creates a new CI of the specified type ID and adds it to the list of modifications.Creates a new CI of the specified type and adds it to the list of modifications.voidAdds all CIs from the collection to the list of modifications.voidaddRelation(Relation relation) Adds the specified relation to the list of modifications.addRelation(UcmdbId id, String type, CI end1, CI end2) addRelation(UcmdbId id, String type, UcmdbId end1, UcmdbId end2) addRelation(String type, CI end1, CI end2) Creates a new relation of the specified type between the two CIs and adds it to the list of modifications.addRelation(String type, UcmdbId end1, UcmdbId end2) Creates a new relation of the specified type between the CIs with the specified IDs and adds it to the list of modifications.voidaddRelations(Iterable<? extends Relation> relations) Adds the relations in the collection to the list of modifications.Returns the CI in this collection having the specified ID.getCIs()AnIterablecollection of the CIs to be modified.AnIterablecollection of the Relations to be modified.booleanhasCIs()Checks if there are any CIs in the list of modifications.booleanChecks if there are any Relations in the list of modifications. 
- 
Method Details
- 
addCI
Adds the CI to the list of modifications.- Parameters:
 ci- The ci to add.
 - 
addCIs
Adds all CIs from the collection to the list of modifications.- Parameters:
 cis- The CIs to add.
 - 
addCI
Creates a new CI of the specified type and adds it to the list of modifications. The new CI has a temporary ID. This has the same effect as these two calls:
TopologyUpdateFactory.createCI(String)
addCI(com.hp.ucmdb.api.types.CI).- Parameters:
 type- the type of the CI.- Returns:
 - CI
 - See Also:
 
 - 
addCI
Creates a new CI of the specified type ID and adds it to the list of modifications. This has the same effect as these two calls:
TopologyUpdateFactory.createCI(com.hp.ucmdb.api.types.UcmdbId, String)
addCI(com.hp.ucmdb.api.types.CI).- Parameters:
 id- the id of the CI.type- The type of the CI.- Returns:
 - CI
 - See Also:
 
 - 
addRelation
Adds the specified relation to the list of modifications.- Parameters:
 relation- The relation to add.
 - 
addRelations
Adds the relations in the collection to the list of modifications.- Parameters:
 relations- The relations to add.
 - 
addRelation
Creates a new relation of the specified type between the two CIs and adds it to the list of modifications. The new relation has a temporary ID. This has the same effect as these two calls:
TopologyUpdateFactory.createRelation(String, com.hp.ucmdb.api.types.CI, com.hp.ucmdb.api.types.CI)
addRelation(com.hp.ucmdb.api.types.Relation)- Parameters:
 type- The type of the relationend1- The end1 CIend2- The end2 CI- Returns:
 - relation
 - See Also:
 
 - 
addRelation
Creates a new relation of the specified type between the CIs with the specified IDs and adds it to the list of modifications. The new relation has a temporary ID. This has the same effect as these two calls:
TopologyUpdateFactory.createRelation(String, com.hp.ucmdb.api.types.UcmdbId, com.hp.ucmdb.api.types.UcmdbId)
addRelation(com.hp.ucmdb.api.types.Relation)- Parameters:
 type- The type of the relationend1- The end1 CI idend2- The end2 CI id- Returns:
 - relation
 - See Also:
 
 - 
addRelation
 - 
addRelation
 - 
hasCIs
boolean hasCIs()Checks if there are any CIs in the list of modifications.- Returns:
 - true if has at least one CI
 
 - 
getCIs
AnIterablecollection of the CIs to be modified.- Returns:
 - iterable on all CIs
 
 - 
getCI
Returns the CI in this collection having the specified ID.- Parameters:
 id- The id of the requested CI- Returns:
 - CI
 
 - 
hasRelations
boolean hasRelations()Checks if there are any Relations in the list of modifications.- Returns:
 - true iff has at least one relation
 
 - 
getRelations
AnIterablecollection of the Relations to be modified.- Returns:
 - iterable on all relations
 
 
 -