private MutableIssue getIssueObject(final GenericValue issueGV) { return new IssueImpl(issueGV, this, MockIssueFactory.getProjectManager(), MockIssueFactory.getVersionManager(), MockIssueFactory.getIssueSecurityLevelManager(), MockIssueFactory.getConstantsManager(), MockIssueFactory.getSubTaskManager(), MockIssueFactory.getAttachmentManager(), MockIssueFactory.getLabelManager(), MockIssueFactory.getProjectComponentManager(), MockIssueFactory.getUserManager(), MockIssueFactory.getJiraAuthenticationContext()); }
public static MutableIssue createIssue(long id) { return createIssue(new Long(id)); }
public MutableIssue getIssueObject(String key) throws DataAccessException { final Issue movedIssue = findMovedIssue(key); if (movedIssue != null) { return (MutableIssue) movedIssue; } Issue issue = null; for (Issue i : issues.values()) { if (key.equals(i.getKey())) { issue = i; break; } } if (issue == null) { return null; } // By contract we must return a new instance each time. return new IssueImpl(issue.getGenericValue(), this, MockIssueFactory.getProjectManager(), MockIssueFactory.getVersionManager(), MockIssueFactory.getIssueSecurityLevelManager(), MockIssueFactory.getConstantsManager(), MockIssueFactory.getSubTaskManager(), MockIssueFactory.getAttachmentManager(), MockIssueFactory.getLabelManager(), MockIssueFactory.getProjectComponentManager(), MockIssueFactory.getUserManager(), MockIssueFactory.getJiraAuthenticationContext()); }