当前位置: 首页>>代码示例>>Java>>正文


Java Journal类代码示例

本文整理汇总了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()));
	}
}
 
开发者ID:andrea-rockt,项目名称:mylyn-redmine-connector,代码行数:21,代码来源:RedmineTaskDataHandler.java

示例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;
}
 
开发者ID:andrea-rockt,项目名称:mylyn-redmine-connector,代码行数:9,代码来源:RedmineJSONParser.java

示例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;
}
 
开发者ID:noveogroup,项目名称:android-snitch,代码行数:10,代码来源:RedmineJSONParser.java

示例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;
}
 
开发者ID:francm,项目名称:maven-issuetracking-plugin,代码行数:12,代码来源:RedmineIssueManager.java

示例5: parse

import com.taskadapter.redmineapi.bean.Journal; //导入依赖的package包/类
@Override
public Journal parse(JSONObject input) throws JSONException {
	return parseJournal(input);
}
 
开发者ID:andrea-rockt,项目名称:mylyn-redmine-connector,代码行数:5,代码来源:RedmineJSONParser.java

示例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());
}
 
开发者ID:francm,项目名称:maven-issuetracking-plugin,代码行数:7,代码来源:RedmineIssueManager.java


注:本文中的com.taskadapter.redmineapi.bean.Journal类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。