Tabnine Logo
ScalarModelWithMultiPending.setMultiPending
Code IndexAdd Tabnine to your IDE (free)

How to use
setMultiPending
method
in
org.apache.isis.viewer.wicket.model.models.ScalarModelWithMultiPending

Best Java code snippets using org.apache.isis.viewer.wicket.model.models.ScalarModelWithMultiPending.setMultiPending (Showing top 2 results out of 315)

origin: org.apache.isis.viewer/isis-viewer-wicket-model

  @Override
  public void setObject(final ArrayList<ObjectAdapterMemento> adapterMemento) {
    if (LOG.isDebugEnabled()) {
      LOG.debug(String.format("setting to: %s", adapterMemento != null ? adapterMemento.toString() : null));
    }
    owner.setMultiPending(adapterMemento);
    final ScalarModel ownerScalarModel = owner.getScalarModel();
    final PersistenceSession persistenceSession = ownerScalarModel.getPersistenceSession();
    final SpecificationLoader specificationLoader = ownerScalarModel.getSpecificationLoader();
    if(adapterMemento == null) {
      ownerScalarModel.setObject(null);
    } else {
      final ArrayList<ObjectAdapterMemento> ownerPending = owner.getMultiPending();
      if (ownerPending != null) {
        if (LOG.isDebugEnabled()) {
          LOG.debug(String.format("setting to pending: %s", ownerPending.toString()));
        }
        final ObjectSpecId objectSpecId = ownerScalarModel.getTypeOfSpecification().getSpecId();
        ownerScalarModel.setObjectMemento(
            ObjectAdapterMemento.createForList(adapterMemento, objectSpecId),
            persistenceSession, specificationLoader);
      }
    }
  }
};
origin: org.apache.isis.core/isis-core-viewer-wicket-model

  @Override
  public void setObject(final ArrayList<ObjectAdapterMemento> adapterMemento) {
    LOG.debug("setting to: {}", (adapterMemento != null ? adapterMemento.toString() : null));
    owner.setMultiPending(adapterMemento);
    final ScalarModel ownerScalarModel = owner.getScalarModel();
    final PersistenceSession persistenceSession = ownerScalarModel.getPersistenceSession();
    final SpecificationLoader specificationLoader = ownerScalarModel.getSpecificationLoader();
    if(adapterMemento == null) {
      ownerScalarModel.setObject(null);
    } else {
      final ArrayList<ObjectAdapterMemento> ownerPending = owner.getMultiPending();
      if (ownerPending != null) {
        LOG.debug("setting to pending: {}", ownerPending.toString());
        final ObjectSpecId objectSpecId = ownerScalarModel.getTypeOfSpecification().getSpecId();
        ownerScalarModel.setObjectMemento(
            ObjectAdapterMemento.createForList(adapterMemento, objectSpecId),
            persistenceSession, specificationLoader);
      }
    }
  }
};
org.apache.isis.viewer.wicket.model.modelsScalarModelWithMultiPendingsetMultiPending

Popular methods of ScalarModelWithMultiPending

  • getMultiPending
  • getScalarModel

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Path (java.nio.file)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Github Copilot alternatives
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