Codota Logo
IntactCore.ensureInitializedLifecycleEvents
Code IndexAdd Codota to your IDE (free)

How to use
ensureInitializedLifecycleEvents
method
in
uk.ac.ebi.intact.core.persister.IntactCore

Best Java code snippets using uk.ac.ebi.intact.core.persister.IntactCore.ensureInitializedLifecycleEvents (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Gets the last lifecycle event with the provided CvLifecycleEvent identifier for a publication.
 * @param publication the publication
 * @param cvLifecycleEventId the identifier of the CvLifecycleEvent cv
 * @return The last event with that identifier
 * @since 2.5.0
 */
public static LifecycleEvent getLastEventOfType(Publication publication, String cvLifecycleEventId) {
  LifecycleEvent lastEvent = null;
  List<LifecycleEvent> sorted = IntactCore.ensureInitializedLifecycleEvents(publication);
  Collections.sort(sorted, new Comparator<LifecycleEvent>() {
    @Override
    public int compare(LifecycleEvent o1, LifecycleEvent o2) {
      return o1.getWhen().compareTo(o2.getWhen());
    }
  });
  for (LifecycleEvent event : IntactCore.ensureInitializedLifecycleEvents(publication)) {
    if (cvLifecycleEventId.equals(event.getEvent().getIdentifier())) {
      lastEvent = event;
    }
  }
  return lastEvent;
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Gets the last lifecycle event with the provided CvLifecycleEvent identifier for a publication.
 * @param publication the publication
 * @param cvLifecycleEventId the identifier of the CvLifecycleEvent cv
 * @return The last event with that identifier
 * @since 2.5.0
 */
public static LifecycleEvent getLastEventOfType(Publication publication, String cvLifecycleEventId) {
  LifecycleEvent lastEvent = null;
  List<LifecycleEvent> sorted = IntactCore.ensureInitializedLifecycleEvents(publication);
  Collections.sort(sorted, new Comparator<LifecycleEvent>() {
    @Override
    public int compare(LifecycleEvent o1, LifecycleEvent o2) {
      return o1.getWhen().compareTo(o2.getWhen());
    }
  });
  for (LifecycleEvent event : IntactCore.ensureInitializedLifecycleEvents(publication)) {
    if (cvLifecycleEventId.equals(event.getEvent().getIdentifier())) {
      lastEvent = event;
    }
  }
  return lastEvent;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public Publication clonePublication(Publication publication) throws IntactClonerException {
  if (publication == null) return null;
  Publication clone = new Publication();
  clonerManager.addClone(publication, clone);
  if (isCollectionClonable(publication.getExperiments())) {
    Collection<Experiment> experiments = IntactCore.ensureInitializedExperiments(publication);
    for (Experiment e : experiments) {
      clone.addExperiment(clone(e));
    }
  }
  if (isCollectionClonable(publication.getLifecycleEvents())) {
    Collection<LifecycleEvent> events = IntactCore.ensureInitializedLifecycleEvents(publication);
    for (LifecycleEvent event : events) {
      clone.addLifecycleEvent(clone(event));
    }
  }
  clone.setStatus(clone(publication.getStatus()));
  clone.setCurrentOwner(clone(publication.getCurrentOwner()));
  clone.setCurrentReviewer(clone(publication.getCurrentReviewer()));
  return clone;
}
origin: uk.ac.ebi.intact.core/intact-core

public Publication clonePublication(Publication publication) throws IntactClonerException {
  if (publication == null) return null;
  Publication clone = new Publication();
  clonerManager.addClone(publication, clone);
  if (isCollectionClonable(publication.getExperiments())) {
    Collection<Experiment> experiments = IntactCore.ensureInitializedExperiments(publication);
    for (Experiment e : experiments) {
      clone.addExperiment(clone(e));
    }
  }
  if (isCollectionClonable(publication.getLifecycleEvents())) {
    Collection<LifecycleEvent> events = IntactCore.ensureInitializedLifecycleEvents(publication);
    for (LifecycleEvent event : events) {
      clone.addLifecycleEvent(clone(event));
    }
  }
  clone.setStatus(clone(publication.getStatus()));
  clone.setCurrentOwner(clone(publication.getCurrentOwner()));
  clone.setCurrentReviewer(clone(publication.getCurrentReviewer()));
  return clone;
}
uk.ac.ebi.intact.core.persisterIntactCoreensureInitializedLifecycleEvents

Javadoc

Ensures that the lifecycle events are initialized.

Popular methods of IntactCore

  • ensureInitializedAliases
    Retrieves the aliases from an AnnotatedObject, initializing them if necessary.
  • ensureInitializedAnnotations
    Retrieves the annotations from an AnnotatedObject, initializing them if necessary.
  • ensureInitializedComponentConfidences
    Retrieves the confidences from a participant, initializing them if necessary. Do not set the initial
  • ensureInitializedComponentParameters
    Retrieves the parameters from a participant, initializing them if necessary. Do not set the initiali
  • ensureInitializedConfidences
    Retrieves the confidences from an interaction, initializing them if necessary. Do not set the initia
  • ensureInitializedExperimentalPreparations
    Retrieves the experimental preparations from a participant, initializing them if necessary. Do not s
  • ensureInitializedExperimentalRoles
    Retrieves the experimental roles from a participant, initializing them if necessary. Do not set the
  • ensureInitializedExperiments
    Retrieves the experiment from a publication, initializing them if necessary.
  • ensureInitializedFeatures
    Retrieves the features from a participant, initializing them if necessary. Do not set the initialize
  • ensureInitializedInteractionParameters
    Retrieves the parameters from an interaction, initializing them if necessary. Do not set the initial
  • ensureInitializedParticipantIdentificationMethods
    Retrieves the participant detection methods from a participant, initializing them if necessary. Do n
  • ensureInitializedParticipants
    Retrieves the components from an interaction, initializing them if necessary. Do not set the initial
  • ensureInitializedParticipantIdentificationMethods,
  • ensureInitializedParticipants,
  • ensureInitializedRanges,
  • ensureInitializedXrefs,
  • ensureInitializedInteractions,
  • ensureInitializedPreferences,
  • ensureInitializedRoles,
  • initialize,
  • initializeAnnotatedObject

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • setContentView (Activity)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now