@PublicApi public class BlockedFields extends java.lang.Object implements GraphqlFieldVisibility
Modifier and Type | Class and Description |
---|---|
static class |
BlockedFields.Builder |
Constructor and Description |
---|
BlockedFields(java.util.List<java.util.regex.Pattern> patterns)
Deprecated.
use the
newBlock() builder pattern instead, as this constructor will be made private in a future version. |
Modifier and Type | Method and Description |
---|---|
GraphQLFieldDefinition |
getFieldDefinition(GraphQLFieldsContainer fieldsContainer,
java.lang.String fieldName)
Called to get a named field from an object type or interface
|
GraphQLInputObjectField |
getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer,
java.lang.String fieldName)
Called to get a named field from an input object type
|
java.util.List<GraphQLFieldDefinition> |
getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
Called to get the list of fields from an object type or interface
|
java.util.List<GraphQLInputObjectField> |
getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer)
Called to get the list of fields from an input object type
|
static BlockedFields.Builder |
newBlock() |
@Deprecated public BlockedFields(java.util.List<java.util.regex.Pattern> patterns)
newBlock()
builder pattern instead, as this constructor will be made private in a future version.patterns
- the blocked field patternspublic java.util.List<GraphQLFieldDefinition> getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
GraphqlFieldVisibility
getFieldDefinitions
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playGraphQLFieldDefinition
spublic GraphQLFieldDefinition getFieldDefinition(GraphQLFieldsContainer fieldsContainer, java.lang.String fieldName)
GraphqlFieldVisibility
getFieldDefinition
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playfieldName
- the name of the desired fieldGraphQLFieldDefinition
or null if its not visiblepublic java.util.List<GraphQLInputObjectField> getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer)
GraphqlFieldVisibility
getFieldDefinitions
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playGraphQLInputObjectField
spublic GraphQLInputObjectField getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer, java.lang.String fieldName)
GraphqlFieldVisibility
getFieldDefinition
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playfieldName
- the name of the desired fieldGraphQLInputObjectField
or null if its not visiblepublic static BlockedFields.Builder newBlock()