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

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

Best Java code snippets using uk.ac.ebi.intact.core.persister.IntactCore.ensureInitializedPreferences (Showing top 2 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

public User cloneUser(User user) throws IntactClonerException {
  if (user == null) {
    throw new IllegalArgumentException("You must give a non null user");
  }
  User clone = new User();
  clone.setEmail(user.getEmail());
  clone.setFirstName(user.getFirstName());
  clone.setLastName(user.getLastName());
  clone.setDisabled(user.isDisabled());
  clone.setLastLogin(user.getLastLogin());
  clone.setLogin(user.getLogin());
  clone.setOpenIdUrl(user.getOpenIdUrl());
  clone.setPassword(user.getPassword());
  if (isCollectionClonable(user.getPreferences())) {
     Collection<Preference> preferences = IntactCore.ensureInitializedPreferences(user);
    for (Preference preference : preferences) {
      clone.addPreference(clone(preference));
    }
  }
  if (isCollectionClonable(user.getRoles())) {
    Collection<Role> roles = IntactCore.ensureInitializedRoles(user);
    for (Role role : roles) {
      clone.addRole(clone(role));
    }
  }
  return clone;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public User cloneUser(User user) throws IntactClonerException {
  if (user == null) {
    throw new IllegalArgumentException("You must give a non null user");
  }
  User clone = new User();
  clone.setEmail(user.getEmail());
  clone.setFirstName(user.getFirstName());
  clone.setLastName(user.getLastName());
  clone.setDisabled(user.isDisabled());
  clone.setLastLogin(user.getLastLogin());
  clone.setLogin(user.getLogin());
  clone.setOpenIdUrl(user.getOpenIdUrl());
  clone.setPassword(user.getPassword());
  if (isCollectionClonable(user.getPreferences())) {
     Collection<Preference> preferences = IntactCore.ensureInitializedPreferences(user);
    for (Preference preference : preferences) {
      clone.addPreference(clone(preference));
    }
  }
  if (isCollectionClonable(user.getRoles())) {
    Collection<Role> roles = IntactCore.ensureInitializedRoles(user);
    for (Role role : roles) {
      clone.addRole(clone(role));
    }
  }
  return clone;
}
uk.ac.ebi.intact.core.persisterIntactCoreensureInitializedPreferences

Javadoc

Ensures that the preferences 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,
  • ensureInitializedLifecycleEvents,
  • ensureInitializedRoles,
  • initialize,
  • initializeAnnotatedObject

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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