當前位置: 首頁>>代碼示例>>Java>>正文


Java PersonIdent.getTimeZone方法代碼示例

本文整理匯總了Java中org.eclipse.jgit.lib.PersonIdent.getTimeZone方法的典型用法代碼示例。如果您正苦於以下問題:Java PersonIdent.getTimeZone方法的具體用法?Java PersonIdent.getTimeZone怎麽用?Java PersonIdent.getTimeZone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.jgit.lib.PersonIdent的用法示例。


在下文中一共展示了PersonIdent.getTimeZone方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: ChangeEditModifier

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Inject
ChangeEditModifier(
    @GerritPersonIdent PersonIdent gerritIdent,
    ChangeIndexer indexer,
    Provider<ReviewDb> reviewDb,
    Provider<CurrentUser> currentUser,
    PermissionBackend permissionBackend,
    ChangeEditUtil changeEditUtil,
    PatchSetUtil patchSetUtil) {
  this.indexer = indexer;
  this.reviewDb = reviewDb;
  this.currentUser = currentUser;
  this.permissionBackend = permissionBackend;
  this.tz = gerritIdent.getTimeZone();
  this.changeEditUtil = changeEditUtil;
  this.patchSetUtil = patchSetUtil;
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:18,代碼來源:ChangeEditModifier.java

示例2: PutMessage

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Inject
PutMessage(
    RetryHelper retryHelper,
    GitRepositoryManager repositoryManager,
    Provider<CurrentUser> currentUserProvider,
    Provider<ReviewDb> db,
    PatchSetInserter.Factory psInserterFactory,
    PermissionBackend permissionBackend,
    @GerritPersonIdent PersonIdent gerritIdent,
    PatchSetUtil psUtil,
    NotifyUtil notifyUtil,
    ProjectCache projectCache) {
  super(retryHelper);
  this.repositoryManager = repositoryManager;
  this.currentUserProvider = currentUserProvider;
  this.db = db;
  this.psInserterFactory = psInserterFactory;
  this.tz = gerritIdent.getTimeZone();
  this.permissionBackend = permissionBackend;
  this.psUtil = psUtil;
  this.notifyUtil = notifyUtil;
  this.projectCache = projectCache;
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:24,代碼來源:PutMessage.java

示例3: setAuthor

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Override
public void setAuthor(String name, String email) {
	PersonIdent author = this.commit.getAuthor();
	Date origWhen = author.getWhen();
	TimeZone origTZ = author.getTimeZone();
	this.authorUpdate = new PersonIdent(name, email, origWhen, origTZ);
}
 
開發者ID:link-intersystems,項目名稱:GitDirStat,代碼行數:8,代碼來源:CacheCommitUpdate.java

示例4: setCommitter

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Override
public void setCommitter(String name, String email) {
	PersonIdent committer = this.commit.getCommitter();
	Date origWhen = committer.getWhen();
	TimeZone origTZ = committer.getTimeZone();
	this.committerUpdate = new PersonIdent(name, email, origWhen, origTZ);
}
 
開發者ID:link-intersystems,項目名稱:GitDirStat,代碼行數:8,代碼來源:CacheCommitUpdate.java

示例5: evaluate

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Override
public boolean evaluate(ReflogEntry reflogEntry) {
	PersonIdent who = reflogEntry.getWho();

	TimeZone timeZone = who.getTimeZone();
	Calendar reflogEntryCalendar = Calendar.getInstance(timeZone);
	Date when = who.getWhen();
	reflogEntryCalendar.setTime(when);

	boolean isNotExpired = reflogEntryCalendar.after(expireCalendar);
	return isNotExpired;
}
 
開發者ID:link-intersystems,項目名稱:GitDirStat,代碼行數:13,代碼來源:ExpireReflogCommand.java

示例6: BanCommit

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Inject
BanCommit(
    Provider<IdentifiedUser> currentUser,
    GitRepositoryManager repoManager,
    @GerritPersonIdent PersonIdent gerritIdent,
    NotesBranchUtil.Factory notesBranchUtilFactory,
    PermissionBackend permissionBackend) {
  this.currentUser = currentUser;
  this.repoManager = repoManager;
  this.notesBranchUtilFactory = notesBranchUtilFactory;
  this.permissionBackend = permissionBackend;
  this.tz = gerritIdent.getTimeZone();
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:14,代碼來源:BanCommit.java

示例7: getAuditLogAuthorIdent

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
private static PersonIdent getAuditLogAuthorIdent(
    Account author, PersonIdent serverIdent, String serverId, String anonymousCowardName) {
  return new PersonIdent(
      author.getName(anonymousCowardName),
      getEmailForAuditLog(author.getId(), serverId),
      serverIdent.getWhen(),
      serverIdent.getTimeZone());
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:9,代碼來源:GroupsUpdate.java

示例8: BatchUpdate

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
protected BatchUpdate(
    GitRepositoryManager repoManager,
    PersonIdent serverIdent,
    Project.NameKey project,
    CurrentUser user,
    Timestamp when) {
  this.repoManager = repoManager;
  this.project = project;
  this.user = user;
  this.when = when;
  tz = serverIdent.getTimeZone();
  order = Order.REPO_BEFORE_DB;
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:14,代碼來源:BatchUpdate.java

示例9: newIdent

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@VisibleForTesting
public PersonIdent newIdent(
    Account author, Date when, PersonIdent serverIdent, String anonymousCowardName) {
  return new PersonIdent(
      author.getName(anonymousCowardName),
      author.getId().get() + "@" + serverId,
      when,
      serverIdent.getTimeZone());
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:10,代碼來源:ChangeNoteUtil.java

示例10: CherryPickChange

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Inject
CherryPickChange(
    Provider<ReviewDb> dbProvider,
    Sequences seq,
    Provider<InternalChangeQuery> queryProvider,
    @GerritPersonIdent PersonIdent myIdent,
    GitRepositoryManager gitManager,
    Provider<IdentifiedUser> user,
    ChangeInserter.Factory changeInserterFactory,
    PatchSetInserter.Factory patchSetInserterFactory,
    MergeUtil.Factory mergeUtilFactory,
    ChangeNotes.Factory changeNotesFactory,
    ProjectCache projectCache,
    ApprovalsUtil approvalsUtil,
    ChangeMessagesUtil changeMessagesUtil,
    NotifyUtil notifyUtil) {
  this.dbProvider = dbProvider;
  this.seq = seq;
  this.queryProvider = queryProvider;
  this.gitManager = gitManager;
  this.serverTimeZone = myIdent.getTimeZone();
  this.user = user;
  this.changeInserterFactory = changeInserterFactory;
  this.patchSetInserterFactory = patchSetInserterFactory;
  this.mergeUtilFactory = mergeUtilFactory;
  this.changeNotesFactory = changeNotesFactory;
  this.projectCache = projectCache;
  this.approvalsUtil = approvalsUtil;
  this.changeMessagesUtil = changeMessagesUtil;
  this.notifyUtil = notifyUtil;
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:32,代碼來源:CherryPickChange.java

示例11: CreateMergePatchSet

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Inject
CreateMergePatchSet(
    Provider<ReviewDb> db,
    GitRepositoryManager gitManager,
    CommitsCollection commits,
    @GerritPersonIdent PersonIdent myIdent,
    Provider<CurrentUser> user,
    ChangeJson.Factory json,
    PatchSetUtil psUtil,
    MergeUtil.Factory mergeUtilFactory,
    RetryHelper retryHelper,
    PatchSetInserter.Factory patchSetInserterFactory,
    ProjectCache projectCache,
    ChangeFinder changeFinder,
    PermissionBackend permissionBackend) {
  super(retryHelper);
  this.db = db;
  this.gitManager = gitManager;
  this.commits = commits;
  this.serverTimeZone = myIdent.getTimeZone();
  this.user = user;
  this.jsonFactory = json;
  this.psUtil = psUtil;
  this.mergeUtilFactory = mergeUtilFactory;
  this.patchSetInserterFactory = patchSetInserterFactory;
  this.projectCache = projectCache;
  this.changeFinder = changeFinder;
  this.permissionBackend = permissionBackend;
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:30,代碼來源:CreateMergePatchSet.java

示例12: CreateChange

import org.eclipse.jgit.lib.PersonIdent; //導入方法依賴的package包/類
@Inject
CreateChange(
    @AnonymousCowardName String anonymousCowardName,
    Provider<ReviewDb> db,
    GitRepositoryManager gitManager,
    AccountCache accountCache,
    Sequences seq,
    @GerritPersonIdent PersonIdent myIdent,
    PermissionBackend permissionBackend,
    Provider<CurrentUser> user,
    ProjectsCollection projectsCollection,
    CommitsCollection commits,
    ChangeInserter.Factory changeInserterFactory,
    ChangeJson.Factory json,
    ChangeFinder changeFinder,
    RetryHelper retryHelper,
    PatchSetUtil psUtil,
    @GerritServerConfig Config config,
    MergeUtil.Factory mergeUtilFactory,
    NotifyUtil notifyUtil,
    ContributorAgreementsChecker contributorAgreements) {
  super(retryHelper);
  this.anonymousCowardName = anonymousCowardName;
  this.db = db;
  this.gitManager = gitManager;
  this.accountCache = accountCache;
  this.seq = seq;
  this.serverTimeZone = myIdent.getTimeZone();
  this.permissionBackend = permissionBackend;
  this.user = user;
  this.projectsCollection = projectsCollection;
  this.commits = commits;
  this.changeInserterFactory = changeInserterFactory;
  this.jsonFactory = json;
  this.changeFinder = changeFinder;
  this.psUtil = psUtil;
  this.submitType = config.getEnum("project", null, "submitType", SubmitType.MERGE_IF_NECESSARY);
  this.mergeUtilFactory = mergeUtilFactory;
  this.notifyUtil = notifyUtil;
  this.contributorAgreements = contributorAgreements;
}
 
開發者ID:gerrit-review,項目名稱:gerrit,代碼行數:42,代碼來源:CreateChange.java


注:本文中的org.eclipse.jgit.lib.PersonIdent.getTimeZone方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。