com.taskadapter.redmineapi.bean.JournalFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
This project was originally a part of Task Adapter application (http://www.taskadapter.com)
and then was open-sourced.
The newest version!
package com.taskadapter.redmineapi.bean;
import java.util.Date;
import java.util.List;
public class JournalFactory {
public static Journal create(Integer id, String notes, User user, Date createdOn) {
Journal journal = new Journal().setId(id);
journal.setNotes(notes);
journal.setUser(user);
journal.setCreatedOn(createdOn);
return journal;
}
public static Journal create(Integer id, String notes, User user, Date createdOn, List details) {
Journal journal = new Journal().setId(id);
journal.setNotes(notes);
journal.setUser(user);
journal.setCreatedOn(createdOn);
journal.addDetails(details);
return journal;
}
}