Reading from the Carapace Audit

script caudit.cpl
interface Audit
COM progId Carapace.Audit

Audit information is read from the Carapace database using the Audit interface.

Audit Creation

An Audit is created by using the create function eg.

    (create Audit db)
where db is an Db object.

Audit Methods

The Audit interface has the following methods:

auditTypes return the complete list of available audit types
filterHeadings return the attributes which can be used to filter the supplied audit type
displayHeadings return the headings for audited information held by the suppied audit type
orderHeadings put the audit headings in the 'standard' order
timeString put the integer epoch time into a string suitable for entry into the database
select select information from the supplied extension table
filter filter the information contained within the audit according to the supplied details
activities list the set of activities available for the supplied audit type
enumerate enumerate the values allowed for the supplied extension attribute
objectAudit get the custom audit object for the supplied object type
storedObjectType get the custom audit object for the supplied object type
fetchObject fetch the identified audited object
filterPage return the name of the HTML template used to provide object-specific filtering for the supplied object type
detailsPage return the name of the HTML template used to display an audited object
relatedToThis list the identifiers and relations of all audited objects related to the supplied one
thisRelatedTo list the identifiers and relations of all audited objects which relate to the supplied one


auditTypes

Return the list of audit types within the Carapac database.

Arguments: none

Return type: List


filterHeadings

Return the list of the headings used for filtering the given audit type.

Arguments:

auditTypeString

Return type: List


displayHeadings

Return the list of the headings which can be displayed for the given audit type.

Arguments:

auditTypeString

Return type: List


orderHeadings

Put the audit headings in the 'standard' order.

Arguments:

headingsList

Return type: List


timeString

Convert the integer epoch time into a string suitable for entry into the database.

Arguments:

epochInteger

Return type: String


select

Select the supplied headings from from the given extension table where the records match the given filter. The filter is an attribute/value list of heading/value pairs.

Arguments:

extensionTableString
filterList
headingsList

Return type: List


filter

Apply the supplied filter to the audit and return the identified records. The filter is an attribute/value list of heading/value pairs.

Arguments:

auditTypeString
filterList
headingsList

Return type: List


activities

Return the list of activities for the supplied audit type.

Arguments:

auditTypeString

Return type: List


enumerate

Return the list of values for the supplied extension attribute.

Arguments:

extensionTblString
attributeString

Return type: List


objectAudit

Get the custom audit object for the supplied object type. Click here for information about object extensions to the Carapace audit.

Arguments:

objectTypeString

Return type: Object


storedObjectType

Get the type of object stored for a given audit type -- a value of "" (the empty String) is returned if no object type is stored.

Click here for information about object extensions to the Carapace audit.

Arguments:

auditTypeString

Return type: String


fetchObject

Fetch the identified audited object.

Arguments:

objectTypeString
objectIdString

Return type: Object


filterPage

Return the name of the HTML template used to provide object-specific filtering for the supplied object type. The empty string "" is returned if no such page is recorded.

Arguments:

objectTypeString

Return type: String


detailsPage

Return the name of the HTML template used to display an audited object. The empty string "" is returned if no such page is recorded.

Arguments:

objectTypeString

Return type: String


relatedToThis

List the identifiers and relations of all audited objects related to the supplied one. The returned list contains triplets of strings showing the following:

  1. relationship name
  2. type of the related object
  3. identifier for the related object

Arguments:

objectIdString

Return type: List


thisRelatedTo

List the identifiers and relations of all audited objects which relate to the supplied one. The returned list contains triplets of strings showing the following:

  1. relationship name
  2. type of the related object
  3. identifier for the related object

Arguments:

objectIdString

Return type: List


Contents Index Current topic: audit Related topics: databases