Class ContentLabelsProvider

java.lang.Object
com.atlassian.confluence.plugins.graphql.providers.ContentLabelsProvider
All Implemented Interfaces:
com.atlassian.graphql.spi.GraphQLTypeContributor

public class ContentLabelsProvider extends Object implements com.atlassian.graphql.spi.GraphQLTypeContributor
A GraphQL provider for the 'labels' field of the Content entity.
Since:
6.12.0
  • Constructor Details

    • ContentLabelsProvider

      public ContentLabelsProvider(ContentLabelService contentLabelService)
  • Method Details

    • contributeTypeName

      public String contributeTypeName(String typeName, Type type, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
      Specified by:
      contributeTypeName in interface com.atlassian.graphql.spi.GraphQLTypeContributor
    • contributeFields

      public void contributeFields(String typeName, Type type, List<graphql.schema.GraphQLFieldDefinition> fields, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
      Specified by:
      contributeFields in interface com.atlassian.graphql.spi.GraphQLTypeContributor
    • labels

      public PageResponse<Label> labels(List<String> prefixes, int offset, String afterOffset, @DefaultValue("200") int limit, @Context javax.ws.rs.core.UriInfo uriInfo, graphql.schema.DataFetchingEnvironment env) throws ServiceException
      Throws:
      ServiceException