Initial Import Scripts
The Initial Import Scripts were created in order to seed the Audit Addon with event data based on the current state of the CMS. These scripts should be executed in existing projects that want to import their historical data. Once the Audit Addon is added to a project, all future events will be recorded.
The scripts rely on the information currently available in the CMS. They do not rely on the hippo:log at all, as that history can be unreliable. As a result, historical information is not handled. Rather, events are persisted as if the current state has been the only state of the CMS.
List of Scripts
- Populate Initial Channel Events
- Populate Initial Content Events
- Populate Initial Project Events
- Populate Initial Security Events
Running Updating Scripts
The scripts are preemptively bootstrapped to the Updater editor. Each script should have a pre-populated XPath query for their execution.
Below are the XPath queries that should be used with each script. The Security Events script should be executed two different times with different XPath queries. One for users, the other for groups.
Channel Events XPath = //*/hst:configurations//element(*, hst:channel)
Content Events XPath = //content/documents//element(*, hippo:handle)
Project Events XPath = //hippowpm:hippowpm/hippowpm:projects//element(*, hippowpm:project)
User Security Events XPath = //hippo:configuration/hippo:groups//element(*, hipposys:group)
Group Security Events XPath = //hippo:configuration/hippo:users//element(*, hipposys:user)