|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScopedClassModelService
Interface for querying the UCMDB scoped class model.
Example of using this interface: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()); } }
Method Summary | |
---|---|
java.util.Collection<ClassDefinition> |
getAllClasses()
Returns an Iterable collection of classes defined in the UCMDB class model. |
ClassDefinition |
getClassDefinition(java.lang.String typeName)
Returns the object representing the specified type. |
java.util.Collection<ValidRelation> |
getValidRelations()
Returns an Iterable collection of valid relations defined in the UCMDB class model. |
java.lang.Iterable<ClassDefinition> |
getValidRelationTypes(java.lang.String end1TypeName,
java.lang.String end2TypeName)
Returns an Iterable collection of all types of relations that
can be created between CIs of the specified types. |
boolean |
hasClassDefinition(java.lang.String typeName)
Returns true if the type with the specified name is defined in the UCMDB. |
boolean |
isRelationValid(java.lang.String relationTypeName,
java.lang.String end1TypeName,
java.lang.String end2TypeName)
Checks whether a relation of the specified type is permitted between the specified end types. |
Method Detail |
---|
ClassDefinition getClassDefinition(java.lang.String typeName) throws ClassDoesNotExistException
typeName
-
ClassDoesNotExistException
- if there is no type with the specified name in the UCMDBboolean hasClassDefinition(java.lang.String typeName)
typeName
-
true
if the type with the specified name is defined in the UCMDBjava.util.Collection<ClassDefinition> getAllClasses()
Iterable
collection of classes defined in the UCMDB class model.
Iterable
collection of classes defined in the UCMDB class model.boolean isRelationValid(java.lang.String relationTypeName, java.lang.String end1TypeName, java.lang.String end2TypeName) throws ClassDoesNotExistException
relationTypeName
- a relation type nameend1TypeName
- a CI type nameend2TypeName
- a CI type name
true
if the relation is allowed.
ClassDoesNotExistException
java.lang.Iterable<ClassDefinition> getValidRelationTypes(java.lang.String end1TypeName, java.lang.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 name
ClassDoesNotExistException
java.util.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |