private void addEntity(final ApplicationLink applicationLink, final String jiraProjectKey, final String entityKey, final String entityName, final EntityType entityType) { entityLinkService.addEntityLink(jiraProjectKey, JiraProjectEntityType.class, entityLinkBuilderFactory.builder() .type(entityType) .key(entityKey) //name of repo is unique for each FE instance .name(entityName) .applicationLink(applicationLink) .primary(false) //TODO: think about how to determine primary-ness of a repo. .build() ); }
entityLinkService.addEntityLink(localKey, localType.getClass(), newLink);