Tabnine Logo
IntactContext.getLifecycleManager
Code IndexAdd Tabnine to your IDE (free)

How to use
getLifecycleManager
method
in
uk.ac.ebi.intact.core.context.IntactContext

Best Java code snippets using uk.ac.ebi.intact.core.context.IntactContext.getLifecycleManager (Showing top 4 results out of 315)

origin: uk.ac.ebi.intact.core/intact-core-readonly

public Publication createPublication(String pmid) {
  Publication pub = new Publication(getInstitution(), pmid);
  IntactContext.getCurrentInstance().getLifecycleManager().getStartStatus().create(pub, "Mock builder");
  return pub;
}
origin: uk.ac.ebi.intact.core/intact-core

public Publication createPublication(String pmid) {
  Publication pub = new Publication(getInstitution(), pmid);
  IntactContext.getCurrentInstance().getLifecycleManager().getStartStatus().create(pub, "Mock builder");
  return pub;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

private Publication createPublication(Bibref bibref, DbReference validPrimaryRef) {
  String pubId = validPrimaryRef.getId();
  Publication publication = (Publication) ConversionCache.getElement("pub:"+pubId);
  if (publication != null) {
    return publication;
  }
  publication = new Publication(getInstitution(), pubId);
  IntactConverterUtils.populateXref(bibref.getXref(), publication, this.publicationXrefConverter);
  IntactConverterUtils.populateAnnotations(bibref, publication, getInstitution(), this.annotationConverter);
  IntactContext.getCurrentInstance().getLifecycleManager().getStartStatus().create(publication, "created by xml import");
  ConversionCache.putElement("pub:"+pubId, publication);
  return publication;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

private Publication createUnassignedPublication(Bibref bibRef, Experiment exp) {
  String pubId = PublicationUtils.nextUnassignedId(IntactContext.getCurrentInstance());
  Publication publication = (Publication) ConversionCache.getElement("pub:"+pubId);
  if (publication != null) {
    return publication;
  }
  publication = new Publication(getInstitution(), pubId);
  CvDatabase pubmed = CvObjectUtils.createCvObject(getInstitution(), CvDatabase.class, CvDatabase.PUBMED_MI_REF, CvDatabase.PUBMED);
  CvXrefQualifier primary = CvObjectUtils.createCvObject(getInstitution(), CvXrefQualifier.class, CvXrefQualifier.PRIMARY_REFERENCE_MI_REF, CvXrefQualifier.PRIMARY_REFERENCE);
  // add unassigned as primary ref
  publication.addXref(new PublicationXref(getInstitution(), pubmed, pubId, primary));
  // add unassigned to exeriment
  exp.addXref(new ExperimentXref(getInstitution(), pubmed, pubId, primary));
  if (bibRef != null){
    IntactConverterUtils.populateXref(bibRef.getXref(), publication, this.publicationXrefConverter);
    IntactConverterUtils.populateAnnotations(bibRef, publication, getInstitution(), this.annotationConverter);
  }
  IntactContext.getCurrentInstance().getLifecycleManager().getStartStatus().create(publication, "created by xml import");
  ConversionCache.putElement("pub:"+pubId, publication);
  return publication;
}
uk.ac.ebi.intact.core.contextIntactContextgetLifecycleManager

Javadoc

Gets the lifecycle manager for publications.

Popular methods of IntactContext

  • getCurrentInstance
    Gets the current (ThreadLocal) instance of IntactContext. If no such instance exist, IntAct Core wil
  • getDataContext
  • getInstitution
    Gets the institution from the RuntimeConfig object. In addition, tries to refresh the instance from
  • getDaoFactory
  • getCorePersister
  • currentInstanceExists
    Checks if an instance already exists.
  • getSpringContext
  • getPersisterHelper
  • initContext
    Initializes a standalone context.
  • bindToApplication
  • getApplication
  • getConfig
  • getApplication,
  • getConfig,
  • getConfigurationHandler,
  • getCoreDeleter,
  • getUserContext,
  • initStandaloneContextInMemory,
  • setApplication

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • putExtra (Intent)
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now