/** * checkes if the given interaction has an IMEx identifier. * * @param interaction the interaction to seach on. * @return true if the interaction has an IMEx identifier, false otherwise. */ public static boolean hasImexIdentifier(Interaction interaction) { return getImexIdentifier(interaction) != null; }
/** * checkes if the given interaction has an IMEx identifier. * * @param interaction the interaction to seach on. * @return true if the interaction has an IMEx identifier, false otherwise. */ public static boolean hasImexIdentifier(Interaction interaction) { return getImexIdentifier(interaction) != null; }
/** * checkes if the given interaction has an IMEx identifier. * * @param interaction the interaction to seach on. * @return true if the interaction has an IMEx identifier, false otherwise. */ public static boolean hasImexIdentifier( Interaction interaction ) { return getImexIdentifier( interaction ) != null; }
private <T extends AnnotatedObject> void warnIfInteractionDuplicate( T ao, T managedObject ) { if ( log.isWarnEnabled() && ao instanceof Interaction ) { Interaction newInteraction = ( Interaction ) ao; Interaction existingInteraction = ( Interaction ) managedObject; String newImexId = InteractionUtils.getImexIdentifier( newInteraction ); String existingImexId = InteractionUtils.getImexIdentifier( existingInteraction ); log.warn( "An AC already exists for this interaction. Possibly a duplicate? : Existing [" + managedObject.getAc() + ", " + managedObject.getShortLabel() + ", " + existingImexId + "] - " + "New [-, " + ao.getShortLabel() + ", " + newImexId + "]. The existing interaction will be updated" ); } }
private <T extends AnnotatedObject> void warnIfInteractionDuplicate( T ao, T managedObject ) { if ( log.isWarnEnabled() && ao instanceof Interaction ) { Interaction newInteraction = ( Interaction ) ao; Interaction existingInteraction = ( Interaction ) managedObject; String newImexId = InteractionUtils.getImexIdentifier( newInteraction ); String existingImexId = InteractionUtils.getImexIdentifier( existingInteraction ); log.warn( "An AC already exists for this interaction. Possibly a duplicate? : Existing [" + managedObject.getAc() + ", " + managedObject.getShortLabel() + ", " + existingImexId + "] - " + "New [-, " + ao.getShortLabel() + ", " + newImexId + "]. The existing interaction will be updated" ); } }