Auditlevel (attribute of entity)

From JRapid

Jump to: navigation, search

auditlevel is an attribute of entity.


Contents

Description

The auditlevel attribute is used to specify that all changes made to the records of an entity should be logged in the database. This is useful when system administrators want to keep a complete track of all changes made to the information.

To audit an entity you need to import the Audit template. This template defines an entity through which every audit record will be stored.

You are also required to import the User management template or create your own user management entities. This is because the audit process logs every data modification with the username that performed it.

Specifying the auditlevel attribute for an entity adds a link on the entity's form that opens a list that shows all the modifications done to that record.

The entity that stores all change logs imported by the audit template can also be accessed like any other through a listing with filters that help you track specific modifications.

Usage

<entity
   auditlevel="ALL_PROPERTIES"
   label=LABEL
   name=NAME
   ...
/>


Example

To enable auditing for an entity use the auditlevel attribute.

    <entity auditlevel="ALL_PROPERTIES" label="Company" menu="Companies" name="Company">
        <property display="primary" label="Name" name="name"/>
        <property label="Address" name="address" type="text"/>
    </entity>

    <entity auditlevel="ALL_PROPERTIES" label="Contact" menu="Contacts" name="Contact">
        <property display="primary" label="First Name" name="firstName"/>
        <property display="primary" label="Last Name" name="lastName"/>
        <property label="Date Of Birth" name="dateOfBirth" type="date"/>
        <property display="secondary" entity="Company" label="Company" name="company"/>
    </entity>

See also

Personal tools