public interface ScopedClassModelService
ClassModelService classModelService = ucmdbService.getClassModelService(); ScopedClassModelService scopedClassModelService = classModelService.getScopedService(Scope.BDM); for (ClassDefinition def : scopedClassModelService.getAllClasses()) { System.out.println("Type " + def.getName() + " (" + def.getDisplayName() + ") is derived from type " + def.getParentClassName()); System.out.println("Has " + def.getChildClasses().size() + " derived types"); System.out.println("Defined and inherited attributes:"); for (Attribute attr : def.getAllAttributes().values()) { System.out.println("Attribute " + attr.getName() + " of type " + attr.getType()); } }
Modifier and Type | Method and Description |
---|---|
Collection<ClassDefinition> |
getAllClasses()
Returns an
Iterable collection of classes defined in the UCMDB class model. |
CalculatedLink |
getCalculatedLink(String type) |
Collection<CalculatedLink> |
getCalculatedLinks()
Returns a collection of all calculated link triplets defined in UCMDB class model
|
Collection<CalculatedLinkTriplet> |
getCalculatedLinkTripletsForType(String typeName) |
ClassDefinition |
getClassDefinition(String typeName)
Returns the object representing the specified type.
|
Collection<ValidRelation> |
getValidRelations()
Returns an
Iterable collection of valid relations defined in the UCMDB class model. |
Iterable<ClassDefinition> |
getValidRelationTypes(String end1TypeName,
String end2TypeName)
Returns an
Iterable collection of all types of relations that
can be created between CIs of the specified types. |
boolean |
hasClassDefinition(String typeName)
Returns true if the type with the specified name is defined in the UCMDB.
|
boolean |
isRelationValid(String relationTypeName,
String end1TypeName,
String end2TypeName)
Checks whether a relation of the specified type is permitted between the specified end types.
|
ClassDefinition getClassDefinition(String typeName) throws ClassDoesNotExistException
typeName
- ClassDoesNotExistException
- if there is no type with the specified name in the UCMDBboolean hasClassDefinition(String typeName)
typeName
- true
if the type with the specified name is defined in the UCMDBCollection<ClassDefinition> getAllClasses()
Iterable
collection of classes defined in the UCMDB class model.Iterable
collection of classes defined in the UCMDB class model.boolean isRelationValid(String relationTypeName, String end1TypeName, String end2TypeName) throws ClassDoesNotExistException
relationTypeName
- a relation type nameend1TypeName
- a CI type nameend2TypeName
- a CI type nametrue
if the relation is allowed.ClassDoesNotExistException
Iterable<ClassDefinition> getValidRelationTypes(String end1TypeName, String end2TypeName) throws ClassDoesNotExistException
Iterable
collection of all types of relations that
can be created between CIs of the specified types.end1TypeName
- a CI type nameend2TypeName
- a CI type nameClassDoesNotExistException
Collection<ValidRelation> getValidRelations()
Iterable
collection of valid relations defined in the UCMDB class model.Iterable
collection of valid relations defined in the UCMDB class model.Collection<CalculatedLink> getCalculatedLinks()
CalculatedLink getCalculatedLink(String type)
Collection<CalculatedLinkTriplet> getCalculatedLinkTripletsForType(String typeName)
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.