* @throws Exception if an exception occurs
*/
private void executeSynchronization(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception {
StringSet uuids = actionCriteria.getSelectedRecordIdSet();
String[] aUuids = uuids.toArray(new String[uuids.size()]);
HrHarvestRequest hrvFullRequest =
new HrHarvestRequest(context,aUuids,HjRecord.JobType.Now,new HrCriteria(),new HrResult());
hrvFullRequest.execute();
if (hrvFullRequest.getActionResult().getNumberOfRecordsModified() > 0) {
extractMessageBroker().addSuccessMessage(
"catalog.harvest.manage.message.synchronized",
new Object[]{Integer.toString(hrvFullRequest.getActionResult().
getNumberOfRecordsModified())
});
} else {
extractMessageBroker().addSuccessMessage(
"catalog.harvest.manage.message.synchronized.none");