* Creates a new Event with the values in the eventVO sent in.
*/
public static EventVO create(EventVO eventVO, Integer repositoryId, InfoGluePrincipal infoGluePrincipal, Database db) throws SystemException
{
Event event = new EventImpl();
event.setValueObject(eventVO);
event.setRepositoryId(repositoryId);
event.setCreator(infoGluePrincipal.getName());
try
{
db.create(event);
}
catch(Exception e)
{
logger.error("An error occurred so we should not complete the transaction:" + e, e);
throw new SystemException(e.getMessage());
}
return event.getValueObject();
}