All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.devocative.demeter.vo.DTaskVO Maven / Gradle / Ivy

The newest version!
package org.devocative.demeter.vo;

import org.devocative.demeter.entity.DTaskState;

import java.io.Serializable;
import java.util.Date;

public class DTaskVO implements Serializable {
	private static final long serialVersionUID = 1059668536444803086L;

	private String id;
	private String type;
	private Date startDate;
	private DTaskState state;
	private String detail;
	private String currentUser;
	private String duration;

	// ------------------------------

	public DTaskVO() {
	}

	public DTaskVO(String id, String type, Date startDate, DTaskState state, String detail, String currentUser) {
		this.id = id;
		this.type = type;
		this.startDate = startDate;
		this.state = state;
		this.detail = detail;
		this.currentUser = currentUser;
	}

	// ------------------------------

	public String getId() {
		return id;
	}

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

	public String getType() {
		return type;
	}

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

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public DTaskState getState() {
		return state;
	}

	public void setState(DTaskState state) {
		this.state = state;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getCurrentUser() {
		return currentUser;
	}

	public void setCurrentUser(String currentUser) {
		this.currentUser = currentUser;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	// ---------------

	public String getKey() {
		String key = getType();
		if (getId() != null) {
			key += "_" + getId();
		}
		return key;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy