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

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

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

origin: org.apache.jackrabbit/oak-jcr

private int getOPV(Tree nodeTree, PropertyState property)
    throws RepositoryException {
  return getNodeTypeManager().getDefinition(nodeTree,
      property, false).getOnParentVersion();
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

private int getOPV(Tree nodeTree, PropertyState property)
    throws RepositoryException {
  return getNodeTypeManager().getDefinition(nodeTree,
      property, false).getOnParentVersion();
}
origin: apache/jackrabbit-oak

private int getOPV(Tree nodeTree, PropertyState property)
    throws RepositoryException {
  return getNodeTypeManager().getDefinition(nodeTree,
      property, false).getOnParentVersion();
}
origin: org.apache.jackrabbit/oak-jcr

  @NotNull
  @Override
  public PropertyDefinition perform() throws RepositoryException {
    return getNodeTypeManager().getDefinition(
        property.getParent().getTree(),
        property.getPropertyState(), true);
  }
});
origin: apache/jackrabbit-oak

  @NotNull
  @Override
  public PropertyDefinition perform() throws RepositoryException {
    return getNodeTypeManager().getDefinition(
        property.getParent().getTree(),
        property.getPropertyState(), true);
  }
});
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

  @Nonnull
  @Override
  public PropertyDefinition perform() throws RepositoryException {
    return getNodeTypeManager().getDefinition(
        property.getParent().getTree(),
        property.getPropertyState(), true);
  }
});
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.writeReadWriteNodeTypeManagergetDefinition

Popular methods of ReadWriteNodeTypeManager

  • getNodeType
  • createNodeTypeTemplate
  • getEffectiveNodeType
  • getNamePathMapper
  • getOakName
  • getOrCreateNodeTypes
  • getRootDefinition
  • 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 post requests using okhttp
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JComboBox (javax.swing)
  • 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