Package com.hp.ucmdb.api.topology
Interface TopologyModificationData
- All Superinterfaces:
Serializable
,TopologyData
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addReferenceCI
(CI ci) Adds the CI to the list of modifications.addReferenceCI
(UcmdbId id, String type) Creates a new CI of the specified type ID and adds it to the list of modification.addReferenceCI
(String type) Creates a new CI of the specified type and adds it to the list of modification.void
addReferenceCIs
(Iterable<? extends CI> cis) Adds all CIs from the collection to the list of modifications.void
addReferenceRelation
(Relation relation) Adds the specified relation to the list of modifications.addReferenceRelation
(UcmdbId id, String type, CI end1, CI end2) addReferenceRelation
(UcmdbId id, String type, UcmdbId end1, UcmdbId end2) addReferenceRelation
(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.addReferenceRelation
(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.void
addReferenceRelations
(Iterable<? extends Relation> relations) Adds the relations in the collection to the list of modifications.Returns list properties to update or nullReturns the CI in this collection having the specified id.AnIterable
collection of the reference CIs.AnIterable
collection of the Relations to be modified.boolean
Checks if there are any CIs in the list of modifications.boolean
Checks if there are any Relations in the list of modifications.boolean
boolean
boolean
void
setForceRemove
(boolean forceRemove) void
setFromDelegateUser
(boolean fromDelegateUser) void
setIgnoreWhenCantIdentify
(boolean ignoreWhenCantIdentify) withListPropertiesUpdate
(ListPropertiesUpdate listPropertiesUpdate) Set list properties to updateMethods inherited from interface com.hp.ucmdb.api.topology.TopologyData
addCI, addCI, addCI, addCIs, addRelation, addRelation, addRelation, addRelation, addRelation, addRelations, getCI, getCIs, getRelations, hasCIs, hasRelations
-
Method Details
-
addReferenceCI
Adds the CI to the list of modifications.- Parameters:
ci
- The CI to add
-
addReferenceCIs
Adds all CIs from the collection to the list of modifications.- Parameters:
cis
- The cis to add
-
addReferenceCI
Creates a new CI of the specified type and adds it to the list of modification. The new CI has a temporary ID. This has the same effect as these two calls:
TopologyUpdateFactory.createCI(String)
TopologyData.addCI(com.hp.ucmdb.api.types.CI)
.- Parameters:
type
- The type of the CI.- Returns:
- CI
- See Also:
-
addReferenceCI
Creates a new CI of the specified type ID and adds it to the list of modification. This has the same effect as these two calls:
TopologyUpdateFactory.createCI(com.hp.ucmdb.api.types.UcmdbId, String)
TopologyData.addCI(com.hp.ucmdb.api.types.CI)
.- Parameters:
id
- the id of the CI.type
- The type of the CI.- Returns:
- CI
- See Also:
-
addReferenceRelation
Adds the specified relation to the list of modifications.- Parameters:
relation
- The relation to add
-
addReferenceRelations
Adds the relations in the collection to the list of modifications.- Parameters:
relations
- The relations to add
-
addReferenceRelation
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)
TopologyData.addRelation(com.hp.ucmdb.api.types.Relation)
- Parameters:
type
- The type of the relationend1
- The end1 CIend2
- The end2 CI- Returns:
- relation
- See Also:
-
addReferenceRelation
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)
TopologyData.addRelation(com.hp.ucmdb.api.types.Relation)
- Parameters:
type
- The type of the relationend1
- The end1 CI idend2
- The end2 CI id- Returns:
- the created relation
- See Also:
-
addReferenceRelation
-
addReferenceRelation
-
hasReferenceCIs
boolean hasReferenceCIs()Checks if there are any CIs in the list of modifications.- Returns:
- true if has at least one reference CI
-
getReferenceCIs
AnIterable
collection of the reference CIs.- Returns:
- iterable on all reference CIs
-
getReferenceCI
Returns the CI in this collection having the specified id.- Parameters:
id
- The ID of the requested reference CI- Returns:
- CI
-
hasReferenceRelations
boolean hasReferenceRelations()Checks if there are any Relations in the list of modifications.- Returns:
- true if has at least one reference relation
-
getReferenceRelations
AnIterable
collection of the Relations to be modified.- Returns:
- iterable on all reference relations
-
getAdditionalModifierInfo
String getAdditionalModifierInfo() -
withListPropertiesUpdate
Set list properties to update- Parameters:
listPropertiesUpdate
-- Returns:
- the updated TopologyModificationData
- Since:
- UCMDB 10.1
-
getListPropertiesUpdate
ListPropertiesUpdate getListPropertiesUpdate()Returns list properties to update or null- Returns:
- list properties to update or null
- Since:
- UCMDB 10.1
-
isFromDelegateUser
boolean isFromDelegateUser() -
setFromDelegateUser
void setFromDelegateUser(boolean fromDelegateUser) -
isForceRemove
boolean isForceRemove() -
setForceRemove
void setForceRemove(boolean forceRemove) -
isIgnoreWhenCantIdentify
boolean isIgnoreWhenCantIdentify() -
setIgnoreWhenCantIdentify
void setIgnoreWhenCantIdentify(boolean ignoreWhenCantIdentify)
-