本文整理了Java中com.atlassian.jira.issue.attachment.Attachment.getCreated()
方法的一些代码示例,展示了Attachment.getCreated()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attachment.getCreated()
方法的具体详情如下:
包路径:com.atlassian.jira.issue.attachment.Attachment
类名称:Attachment
方法名:getCreated
暂无
代码示例来源:origin: com.atlassian.jira/jira-core
public int compare(final Attachment attachment1, final Attachment attachment2)
{
final Timestamp created1 = attachment1.getCreated();
final Timestamp created2 = attachment2.getCreated();
if ((created1 == null) && (created2 == null))
{
return 0;
}
if (created1 == null)
{
return 1;
}
if (created2 == null)
{
return -1;
}
return created1.compareTo(created2);
}
}
代码示例来源:origin: com.atlassian.jira.plugins/atlassian-jira-rpc-plugin
public RemoteAttachment(Attachment attachment)
{
super(attachment.getId().toString());
author = getUsernameFor(attachment.getAuthorObject());
created = attachment.getCreated();
filename = attachment.getFilename();
filesize = attachment.getFilesize();
mimetype = attachment.getMimetype();
}
代码示例来源:origin: com.atlassian.jira/jira-core
private RendererAttachment convertToRendererAttachment(Attachment attachment, RenderContext context, EmbeddedResource resource)
{
return new RendererAttachment(attachment.getId().longValue(), attachment.getFilename(), attachment.getMimetype(),
attachment.getAuthorKey(), null, buildAttachmentUrl(context, attachment), null, null, attachment.getCreated());
}
代码示例来源:origin: com.atlassian.jira/jira-core
private RendererAttachment convertToRendererAttachment(ThumbnailedImage thumbnail, Attachment attachment, RenderContext context, EmbeddedResource resource)
{
return new RendererAttachment(thumbnail.getAttachmentId(), thumbnail.getFilename(), attachment.getMimetype(),
attachment.getAuthorKey(), null, thumbnail.getImageURL(), null, null, attachment.getCreated());
}
代码示例来源:origin: com.atlassian.jira/jira-rest-plugin
String filename = attachment.getFilename();
UserBean author = new UserBeanBuilder(jiraBaseUrls, jiraAvatarSupport).user(attachment.getAuthorObject()).buildShort();
Timestamp created = attachment.getCreated();
Long size = attachment.getFilesize();
String mimeType = attachment.getMimetype();
代码示例来源:origin: com.atlassian.streams/streams-jira-plugin
@Override
public ActivityObject apply(Attachment attachment) {
final StreamsUriBuilder idBuilder = new StreamsUriBuilder().setUrl(issueUriBuilder.getIssueUri(baseUri, attachment.getIssueObject()).toASCIIString()).setTimestamp(attachment.getCreated());
return new ActivityObject(ActivityObject.params().
id(idBuilder.getUri().toASCIIString()).
activityObjectType(file()).
title(some(attachment.getFilename())).
alternateLinkUri(issueUriBuilder.getAttachmentUri(baseUri, attachment)));
}
};
代码示例来源:origin: com.atlassian.jira/jira-api
bean.author = ComponentAccessor.getComponent(UserBeanFactory.class).createBean(attachment.getAuthorObject(), loggedInUser, urls, emailFormatter, ComponentAccessor.getComponent(TimeZoneManager.class));
bean.content = attachment.getFilename();
bean.created = attachment.getCreated() == null ? "" : dateTimeFormatterFactory.formatter().forLoggedInUser().format(attachment.getCreated());
代码示例来源:origin: com.atlassian.jira/jira-core
ApplicationUser author = attachment.getAuthorObject();
bean.setAuthor(userBeanFactory.createBean(author, authenticationContext.getUser(), urls, emailFormatter, timeZoneManager));
bean.setCreated(attachment.getCreated());
String encodedFilename = URLEncoder.encode(attachment.getFilename(), "UTF-8");
bean.setContent(String.format("%s/secure/attachment/%s/%s", urls.baseUrl(), attachment.getId(), encodedFilename));
代码示例来源:origin: com.atlassian.jira/jira-core
final ApplicationUser author = userManager.getUserByKeyEvenWhenUnknown(attachment.getAuthorKey());
final Timestamp createdTimestamp = attachment.getCreated();
final ReadableInstant created = new DateTime(
createdTimestamp.getTime(),
代码示例来源:origin: com.atlassian.jira.plugins/jira-healthcheck-plugin
latestAttachment.getCreated().getTime() - THIRTY_SECONDS_IN_MILLIS);
内容来源于网络,如有侵权,请联系作者删除!