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() ); }
.builder() .key(key) .type(type)
public EntityLink apply(@Nullable EntityLink oldEntityLink) { if (oldEntityLink.getApplicationLink().getId().equals(from.getId())) { final EntityLink newEntityLink = entityLinkBuilderFactory.builder() .applicationLink(to) .type(oldEntityLink.getType())