@Override public List<GenericValue> getEntitiesByIssue(final String relationName, final GenericValue issue) throws GenericEntityException {return delegate.getEntitiesByIssue(relationName, issue);}
public Collection getVersions(GenericValue issue) throws GenericEntityException { if (issue == null) { throw new IllegalArgumentException("Issue cannot be null."); } return ComponentAccessor.getIssueManager().getEntitiesByIssue(IssueRelationConstants.VERSION, issue); }
public Collection getFixVersions(GenericValue issue) throws GenericEntityException { if (issue == null) { throw new IllegalArgumentException("Issue cannot be null."); } return ComponentAccessor.getIssueManager().getEntitiesByIssue(IssueRelationConstants.FIX_VERSION, issue); }
public Collection getComponents(GenericValue issue) throws GenericEntityException { if (issue == null) { throw new IllegalArgumentException("Issue cannot be null."); } return ComponentAccessor.getIssueManager().getEntitiesByIssue(IssueRelationConstants.COMPONENT, issue); }
public Collection<GenericValue> findComponentsByIssueGV(final Issue issue) { Collection<GenericValue> components; final GenericValue genericValue = issue.getGenericValue(); if (genericValue != null) { try { final List<GenericValue> newValue = new ArrayList<GenericValue>(issueManager.getEntitiesByIssue(IssueRelationConstants.COMPONENT, genericValue)); Collections.sort(newValue, ComponentComparator.COMPARATOR); components = newValue; } catch (GenericEntityException e) { throw new DataAccessException("Error occurred while retrieving components for issue with id " + issue.getId() + "'.", e); } } else { components = Collections.emptyList(); } return components; }
Collection oldEntities = ComponentAccessor.getIssueManager().getEntitiesByIssue(relationType, issue);
Collection oldEntities = ComponentAccessor.getIssueManager().getEntitiesByIssue(relationType, issue);