The History Cropper Module is included in WCM cum fix CF12 and later for version 6014 & 6015, and CF6 and later for version 6101 & 6102.
To enable the History Cropper Module :
1. Add the following lines to the WCMConfigService.properties file located in the portal_server_root/wcm/shared/app/config/wcmservices directory:
connect.businesslogic.module.historycropper.class=com.aptrix.history.HistoryCropperModule
connect.businesslogic.module.historycropper.remoteaccess=true
connect.businesslogic.module.historycropper.autoload=false
2. Add ",historycropper" (without quotes) at the end of the "connect.businesslogic.module=" property in the same file.
3. Restart the server for the configuation changes to take effect.
How to use History Cropper Module:
1. Log in to the portal as an administrator.
2. Open the following URL in the browser and specify details of what history details to clear:
http://[HOST]:[PORT]/wps/wcm/myconnect?MOD=ClearHistory&day=date&month=month&year=year&keep=number_of_entries&restrictOn=item_type&library=library_name&fix=true
The history details will be cleared prior to the date specified in the day, month and year parameters. If no date is specified, then the date will default to one year before the current date.
Specify the minimum number of history entries to keep. For example, if an item has not been updated for over a year, and you specify to clear all history entries more than a year old, but choose to keep the last five entries, all the history will be cleared except for the last five entries even though they are over a year old. If a number is not specified, then the minimum number of history entries to keep will default to 10.
Select the item types to run the clear history tool against. If no item types are specified, all item types will be processed. Use the following parameters for each item-type:
content
style for presentation templates
template for authoring templates
taxonomy
category
site
SiteArea
Workflow
WorkflowStage
WorkflowAction
Cmpnt for components
Enter a library name. If the "library" parameter is omitted, the default library that has been configured in the WCMConfigService.properties file will be used.
If omitted or set to false, a report listing which history items will be cleared is displayed. If set to true, history items will be cleared as specified.