public int purgeWorkItems(String workItemName, Date startDate,
Date endDate, boolean completedOnly)
throws WorkItemException
{
String vargs[] = {
((workItemName == null) ? "" : workItemName ),
((startDate == null) ? "" : startDate.toLocaleString()),
((endDate == null) ? "" : endDate.toLocaleString() ),
String.valueOf(completedOnly) };
System.out.println (
getMessage("workitem.purge",vargs) );
// purge the work items as requested
return workItemFacade_.purgeWorkItemList(
this.getSessionProfile(),
workItemName,
null,
completedOnly,
startDate,
endDate,
false);
}