use of org.apache.cloudstack.api.response.EventResponse in project cloudstack by apache.
the class EventJoinDaoImpl method newEventResponse.
@Override
public EventResponse newEventResponse(EventJoinVO event) {
EventResponse responseEvent = new EventResponse();
responseEvent.setCreated(event.getCreateDate());
responseEvent.setDescription(event.getDescription());
responseEvent.setEventType(event.getType());
responseEvent.setId(event.getUuid());
responseEvent.setLevel(event.getLevel());
responseEvent.setParentId(event.getStartUuid());
responseEvent.setState(event.getState());
responseEvent.setUsername(event.getUserName());
ApiResponseHelper.populateOwner(responseEvent, event);
responseEvent.setObjectName("event");
return responseEvent;
}
Aggregations