Interface JackrabbitNodeTypeManager

  • All Superinterfaces:
    javax.jcr.nodetype.NodeTypeManager

    public interface JackrabbitNodeTypeManager
    extends javax.jcr.nodetype.NodeTypeManager
    Deprecated.
    Use standard JCR 2.0 API methods defined by NodeTypeManager instead.
    The Jackrabbit node type manager interface. This interface contains the Jackrabbit-specific extensions to the JCR NodeTypeManager interface.

    Currently Jackrabbit provides a mechanism to register new node types, but it is not possible to modify or remove existing node types.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TEXT_X_JCR_CND
      Deprecated.
      The experimental content type for the compact node type definition files.
      static java.lang.String TEXT_XML
      Deprecated.
      The standard XML content type to be used with XML-formatted node type streams.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean hasNodeType​(java.lang.String name)
      Deprecated.
      Checks if a node type with the given name is registered.
      javax.jcr.nodetype.NodeType[] registerNodeTypes​(java.io.InputStream in, java.lang.String contentType)
      Deprecated.
      Registers node types from the given input stream of the given type.
      javax.jcr.nodetype.NodeType[] registerNodeTypes​(org.xml.sax.InputSource in)
      Deprecated.
      Registers node types from the given node type XML stream.
      • Methods inherited from interface javax.jcr.nodetype.NodeTypeManager

        createNodeDefinitionTemplate, createNodeTypeTemplate, createNodeTypeTemplate, createPropertyDefinitionTemplate, getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes, registerNodeType, registerNodeTypes, unregisterNodeType, unregisterNodeTypes
    • Field Detail

      • TEXT_XML

        static final java.lang.String TEXT_XML
        Deprecated.
        The standard XML content type to be used with XML-formatted node type streams.
        See Also:
        Constant Field Values
      • TEXT_X_JCR_CND

        static final java.lang.String TEXT_X_JCR_CND
        Deprecated.
        The experimental content type for the compact node type definition files.
        See Also:
        Constant Field Values
    • Method Detail

      • registerNodeTypes

        javax.jcr.nodetype.NodeType[] registerNodeTypes​(org.xml.sax.InputSource in)
                                                 throws org.xml.sax.SAXException,
                                                        javax.jcr.RepositoryException
        Deprecated.
        Registers node types from the given node type XML stream.
        Parameters:
        in - node type XML stream
        Returns:
        registered node types
        Throws:
        org.xml.sax.SAXException - if the XML stream could not be read or parsed
        javax.jcr.RepositoryException - if the node types are invalid or another repository error occurs
      • registerNodeTypes

        javax.jcr.nodetype.NodeType[] registerNodeTypes​(java.io.InputStream in,
                                                        java.lang.String contentType)
                                                 throws java.io.IOException,
                                                        javax.jcr.RepositoryException
        Deprecated.
        Registers node types from the given input stream of the given type.
        Parameters:
        in - node type stream
        contentType - type of the input stream
        Returns:
        registered node types
        Throws:
        java.io.IOException - if the input stream could not be read or parsed
        javax.jcr.RepositoryException - if the node types are invalid or another repository error occurs
      • hasNodeType

        boolean hasNodeType​(java.lang.String name)
                     throws javax.jcr.RepositoryException
        Deprecated.
        Checks if a node type with the given name is registered.
        Specified by:
        hasNodeType in interface javax.jcr.nodetype.NodeTypeManager
        Parameters:
        name - node type name
        Returns:
        true if the named node type is registered false otherwise
        Throws:
        javax.jcr.RepositoryException - if an error occurs