本文整理匯總了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;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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();
}
示例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());
}
示例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;
}
示例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());
}
示例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;
}
示例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;
}
示例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;
}