Module modeling :: Class CmdbClassModel
[hide private]

Class CmdbClassModel

source code

CMDB class model wrapper

Used to request information stored in CMDB class model. Model information obtained in two ways:

  1. Using class model file, stored on probe (till UCMDB 9)
  2. Class model with changes (for UCMDB 9) obtained from service in Framework
Instance Methods [hide private]
 
__init__(self, framework=None)
If framework instance is not specified - used one registered for current thread.
source code
 
__getFramework(self) source code
 
isKeyAttribute(self, citName, attributeName)
Check whether specified attribute is a key attribut for specified CIT
source code
 
getConfigFileManager(self) source code
com.mercury.topaz.cmdb.shared.classmodel.cmdbclass.attribute.CmdbAttribute
getAttributeDefinition(self, citName, attributeName)
Get attribute definition if such exists in CMDB model
source code
 
getTypeDefinition(self, name)
Get type definition by name.
source code
 
isExistingAttribute(self, citName, attributeName)
Check whether attribute exists in the specified CIT.
source code
 
setAttributeIfExists(self, osh, attributeName, attributeValue, attributeTypeStr=AppilogTypes.STRING_DEF)
osh, str, object, attribute type -> bool
source code
 
version(self)
-> double
source code
Method Details [hide private]

isKeyAttribute(self, citName, attributeName)

source code 

Check whether specified attribute is a key attribut for specified CIT

Returns:
Truth or False values

getAttributeDefinition(self, citName, attributeName)

source code 

Get attribute definition if such exists in CMDB model

Returns: com.mercury.topaz.cmdb.shared.classmodel.cmdbclass.attribute.CmdbAttribute
Definition or None

getTypeDefinition(self, name)

source code 

Get type definition by name. Type definition is domain specific type of attribute used in particular CIT

isExistingAttribute(self, citName, attributeName)

source code 

Check whether attribute exists in the specified CIT.

First method checks in CMDB model using interface to probe class model file. Otherwise using Framework service (available since 8.04)

Returns:
Truth or False value