|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.cmdb.api.CMDBClass
public class CMDBClass
The CMDBClass
class allows you to define a class in the
BMC Atrium CMDB. CMDBClassNameKey, which is passed as a parameter for
constructing this class, uniquely identifies the class. You can also
specify the attributes of the class using an attribute map object.
Field Summary | |
---|---|
static int |
CMDB_CLASS_ABSTRACT_TYPE_DATA_REPLC
Specifies that the class created is an abstract class with data replication. |
static int |
CMDB_CLASS_ABSTRACT_TYPE_NONE
The CMDB_CLASS_ABSTRACT_ |
static int |
CMDB_CLASS_ABSTRACT_TYPE_REGULAR
Specifies that the class created is a regular abstract type. |
static int |
CMDB_CLASS_CHARAC_ABSTRACT
Specifies that the class created is an abstract class, which means that no instances can be created for the class and that all attributes are propagated to the subclasses. |
static int |
CMDB_CLASS_CHARAC_AUTHOR
Specifies the author of the class. |
static int |
CMDB_CLASS_CHARAC_CATEGORIZATION_SUBCLASS
Specifies that the class created is a categorization class. |
static int |
CMDB_CLASS_CHARAC_CLASS_HIDDEN_PERMS
Specifies hidden permissions for the class. |
static int |
CMDB_CLASS_CHARAC_CLASS_VISIBLE_PERMS
Specifies the visible permissions for the class. |
static int |
CMDB_CLASS_CHARAC_DESCRIPTION
Specifies the description for the class. |
static int |
CMDB_CLASS_CHARAC_FINAL
Specifies that the class created is a final class, which means that you cannot create subclasses from this class. |
static int |
CMDB_CLASS_CHARAC_FORM_NAME
Specifies the form name for the class. |
static int |
CMDB_CLASS_CHARAC_NONE
The CMDB_CLASS_CHARAC_ |
static int |
CMDB_CLASS_CHARAC_SINGLETON
Specifies that the class created is a singelton class. |
static int |
CMDB_DELETE_CLASS_OPTION_ALL_DEPENDENCIES
Specifies that the class, its instances, and its relationships are deleted in this option. |
static int |
CMDB_DELETE_CLASS_OPTION_NONE
The CMDB_DELETE_CLASS_ |
static int |
CMDB_DELETE_CLASS_OPTION_WITH_DATA
Specifies that the class and its instances are deleted. |
Constructor Summary | |
---|---|
CMDBClass(CMDBClassNameKey classKey,
CMDBClassNameKey aSuperClassKey)
This constructor creates a class with the class name and namespace specified in the ClassKey parameter. |
|
CMDBClass(CMDBClassNameKey aNameKey,
CMDBClassNameKey aSuperClassKey,
java.util.Map anAttributeMap,
CMDBIndex[] indexArray)
This constructor creates the class with the specified name and attributes. |
|
CMDBClass(CMDBClassNameKey classKey,
java.lang.String classId,
CMDBClassNameKey aSuperClassKey)
This constructor creates a class using the specified class ID. |
Method Summary | |
---|---|
void |
addCustomCharacteristic(int charactId,
Value charactVal)
This method adds the specified custom characteristic to the class. |
void |
create(ARServerUser context)
Creates the class in BMC Atrium CMDB. |
static void |
delete(ARServerUser context,
CMDBClassNameKey classKey,
int deleteOption)
Deletes the class from BMC Atrium CMDB. |
static CMDBClassNameKey[] |
find(ARServerUser context,
java.lang.String aNamespace,
CMDBClassNameKey relatedClassKey,
CMDBClassNameKey superClass,
PropInfo[] characQuery,
boolean getHiddenClasses)
Find names of all classes that satisfy the specified query criteria. |
static CMDBClass |
findByKey(ARServerUser context,
CMDBClassNameKey searchKey,
boolean getHiddenAttribute,
boolean getDerivedAttrs)
Finds the class that has attributes containing the specified hidden and derived properties. |
static CMDBClass |
findByKey(ARServerUser context,
CMDBClassNameKey searchKey,
boolean getHiddenAttribute,
boolean getDerivedAttrs,
PropInfo[] attrCharacQuery)
Finds the class that has attributes containing the specified hidden and derived properties and attribute characteristics. |
int |
getAbstract()
Gets the abstract characteristic of the class. |
CMDBAttribute |
getAttributeByName(java.lang.String attributeName)
Gets the specified attribute for the class. |
java.util.Map |
getAttributes()
Gets all the attributes of the class. |
CMDBAuditInfo |
getAuditInfo()
Gets the audit option that is set for the class. |
java.lang.String |
getAuthor()
Gets the author of the class. |
boolean |
getCategorizationSubclass()
Gets a Boolean value that indicates whether the class is a Categorization type. |
java.lang.String |
getClassFormName()
Gets the form name of the class. |
java.lang.String |
getClassHiddenPerms()
Gets the hidden permissions of the class. |
java.lang.String |
getClassVisiblePerms()
Gets the visible permissions of the class. |
Value |
getCustomCharacteristic(int charactId)
Gets the specified custom characteristic of the class. |
java.util.Map |
getCustomCharacteristicMap()
Gets all of the custom characteristics as a map. |
java.lang.String |
getDescription()
Gets the description of the class. |
boolean |
getFinal()
Gets a Boolean value that indicates whether the class is a Final type. |
java.lang.String |
getId()
Gets the ID of the class. |
CMDBIndex[] |
getIndexes()
Gets the list of indexes for the class. |
java.lang.String[] |
getKeyAttributeNames()
Gets a list of the key attributes that identify each class. |
java.util.Map |
getKeyAttributes()
Gets all the key attributes that identify each class. |
CMDBClassNameKey |
getNameKey()
Gets the name key of the class. |
boolean |
getSingleton()
Returns a Boolean value that indicates whether the class is a Singleton type. |
CMDBClassNameKey |
getSuperclassKey()
Gets the key of the superclass to which the class is associated. |
void |
removeAllCustomCharacteristic()
Removes all custom characteristics from the class. |
void |
removeCustomCharacteristic(int charactId)
Removes the specified custom characteristic from the class. |
void |
setAbstract(int abstractType)
Sets the value that defines the Abstract type of the class. |
void |
setAttributes(java.util.Map newAttributeMap)
Sets all the attributes of the class. |
void |
setAuditInfo(CMDBAuditInfo aAuditInfo)
Sets the audit option for the class. |
void |
setAuthor(java.lang.String authorName)
Sets the author of the class. |
void |
setCategorizationSubclass(boolean isCateSubclass)
Sets a Boolean value that determines that the class is of type Categorization. |
void |
setClassHiddenPerms(java.lang.String classHiddenPerm)
Sets the hidden permissions of the class. |
void |
setClassVisiblePerms(java.lang.String classVisiblePerm)
Sets visible permissions of the class. |
void |
setDescription(java.lang.String description)
Sets the description of the class. |
void |
setFinal(boolean isFinal)
Sets a Boolean value for the Final characteristic of the class. |
void |
setIndexes(CMDBIndex[] indexArray)
Sets the list of indexes of the class. |
void |
setNameKey(CMDBClassNameKey aNameKey)
Sets the name key of the class. |
void |
setNewNameKey(CMDBClassNameKey aNewNameKey)
Sets the name key of the class. |
void |
setSingleton(boolean isSingleton)
Sets a Boolean value for the Singleton characteristic of the class. |
void |
update(ARServerUser context)
Sets the changes made to the class in BMC Atrium CMDB. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CMDB_DELETE_CLASS_OPTION_NONE
public static final int CMDB_DELETE_CLASS_OPTION_WITH_DATA
public static final int CMDB_DELETE_CLASS_OPTION_ALL_DEPENDENCIES
public static final int CMDB_CLASS_ABSTRACT_TYPE_NONE
public static final int CMDB_CLASS_ABSTRACT_TYPE_REGULAR
public static final int CMDB_CLASS_ABSTRACT_TYPE_DATA_REPLC
public static final int CMDB_CLASS_CHARAC_NONE
public static final int CMDB_CLASS_CHARAC_SINGLETON
public static final int CMDB_CLASS_CHARAC_ABSTRACT
public static final int CMDB_CLASS_CHARAC_FINAL
public static final int CMDB_CLASS_CHARAC_AUTHOR
public static final int CMDB_CLASS_CHARAC_DESCRIPTION
public static final int CMDB_CLASS_CHARAC_CLASS_HIDDEN_PERMS
public static final int CMDB_CLASS_CHARAC_CLASS_VISIBLE_PERMS
public static final int CMDB_CLASS_CHARAC_CATEGORIZATION_SUBCLASS
public static final int CMDB_CLASS_CHARAC_FORM_NAME
Constructor Detail |
---|
public CMDBClass(CMDBClassNameKey classKey, CMDBClassNameKey aSuperClassKey)
classKey
- holds the class name and namespace.aSuperClassKey
- holds the class name and namespace of the super class to which
the class is associatedpublic CMDBClass(CMDBClassNameKey classKey, java.lang.String classId, CMDBClassNameKey aSuperClassKey)
classKey
- holds the class name and namespace.aSuperClassKey
- holds the class name and namespace of the super class to which the class is associated.classId
- holds the name of the class.public CMDBClass(CMDBClassNameKey aNameKey, CMDBClassNameKey aSuperClassKey, java.util.Map anAttributeMap, CMDBIndex[] indexArray)
anameKey
- holds the class name and namespace.aSuperClassKey
- holds the class name and namespace of the super class to which the class is associated.anAttributeMap
- holds the attributes of the class. The attributes
are organized as a map that uses the attribute name as
its map key and CMDBAttribute as its mapped value.indexArray
- holds an array of indexes for the class.Method Detail |
---|
public void addCustomCharacteristic(int charactId, Value charactVal)
charactId
- holds the ID of the characteristic.charactVal
- holds the value of the characteristic.public java.lang.String getId()
public CMDBClassNameKey getNameKey()
public CMDBAuditInfo getAuditInfo()
public CMDBAttribute getAttributeByName(java.lang.String attributeName)
attributeName
- the name of the attribute to be retrieved
public java.util.Map getAttributes()
public java.util.Map getKeyAttributes()
public java.lang.String[] getKeyAttributeNames()
public CMDBIndex[] getIndexes()
public CMDBClassNameKey getSuperclassKey()
public boolean getSingleton()
public int getAbstract()
public boolean getFinal()
public java.lang.String getAuthor()
public java.lang.String getDescription()
public java.lang.String getClassHiddenPerms()
public java.lang.String getClassVisiblePerms()
public boolean getCategorizationSubclass()
public java.lang.String getClassFormName()
public Value getCustomCharacteristic(int charactId)
charactId
- holds the ID of the characteristic
public java.util.Map getCustomCharacteristicMap()
public void removeCustomCharacteristic(int charactId)
charactId
- holds the ID of the characteristic that is to be removed.public void removeAllCustomCharacteristic()
public void setNameKey(CMDBClassNameKey aNameKey)
aNameKey
- holds the name key of the classpublic void setAuditInfo(CMDBAuditInfo aAuditInfo)
aAuditInfo
- holds the audit option for the class, such as Audit and Copy, or Logpublic void setNewNameKey(CMDBClassNameKey aNewNameKey)
update(com.bmc.arsys.api.ARServerUser)
method to modify the class name in BMC Atrium CMDB.
aNewNameKey
- holds the new name key of the classpublic void setIndexes(CMDBIndex[] indexArray)
indexArray
- holds an array of indexes for the classpublic void setAttributes(java.util.Map newAttributeMap)
newAttributeMap
- the new attribute map to be setpublic void setSingleton(boolean isSingleton)
isSingleton
- holds a Boolean value for the Singleton characteristic.public void setAbstract(int abstractType)
abstractType
- holds the Abstract type of the classpublic void setFinal(boolean isFinal)
isFinal
- holds a Boolean value for the Final characteristicpublic void setAuthor(java.lang.String authorName)
authorName
- holds the name of the authorpublic void setDescription(java.lang.String description)
description
- holds the description of the classpublic void setClassHiddenPerms(java.lang.String classHiddenPerm)
classHiddenPerm
- holds the hidden permissions of the classpublic void setClassVisiblePerms(java.lang.String classVisiblePerm)
classVisivlePerm
- holds the visible permissions of the classpublic void setCategorizationSubclass(boolean isCateSubclass)
isCateSubClass
- holds a Boolean value that determines whether the class
is a Categorization typepublic void create(ARServerUser context) throws ARException
context
- holds the AR System user and host information.
java.lang.NullPointerException
- if If a null parameter is passed
ARException
- returns exception-handling responsibility to the method making the callpublic void update(ARServerUser context) throws ARException
context
- holds the AR System user and host information.
java.lang.NullPointerException
- if If a null parameter is passed
ARException
- returns exception-handling responsibility to the method making the callpublic static void delete(ARServerUser context, CMDBClassNameKey classKey, int deleteOption) throws ARException
context
- holds the AR System user and host information.classKey
- the holds name key of the class that is to be deleted.deleteOption
- holds the delete option for the class.
java.lang.NullPointerException
- if If a null parameter is passed
ARException
- returns exception-handling responsibility to the method making the callpublic static CMDBClass findByKey(ARServerUser context, CMDBClassNameKey searchKey, boolean getHiddenAttribute, boolean getDerivedAttrs) throws ARException
context
- holds the AR System user and host information.searchKey
- holds the class name key of the class.getHiddenAttribute
- specifies if a hidden attribute needs to be retrieved.getDerivedAttrs
- indicates if derived attributes will be retrieved.
ARException
- if a null parameter is passedpublic static CMDBClass findByKey(ARServerUser context, CMDBClassNameKey searchKey, boolean getHiddenAttribute, boolean getDerivedAttrs, PropInfo[] attrCharacQuery) throws ARException
context
- holds the AR System user and host information.searchKey
- holds the class name key of the class.getHiddenAttribute
- specifies if a hidden attribute needs to be retrieved.getDerivedAttrs
- indicates if derived attributes will be retrieved.attrCharacQuery
- specifies criteria for the matching attributes.
java.lang.NullPointerException
- if If a null parameter is passed
ARException
- returns exception-handling responsibility to the method making the callpublic static CMDBClassNameKey[] find(ARServerUser context, java.lang.String aNamespace, CMDBClassNameKey relatedClassKey, CMDBClassNameKey superClass, PropInfo[] characQuery, boolean getHiddenClasses) throws ARException
context
- holds the AR System user and host information.aNamespace
- holds the namespace to which the classes belong.relatedClassKey
- hold the name keys of classes that relate to this class.superClass
- hold the class key information for the superclass.characQuery
- specifies the criteria for the matching characteristics.getHiddenClasses
- flag specifies whether the hidden classes is returned.
java.lang.NullPointerException
- if If a null parameter is passed
ARException
- returns exception-handling responsibility to the method making the call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |