|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.cmdb.api.CMDBAuditInfo
public class CMDBAuditInfo
The CMDBAuditInfo
class allows you to define
the audit information for an instance.
When an instance is audited, the changes to the instance are
tracked by creating a copy of the modified instance, by
writing the changes to a log form, or by performing both.
QualifierInfo, which is passed as a parameter for this class,
contains the query information that is used to qualify the
instance for auditing.
Once you create the CMDBAuditInfo object, you can perform
queries against it.
Field Summary | |
---|---|
static int |
CMDB_CLASS_AUDITTYPE_COPY
Specifies that a copy of the instance being modified will be created. |
static int |
CMDB_CLASS_AUDITTYPE_LOG
Specifies that changes to the instance will be written to a log. |
static int |
CMDB_CLASS_AUDITTYPE_NONE
Specifies that no auditing will be performed for instances of the class. |
static java.lang.String |
CMDB_DEFAULT_AUDIT_LOG_FORM
When the audit type is log, this constant specifies the name of the BMC Atrium CMDB form to which audit log entries are written by default. |
static int |
CMDB_QUAL_TYPE_NONE
Specifies that the qualifier type is none. |
static int |
CMDB_QUAL_TYPE_STRING
Specifies that for the audit to take place, the instance must match the string value provided in the query. |
static int |
CMDB_QUAL_TYPE_STRUCT
Specifies that for the audit to take place, the instance must match the query provided in the qualifier information object. |
Constructor Summary | |
---|---|
CMDBAuditInfo()
Default constructor that creates an empty CMDBAuditInfo object. |
|
CMDBAuditInfo(int aType)
Sets the audit type with out any qualification |
|
CMDBAuditInfo(int aType,
QualifierInfo aQualObject)
Sets the audit type and qualifier information for the CMDBAuditInfo object. |
|
CMDBAuditInfo(int aType,
java.lang.String aQualString)
Initializes the audit type and qualifier string for the CMDBAuditInfo object. |
Method Summary | |
---|---|
java.lang.String |
getLogForm()
Gets the BMC Atrium CMDB form into which audit log entries are written. |
QualifierInfo |
getQualObject()
Returns the qualifier information for the CMDBAuditInfo object. |
java.lang.String |
getQualString()
Returns the qualifier string for the CMDBAuditInfo object. |
int |
getQualType()
Returns the qualifier type for the CMDBAuditInfo object. |
int |
getType()
Gets the audit type for the CMDBAuditInfo object (CMDB_CLASS_AUDITTYPE_<>) |
void |
setLogForm(java.lang.String aLogForm)
Sets the BMC Atrium CMDB form into which audit log entries are written. |
void |
setQualObject(QualifierInfo aQualObject)
Sets the qualifier information for the CMDBAuditInfo object. |
void |
setQualString(java.lang.String aQualString)
Sets the qualifier string for the CMDBAuditInfo object. |
void |
setQualType(int aQualType)
Sets the qualifier type for the CMDBAuditInfo object. |
void |
setType(int aType)
Sets the audit type for the CMDBAuditInfo object (CMDB_CLASS_AUDITTYPE_<>) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CMDB_CLASS_AUDITTYPE_NONE
public static final int CMDB_CLASS_AUDITTYPE_COPY
public static final int CMDB_CLASS_AUDITTYPE_LOG
public static final java.lang.String CMDB_DEFAULT_AUDIT_LOG_FORM
public static final int CMDB_QUAL_TYPE_NONE
public static final int CMDB_QUAL_TYPE_STRING
public static final int CMDB_QUAL_TYPE_STRUCT
Constructor Detail |
---|
public CMDBAuditInfo()
public CMDBAuditInfo(int aType)
aType
- the audit typepublic CMDBAuditInfo(int aType, QualifierInfo aQualObject)
aType
- the audit typeaQualObject
- a query that can include one or more attributes
and any combination of conditional, relational, and arithmetic operations.public CMDBAuditInfo(int aType, java.lang.String aQualString)
aType
- the audit typeaQualString
- the string value that the instance must match to be
qualified for auditing.Method Detail |
---|
public int getType()
public QualifierInfo getQualObject()
public java.lang.String getQualString()
public int getQualType()
public java.lang.String getLogForm()
public void setType(int aType)
aType
- audit type for the CMDBAuditInfo objectpublic void setQualObject(QualifierInfo aQualObject)
aQualObject
- qualifier information for the CMDBAuditInfo object.public void setQualString(java.lang.String aQualString)
aQualString
- qualifier string for the CMDBAuditInfo objectpublic void setQualType(int aQualType)
aQualType
- the qualifier type for the CMDBAuditInfo objectpublic void setLogForm(java.lang.String aLogForm)
aLogForm
- for the given CMDBAuditInfo object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |