本文整理了Java中com.atlassian.jira.project.version.Version.getStartDate()
方法的一些代码示例,展示了Version.getStartDate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getStartDate()
方法的具体详情如下:
包路径:com.atlassian.jira.project.version.Version
类名称:Version
方法名:getStartDate
[英]Returns the start date of the version
[中]返回版本的开始日期
代码示例来源:origin: com.atlassian.jira/jira-api
@Override
public Comparable getValue(final Version entity)
{
return entity.getStartDate();
}
},
代码示例来源:origin: com.atlassian.jira/jira-core
@Nullable
String getStartDate(@Nullable Version version)
{
if (version == null || version.getStartDate() == null)
{
return null;
}
return new DateTime(version.getStartDate()).toString(new DateTimeFormatterBuilder().append(ISODateTimeFormat.date()).toFormatter());
}
代码示例来源:origin: com.atlassian.jira/jira-core
public Version editVersionReleaseDate(final Version version, final Date duedate)
{
//Theversion must be specified
if (version == null)
{
throw new IllegalArgumentException("You must specify a valid version.");
}
if (version.getStartDate() != null && duedate != null)
{
if (version.getStartDate().after(duedate))
{
throw new IllegalArgumentException("Release date must be after the version start date");
}
}
final Version newVersion = new VersionBuilderImpl(version).releaseDate(duedate).build();
versionStore.storeVersion(newVersion);
return newVersion;
}
代码示例来源:origin: com.atlassian.jira/jira-rest-plugin
public Builder setVersion(Version version)
{
this.id = version.getId();
this.name = version.getName();
this.description = StringUtils.stripToNull(version.getDescription());
this.startDate = version.getStartDate();
this.releaseDate = version.getReleaseDate();
this.archived = version.isArchived();
this.released = version.isReleased();
return this;
}
代码示例来源:origin: com.atlassian.jira/jira-gadgets-plugin
public ProjectVersionBean(final Version version, final Project project, final String url)
{
this.id = version.getId();
this.description = version.getDescription();
this.name = version.getName();
this.url = url;
this.archived = version.isArchived();
this.released = version.isReleased();
this.startDate = version.getStartDate();
this.releaseDate = version.getReleaseDate();
this.project = new SimpleProjectBean(project);
}
代码示例来源:origin: com.atlassian.jira/jira-core
public VersionBuilderImpl(Version version)
{
this.version = version;
this.projectId = version.getProjectId();
this.sequence = version.getSequence();
this.name = version.getName();
this.description = version.getDescription();
this.startDate = version.getStartDate();
this.releaseDate = version.getReleaseDate();
this.released = version.isReleased();
this.archived = version.isArchived();
}
代码示例来源:origin: com.atlassian.jira/jira-core
if(versionBuilderImpl.getVersion() != null && versionBuilderImpl.getStartDate().equals(versionBuilderImpl.getVersion().getStartDate()))
代码示例来源:origin: com.atlassian.jira/jira-core
public Map<String, Object> fieldMapFrom(Version value)
{
FieldMap map = new FieldMap();
map.add("project", value.getProjectId());
map.add("id", value.getId());
map.add("name", value.getName());
map.add("description", value.getDescription());
map.add("sequence", value.getSequence());
map.add("archived", value.isArchived() ? "true" : null);
map.add("released", value.isReleased() ? "true" : null);
map.add("releasedate", copyDate(value.getReleaseDate()));
map.add("startdate", copyDate(value.getStartDate()));
return map;
}
代码示例来源:origin: com.atlassian.jira/jira-webhooks-plugin
public VersionBean createBean(Version version) {
final Date startDate = version.getStartDate();
final Date releaseDate = version.getReleaseDate();
String prettyStartDate = null;
if (startDate != null) {
prettyStartDate = dateFieldFormat.format(startDate);
}
String prettyReleaseDate = null;
if (releaseDate != null) {
prettyReleaseDate = dateFieldFormat.format(releaseDate);
}
final VersionBean.Builder beanBuilder = new VersionBean.Builder()
.setArchived(version.isArchived())
.setDescription(version.getDescription())
.setExpand(null)
.setId(version.getId())
.setName(version.getName())
.setOverdue(versionManager.isVersionOverDue(version))
.setProjectId(version.getProjectId())
.setReleased(version.isReleased())
.setUserReleaseDate(prettyReleaseDate)
.setUserStartDate(prettyStartDate)
.setSelf(createSelfURI(version));
return beanBuilder.build();
}
代码示例来源:origin: com.atlassian.jira/jira-rest-plugin
final Date startDate = version.getStartDate();
final Date releaseDate = version.getReleaseDate();
代码示例来源:origin: com.atlassian.jira/jira-rest-plugin
final ServiceOutcome<Date> startDateOutcome = parseDateEdit("startDate", bean.isStartDateSet(), bean.getStartDate(), bean.getUserStartDate(), version.getStartDate());
final Date startDate = startDateOutcome.isValid() ? startDateOutcome.getReturnedValue() : null;
内容来源于网络,如有侵权,请联系作者删除!