public Issue getIssue(final Document issueDocument) { return new DocumentIssueImpl(issueDocument, constantsManager, fieldManager, issueManager, this, attachmentManager, projectFactory, jqlLocalDateSupport); }
/** * @deprecated since 7.0, use {@link #getComponents()} instead * @return */ public Collection<ProjectComponent> getComponentObjects() { return getComponents(); }
public Timestamp getCreated() { // todo - change the method signature to be a date instead. return getDateField(IssueFieldConstants.CREATED); }
public GenericValue getGenericValue() { Map values = new HashMap(); values.put("id", getId()); values.put("project", getProject().getLong("id")); values.put("key", getKey()); values.put("type", getIdFromIssueConstant(getIssueTypeObject())); values.put("status", getIdFromIssueConstant(getStatusObject())); values.put("priority", getIdFromIssueConstant(getPriorityObject())); values.put("resolution", getIdFromIssueConstant(getResolution())); values.put("reporter", getReporterId()); values.put("assignee", getAssigneeId()); values.put("creator", getCreatorId()); values.put("summary", getSummary()); values.put("description", getDescription()); values.put("environment", getEnvironment()); values.put("created", getCreated()); values.put("updated", getUpdated()); values.put("duedate", getDueDate()); values.put("votes", getVotes()); values.put("timeoriginalestimate", getOriginalEstimate()); values.put("timeestimate", getEstimate()); values.put("timespent", getTimeSpent()); // put ths back when we DO index workflowID //values.put("workflowid", getWorkflowId()); values.put("security", getSecurityLevelId()); // pass in a delegator that allows find by return new ImmutableGenericValue(CoreFactory.getGenericDelegator(), "Issue", values); }
private List getIssuesFromField(String fieldName) { LuceneFieldSorter sorter = fieldManager.getNavigableField(fieldName).getSorter(); String[] documentValues = document.getValues(sorter.getDocumentConstant()); if (documentValues == null || documentValues.length == 0) { return Collections.EMPTY_LIST; } List<GenericValue> values = new ArrayList<GenericValue>(documentValues.length); for (String documentValue : documentValues) { GenericValue value = (GenericValue) sorter.getValueFromLuceneField(documentValue); if (value != null) { values.add(value); } } Collections.sort(values, sorter.getComparator()); return convertGenericValuesToIssues(values); }
public Timestamp getUpdated() { // todo - change the method signature to be a date instead. return getDateField(IssueFieldConstants.UPDATED); }
public Timestamp getResolutionDate() { return getDateField(IssueFieldConstants.RESOLUTION_DATE); }