package ca.corefacility.bioinformatics.irida.ria.web.models.datatables;

import ca.corefacility.bioinformatics.irida.ria.web.components.datatables.models.DataTablesResponseModel;

import java.util.Date;

public class DTAnalysis implements DataTablesResponseModel {
	private Long id;
	private String name;
	private String submitter;
	private float percentComplete;
	private Date createdDate;
	private String workflow;
	private String state;
	private Long duration;
	boolean updatePermission;

	public DTAnalysis(Long id, String name, String submitter, float percentComplete, Date createdDate, String workflow,
			String state, Long duration, boolean updatePermission) {
		this.id = id;
		this.name = name;
		this.submitter = submitter;
		this.percentComplete = percentComplete;
		this.createdDate = createdDate;
		this.workflow = workflow;
		this.state = state;
		this.duration = duration;
		this.updatePermission = updatePermission;
	}

	@Override
	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getSubmitter() {
		return submitter;
	}

	public float getPercentComplete() {
		return percentComplete;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public String getWorkflow() {
		return workflow;
	}

	public String getState() {
		return state;
	}

	public Long getDuration() {
		return duration;
	}

	public boolean isUpdatePermission() {
		return updatePermission;
	}
}

@@ -66,16 +66,40 @@
 ables;%0A%0A
+import java.util.Date;%0A%0A
 import c
@@ -197,39 +197,78 @@
 Model;%0A%0A
-import java.util.Date;%0A
+/**%0A * User interface model for DataTables for an Analysis%0A */
 %0Apublic 

Add class comment.