Class RTEFieldFactory
- java.lang.Object
-
- org.craftercms.engine.graphql.impl.field.RTEFieldFactory
-
- All Implemented Interfaces:
GraphQLFieldFactory
public class RTEFieldFactory extends Object implements GraphQLFieldFactory
Implementation ofGraphQLFieldFactory
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
titleXPath
-
Constructor Summary
Constructors Constructor Description RTEFieldFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 aGraphQLObjectType
void
setTitleXPath(String titleXPath)
-
-
-
Field Detail
-
titleXPath
protected String titleXPath
-
-
Method Detail
-
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 aGraphQLObjectType
- Specified by:
createField
in interfaceGraphQLFieldFactory
- Parameters:
contentTypeDefinition
- the XML document with the content type definitioncontentTypeField
- the XML node with the content-type fieldcontentTypeFieldId
- the content-type field IDparentGraphQLTypeName
- the field's parent GraphQL type nameparentGraphQLType
- the field's parentGraphQLObjectType
graphQLFieldName
- the field's GraphQL-friendly namegraphQLField
- the field'sGraphQLFieldDefinition
-
-