Tabnine Logo
ReadWriteNodeTypeManager.getRootDefinition
Code IndexAdd Tabnine to your IDE (free)

How to use
getRootDefinition
method
in
org.apache.jackrabbit.oak.plugins.nodetype.write.ReadWriteNodeTypeManager

Best Java code snippets using org.apache.jackrabbit.oak.plugins.nodetype.write.ReadWriteNodeTypeManager.getRootDefinition (Showing top 6 results out of 315)

origin: apache/jackrabbit-oak

  @NotNull
  @Override
  public NodeDefinition perform() throws RepositoryException {
    NodeDelegate parent = node.getParent();
    if (parent == null) {
      return getNodeTypeManager().getRootDefinition();
    } else {
      return getNodeTypeManager().getDefinition(
          parent.getTree(), node.getTree());
    }
  }
});
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

  @Nonnull
  @Override
  public NodeDefinition perform() throws RepositoryException {
    NodeDelegate parent = node.getParent();
    if (parent == null) {
      return getNodeTypeManager().getRootDefinition();
    } else {
      return getNodeTypeManager().getDefinition(
          parent.getTree(), node.getTree());
    }
  }
});
origin: org.apache.jackrabbit/oak-jcr

  @NotNull
  @Override
  public NodeDefinition perform() throws RepositoryException {
    NodeDelegate parent = node.getParent();
    if (parent == null) {
      return getNodeTypeManager().getRootDefinition();
    } else {
      return getNodeTypeManager().getDefinition(
          parent.getTree(), node.getTree());
    }
  }
});
origin: org.apache.jackrabbit/oak-jcr

  @NotNull
  @Override
  public Boolean perform() throws RepositoryException {
    String oakPath = getOakPathOrThrowNotFound(absPath);
    NodeDelegate nodeDelegate = sessionDelegate.getNode(oakPath);
    if (nodeDelegate == null) {
      throw new PathNotFoundException(absPath);
    }
    boolean isCheckedOut = versionManagerDelegate.isCheckedOut(nodeDelegate);
    if (!isCheckedOut) {
      // check OPV
      ReadWriteNodeTypeManager ntMgr = sessionContext.getWorkspace().getNodeTypeManager();
      NodeDelegate parent = nodeDelegate.getParent();
      NodeDefinition definition;
      if (parent == null) {
        definition = ntMgr.getRootDefinition();
      } else {
        definition = ntMgr.getDefinition(parent.getTree(), nodeDelegate.getTree());
      }
      isCheckedOut = definition.getOnParentVersion() == OnParentVersionAction.IGNORE;
    }
    return isCheckedOut;
  }
});
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

  @Nonnull
  @Override
  public Boolean perform() throws RepositoryException {
    String oakPath = getOakPathOrThrowNotFound(absPath);
    NodeDelegate nodeDelegate = sessionDelegate.getNode(oakPath);
    if (nodeDelegate == null) {
      throw new PathNotFoundException(absPath);
    }
    boolean isCheckedOut = versionManagerDelegate.isCheckedOut(nodeDelegate);
    if (!isCheckedOut) {
      // check OPV
      ReadWriteNodeTypeManager ntMgr = sessionContext.getWorkspace().getNodeTypeManager();
      NodeDelegate parent = nodeDelegate.getParent();
      NodeDefinition definition;
      if (parent == null) {
        definition = ntMgr.getRootDefinition();
      } else {
        definition = ntMgr.getDefinition(parent.getTree(), nodeDelegate.getTree());
      }
      isCheckedOut = definition.getOnParentVersion() == OnParentVersionAction.IGNORE;
    }
    return isCheckedOut;
  }
});
origin: apache/jackrabbit-oak

  @NotNull
  @Override
  public Boolean perform() throws RepositoryException {
    String oakPath = getOakPathOrThrowNotFound(absPath);
    NodeDelegate nodeDelegate = sessionDelegate.getNode(oakPath);
    if (nodeDelegate == null) {
      throw new PathNotFoundException(absPath);
    }
    boolean isCheckedOut = versionManagerDelegate.isCheckedOut(nodeDelegate);
    if (!isCheckedOut) {
      // check OPV
      ReadWriteNodeTypeManager ntMgr = sessionContext.getWorkspace().getNodeTypeManager();
      NodeDelegate parent = nodeDelegate.getParent();
      NodeDefinition definition;
      if (parent == null) {
        definition = ntMgr.getRootDefinition();
      } else {
        definition = ntMgr.getDefinition(parent.getTree(), nodeDelegate.getTree());
      }
      isCheckedOut = definition.getOnParentVersion() == OnParentVersionAction.IGNORE;
    }
    return isCheckedOut;
  }
});
org.apache.jackrabbit.oak.plugins.nodetype.writeReadWriteNodeTypeManagergetRootDefinition

Popular methods of ReadWriteNodeTypeManager

  • getNodeType
  • createNodeTypeTemplate
  • getDefinition
  • getEffectiveNodeType
  • getNamePathMapper
  • getOakName
  • getOrCreateNodeTypes
  • getWriteRoot
    Called by the methods #registerNodeType(NodeTypeDefinition,boolean), #registerNodeTypes(NodeTypeDefi
  • isNodeType
  • refresh
    Called by the ReadWriteNodeTypeManager implementation methods to refresh the state of the session as
  • registerNodeType
  • registerNodeTypes
  • registerNodeType,
  • registerNodeTypes,
  • createNodeDefinitionTemplate,
  • hasNodeType

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
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