Class LikesProvider
- java.lang.Object
-
- com.atlassian.confluence.plugins.like.graphql.LikesProvider
-
- All Implemented Interfaces:
com.atlassian.graphql.spi.GraphQLTypeContributor
public class LikesProvider extends Object implements com.atlassian.graphql.spi.GraphQLTypeContributor
A GraphQL provider for the 'likes' field of the Content entity.- Since:
- 6.12.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LikesProvider.LikesResponse
-
Constructor Summary
Constructors Constructor Description LikesProvider(LikeManager likeManager, PersonService personService, UserAccessor userAccessor, NetworkService networkService, ContentEntityManager contentEntityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contributeFields(String typeName, Type type, List<graphql.schema.GraphQLFieldDefinition> fields, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
String
contributeTypeName(String typeName, Type type, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
LikesProvider.LikesResponse
likes(graphql.schema.DataFetchingEnvironment env)
-
-
-
Constructor Detail
-
LikesProvider
public LikesProvider(LikeManager likeManager, PersonService personService, UserAccessor userAccessor, NetworkService networkService, ContentEntityManager contentEntityManager)
-
-
Method Detail
-
contributeTypeName
public String contributeTypeName(String typeName, Type type, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
- Specified by:
contributeTypeName
in interfacecom.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 interfacecom.atlassian.graphql.spi.GraphQLTypeContributor
-
likes
public LikesProvider.LikesResponse likes(graphql.schema.DataFetchingEnvironment env)
-
-