|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TopologyData
A structure serving as input to topology modification methods.
Method Summary | |
---|---|
void |
addCI(CI ci)
Adds the CI to the list of modifications. |
CI |
addCI(java.lang.String type)
Creates a new CI of the specified type and adds it to the list of modifications. |
CI |
addCI(UcmdbId id,
java.lang.String type)
Creates a new CI of the specified type ID and adds it to the list of modifications. |
void |
addCIs(java.lang.Iterable<? extends CI> cis)
Adds all CIs from the collection to the list of modifications. |
void |
addRelation(Relation relation)
Adds the specified relation to the list of modifications. |
Relation |
addRelation(java.lang.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. |
Relation |
addRelation(java.lang.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. |
Relation |
addRelation(UcmdbId id,
java.lang.String type,
CI end1,
CI end2)
|
Relation |
addRelation(UcmdbId id,
java.lang.String type,
UcmdbId end1,
UcmdbId end2)
|
void |
addRelations(java.lang.Iterable<? extends Relation> relations)
Adds the relations in the collection to the list of modifications. |
CI |
getCI(UcmdbId id)
Returns the CI in this collection having the specified ID. |
java.lang.Iterable<CI> |
getCIs()
An Iterable collection of the CIs to be modified. |
java.lang.Iterable<Relation> |
getRelations()
An Iterable collection of the Relations to be modified. |
boolean |
hasCIs()
Checks if there are any CIs in the list of modifications. |
boolean |
hasRelations()
Checks if there are any Relations in the list of modifications. |
Method Detail |
---|
void addCI(CI ci)
ci
- The ci to add.void addCIs(java.lang.Iterable<? extends CI> cis)
cis
- The CIs to add.CI addCI(java.lang.String type)
TopologyUpdateFactory.createCI(String)
addCI(com.hp.ucmdb.api.types.CI)
.
type
- the type of the CI.
TopologyUpdateFactory.createCI(String)
CI addCI(UcmdbId id, java.lang.String type)
TopologyUpdateFactory.createCI(com.hp.ucmdb.api.types.UcmdbId, String)
addCI(com.hp.ucmdb.api.types.CI)
.
id
- the id of the CI.type
- The type of the CI.
TopologyUpdateFactory.createCI(com.hp.ucmdb.api.types.UcmdbId, String)
void addRelation(Relation relation)
relation
- The relation to add.void addRelations(java.lang.Iterable<? extends Relation> relations)
relations
- The relations to add.Relation addRelation(java.lang.String type, CI end1, CI end2)
TopologyUpdateFactory.createRelation(String, com.hp.ucmdb.api.types.CI, com.hp.ucmdb.api.types.CI)
addRelation(com.hp.ucmdb.api.types.Relation)
type
- The type of the relationend1
- The end1 CIend2
- The end2 CI
TopologyUpdateFactory.createRelation(String, com.hp.ucmdb.api.types.CI, com.hp.ucmdb.api.types.CI)
Relation addRelation(java.lang.String type, UcmdbId end1, UcmdbId end2)
TopologyUpdateFactory.createRelation(String, com.hp.ucmdb.api.types.UcmdbId, com.hp.ucmdb.api.types.UcmdbId)
addRelation(com.hp.ucmdb.api.types.Relation)
type
- The type of the relationend1
- The end1 CI idend2
- The end2 CI id
TopologyUpdateFactory.createRelation(String, com.hp.ucmdb.api.types.UcmdbId, com.hp.ucmdb.api.types.UcmdbId)
Relation addRelation(UcmdbId id, java.lang.String type, UcmdbId end1, UcmdbId end2)
Relation addRelation(UcmdbId id, java.lang.String type, CI end1, CI end2)
boolean hasCIs()
java.lang.Iterable<CI> getCIs()
Iterable
collection of the CIs to be modified.
CI getCI(UcmdbId id)
id
- The id of the requested CI
boolean hasRelations()
java.lang.Iterable<Relation> getRelations()
Iterable
collection of the Relations to be modified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |