本文整理汇总了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;
}