protected Key keyForInteractor(Interactor interactor) { final Collection<InteractorXref> interactorXrefs = XrefUtils.getIdentityXrefs(interactor); Key key; if (interactorXrefs.isEmpty()) { key = keyForAnnotatedObject(interactor); } else { Class normalizedClass = CgLibUtil.removeCglibEnhanced(interactor.getClass()); key = new Key(normalizedClass.getSimpleName() + ":" + concatPrimaryIds(interactorXrefs)); } return key; }
protected Key keyForInteractor(Interactor interactor) { final Collection<InteractorXref> interactorXrefs = XrefUtils.getIdentityXrefs(interactor); Key key; if (interactorXrefs.isEmpty()) { key = keyForAnnotatedObject(interactor); } else { Class normalizedClass = CgLibUtil.removeCglibEnhanced(interactor.getClass()); key = new Key(normalizedClass.getSimpleName() + ":" + concatPrimaryIds(interactorXrefs)); } return key; }
protected Key keyForInstitution(Institution institution) { final Collection<InstitutionXref> institutionXrefs = XrefUtils.getIdentityXrefs(institution); Key key; if (institutionXrefs.isEmpty()) { key = keyForAnnotatedObject(institution); } else { key = new Key("Institution:" + concatPrimaryIds(institutionXrefs)); } return key; }
protected Key keyForCvObject(CvObject cvObject) { String key = cvObject.getIdentifier(); if (key == null) { // search for identity final Collection<CvObjectXref> xrefs = XrefUtils.getIdentityXrefs(cvObject); if (!xrefs.isEmpty()) { key = concatPrimaryIds(xrefs); } else { key = cvObject.getShortLabel(); } } key = cvObject.getClass().getSimpleName() + "__" + key; return new Key(key); }
protected Key keyForInstitution(Institution institution) { final Collection<InstitutionXref> institutionXrefs = XrefUtils.getIdentityXrefs(institution); Key key; if (institutionXrefs.isEmpty()) { key = keyForAnnotatedObject(institution); } else { key = new Key("Institution:" + concatPrimaryIds(institutionXrefs)); } return key; }
protected Key keyForCvObject(CvObject cvObject) { String key = cvObject.getIdentifier(); if (key == null) { // search for identity final Collection<CvObjectXref> xrefs = XrefUtils.getIdentityXrefs(cvObject); if (!xrefs.isEmpty()) { key = concatPrimaryIds(xrefs); } else { key = cvObject.getShortLabel(); } } key = cvObject.getClass().getSimpleName() + "__" + key; return new Key(key); }