Class CheckboxGroupFieldFactory
- java.lang.Object
-
- org.craftercms.engine.graphql.impl.field.CheckboxGroupFieldFactory
-
- All Implemented Interfaces:
GraphQLFieldFactory
public class CheckboxGroupFieldFactory extends Object implements GraphQLFieldFactory
Implementation ofGraphQLFieldFactory
that handles checkbox-group fields- Since:
- 3.1
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected String
datasourceNameXPath
protected String
datasourceSettingsXPathFormat
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description CheckboxGroupFieldFactory()
-
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
setDatasourceNameXPath(String datasourceNameXPath)
void
setDatasourceSettingsXPathFormat(String datasourceSettingsXPathFormat)
-
-
-
Method Detail
-
setDatasourceNameXPath
public void setDatasourceNameXPath(String datasourceNameXPath)
-
setDatasourceSettingsXPathFormat
public void setDatasourceSettingsXPathFormat(String datasourceSettingsXPathFormat)
-
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
-
-