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

com.taskadapter.redmineapi.bean.JournalFactory Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy