/**
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.gravitee.repository.management.model;

import java.util.Date;

/**
 * @author Titouan COMPIEGNE
 */
public class Event {

	/**
	 * The event ID
	 */
	private String id;

	/**
	 * The event Type
	 */
	private EventType type;

	/**
	 * The event payload
	 */
	private String payload;

	/**
	 * The event parent
	 */
	private String parentId;

	/**
	 * The event creation date
	 */
	private Date createdAt;

	/**
	 * The event last updated date
	 */
	private Date updatedAt;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public EventType getType() {
		return type;
	}

	public void setType(EventType type) {
		this.type = type;
	}

	public String getPayload() {
		return payload;
	}

	public void setPayload(String payload) {
		this.payload = payload;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}
}

@@ -974,16 +974,73 @@
 arentId;
+%0A%09%0A%09/**%0A%09 * The event origin%0A%09 */%0A%09private String origin;
 %0A%0A%09/**%0A%09
@@ -1617,32 +1617,150 @@
 = parentId;%0A%09%7D%0A%0A
+%09public String getOrigin() %7B%0A%09%09return origin;%0A%09%7D%0A%0A%09public void setOrigin(String origin) %7B%0A%09%09this.origin = origin;%0A%09%7D%0A%0A
 %09public Date get

add origin to Event Model