本文整理了Java中com.atlassian.jira.issue.attachment.Attachment.getIssue()
方法的一些代码示例,展示了Attachment.getIssue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attachment.getIssue()
方法的具体详情如下:
包路径:com.atlassian.jira.issue.attachment.Attachment
类名称:Attachment
方法名:getIssue
[英]Returns the Issue that this file is attached to.
[中]返回此文件附加到的问题。
代码示例来源:origin: com.atlassian.jira/jira-api
/**
* Returns the Issue that this file is attached to.
* Legacy synonym for {@link #getIssue()}.
*
* @return the Issue that this file is attached to.
*/
public Issue getIssueObject()
{
return getIssue();
}
代码示例来源:origin: com.atlassian.jira/jira-core
/**
* @param attachment the attachment
* @return the issue to which this attachment is attached
*/
private Issue getIssue(Attachment attachment)
{
Long issueId = attachment.getIssueId();
Issue issue = issueById.get(issueId);
if (issue == null)
{
issue = attachment.getIssue();
issueById.put(issueId, issue);
}
return issue;
}
代码示例来源:origin: com.atlassian.jira/jira-rest-plugin
@Override
public boolean authorize(final Attachment attachment, @Nullable final ApplicationUser user)
{
final Issue issue = attachment.getIssue();
return permissionManager.hasPermission(ProjectPermissions.BROWSE_PROJECTS, issue, user);
}
代码示例来源:origin: com.atlassian.jira/jira-rest-plugin
private Option<AttachmentArchive> tryToExpand(final Attachment attachment)
{
final Issue issue = attachment.getIssue();
final int maxEntries = configuration.getMaxEntriesToExpand();
return attachmentIndexManager.getAttachmentContents(attachment, issue, maxEntries);
}
}
代码示例来源:origin: com.atlassian.jira/jira-core
private StoreAttachmentBean mapAttachmentToStoreBean(final Attachment metadata, final StoreAttachmentBean.Builder builder)
{
return builder
.withId(metadata.getId())
.withFileName(metadata.getFilename())
.withSize(metadata.getFilesize())
.withIssueKey(metadata.getIssue().getKey())
.withOriginalProjectKey(metadata.getIssue().getProjectObject().getOriginalKey())
.build();
}
代码示例来源:origin: com.atlassian.jira.plugins/jira-healthcheck-plugin
latestAttachment.getIssue().getKey());
previousAttachment.getIssue().getKey());
latestAttachment.getFilename(), latestAttachment.getIssue().getKey(),
previousAttachment.getFilename(), previousAttachment.getIssue().getKey());
latestAttachment.getIssue().getKey());
代码示例来源:origin: com.atlassian.jira/jira-core
@Override
public void deleteAttachment(final Attachment attachment) throws RemoveException
{
final Issue issue = attachment.getIssue();
try
{
attachmentStore.deleteAttachment(attachment).claim();
ofBizDelegator.removeAll(CollectionBuilder.list(attachment.getGenericValue()));
attachmentIndexManager.removeAttachmentIndex(attachment, issue);
}
catch (AttachmentCleanupException e)
{
throw new RemoveException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!