Class RTEFieldFactory

java.lang.Object
org.craftercms.engine.graphql.impl.field.RTEFieldFactory
All Implemented Interfaces:
GraphQLFieldFactory

public class RTEFieldFactory extends Object implements GraphQLFieldFactory
Implementation of GraphQLFieldFactory that handles RTE fields. It adds the copy field with the original HTML markup without any filter to prevent queries to it
Since:
3.1
Author:
joseross
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createField(org.dom4j.Document contentTypeDefinition, org.dom4j.Node contentTypeField, String contentTypeFieldId, String parentGraphQLTypeName, graphql.schema.GraphQLObjectType.Builder parentGraphQLType, String graphQLFieldName, graphql.schema.GraphQLFieldDefinition.Builder graphQLField)
    Adds all the required objects for a content-type field to a GraphQLObjectType
    void
    setTitleXPath(String titleXPath)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • titleXPath

      protected String titleXPath
  • Constructor Details

    • RTEFieldFactory

      public RTEFieldFactory()
  • Method Details

    • setTitleXPath

      public void setTitleXPath(String titleXPath)
    • createField

      public void createField(org.dom4j.Document contentTypeDefinition, org.dom4j.Node contentTypeField, String contentTypeFieldId, String parentGraphQLTypeName, graphql.schema.GraphQLObjectType.Builder parentGraphQLType, String graphQLFieldName, graphql.schema.GraphQLFieldDefinition.Builder graphQLField)
      Adds all the required objects for a content-type field to a GraphQLObjectType
      Specified by:
      createField in interface GraphQLFieldFactory
      Parameters:
      contentTypeDefinition - the XML document with the content type definition
      contentTypeField - the XML node with the content-type field
      contentTypeFieldId - the content-type field ID
      parentGraphQLTypeName - the field's parent GraphQL type name
      parentGraphQLType - the field's parent GraphQLObjectType
      graphQLFieldName - the field's GraphQL-friendly name
      graphQLField - the field's GraphQLFieldDefinition