本文整理汇总了Java中com.taskadapter.redmineapi.bean.Journal类的典型用法代码示例。如果您正苦于以下问题:Java Journal类的具体用法?Java Journal怎么用?Java Journal使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Journal类属于com.taskadapter.redmineapi.bean包,在下文中一共展示了Journal类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addMissingInformationsToIssueFromCachedConfiguration
import com.taskadapter.redmineapi.bean.Journal; //导入依赖的package包/类
private void addMissingInformationsToIssueFromCachedConfiguration(Issue issue,
CachedRepositoryConfiguration configuration)
{
//Data transfer object members of issue are not populated with all the info,
//we should hit the server to retrieve missing fields but instead we hit our
//local cache.
issue.setProject(configuration.getProjectById(issue.getProject().getId()));
issue.setAssignee(configuration.getUserById(issue.getAssignee().getId()));
issue.setAuthor(configuration.getUserById(issue.getAuthor().getId()));
for(Journal j : issue.getJournals())
{
j.setUser(configuration.getUserById(j.getUser().getId()));
}
for(Attachment a : issue.getAttachments())
{
a.setAuthor(configuration.getUserById(a.getAuthor().getId()));
}
}
示例2: parseJournal
import com.taskadapter.redmineapi.bean.Journal; //导入依赖的package包/类
public static Journal parseJournal(JSONObject content) throws JSONException {
final Journal result = JournalFactory.create(JsonInput.getInt(content, "id"));
result.setCreatedOn(getDateOrNull(content, "created_on"));
result.setNotes(JsonInput.getStringOrNull(content, "notes"));
result.setUser(JsonInput.getObjectOrNull(content, "user", USER_PARSER));
result.addDetails(JsonInput.getListOrEmpty(content, "details", JOURNAL_DETAIL_PARSER));
return result;
}
示例3: parseJournal
import com.taskadapter.redmineapi.bean.Journal; //导入依赖的package包/类
public static Journal parseJournal(JSONObject content) throws JSONException {
final Journal result = new Journal();
result.setId(JsonInput.getInt(content, "id"));
result.setCreatedOn(getDateOrNull(content, "created_on"));
result.setNotes(JsonInput.getStringOrNull(content, "notes"));
result.setUser(JsonInput.getObjectOrNull(content, "user", USER_PARSER));
result.setDetails(JsonInput.getListOrEmpty(content, "details", JOURNAL_DETAIL_PARSER));
return result;
}
示例4: isIssueWithCommits
import com.taskadapter.redmineapi.bean.Journal; //导入依赖的package包/类
protected boolean isIssueWithCommits(com.taskadapter.redmineapi.bean.Issue issue) {
List<Journal> journals = issue.getJournals();
boolean commits = false;
for (Journal journal : journals) {
if (isCommitJournal(journal)) {
commits=true;
break;
}
}
return commits;
}
示例5: parse
import com.taskadapter.redmineapi.bean.Journal; //导入依赖的package包/类
@Override
public Journal parse(JSONObject input) throws JSONException {
return parseJournal(input);
}
示例6: isCommitJournal
import com.taskadapter.redmineapi.bean.Journal; //导入依赖的package包/类
protected boolean isCommitJournal(Journal journal) {
User user = journal.getUser();
String login = user.getLogin();
String firstName = user.getFirstName();
return login!=null?login.equals(project.getScmUsername()):firstName.equals(project.getScmUsername());
}