Modifier and Type | Method and Description |
---|---|
void |
WWClient.authenticate()
Attempt authentication of the WWClient
|
Conversation |
WWClient.getConversationById(String conversationId)
Easy helper method to get a Conversation and its details by a conversation id
|
Conversation |
WWClient.getConversationWithQuery(ConversationGraphQLQuery query)
Easy helper method to get a Conversation and its details with a query
|
Person |
WWClient.getMe()
Easy helper method to get My Person object.
|
Message |
WWClient.getMessageById(String messageId)
Easy helper method to get a Message and its details by id
|
Message |
WWClient.getMessageWithQuery(MessageGraphQLQuery query)
Easy helper method to get a Message and its details with a query
|
List<Person> |
WWClient.getPeople(List<String> ids)
Easy helper method to get Person objects with ids
|
List<Person> |
WWClient.getPeopleByName(String name)
Easy helper method to get Person objects with part of a name
|
List<Person> |
WWClient.getPeopleWithQuery(PeopleGraphQLQuery query)
Easy helper method to get Person objects with a query
|
Person |
WWClient.getPersonByEmail(String personEmail)
Easy helper method to get a Person with a person email.
|
Person |
WWClient.getPersonById(String personId)
Easy helper method to get a Person with a person id.
|
Person |
WWClient.getPersonWithQuery(PersonGraphQLQuery query)
Easy helper method to get a Person with a query
|
Space |
WWClient.getSpaceById(String spaceId)
Easy helper method to get a Space by a Space id
|
List<Person> |
WWClient.getSpaceMembersById(String spaceId)
Easy helper method to get members for a space with the space id
|
List<Person> |
WWClient.getSpaceMembersWithQuery(SpaceMembersGraphQLQuery query)
Easy helper method to get members of space with a query
|
List<? extends Space> |
WWClient.getSpaces()
Easy helper method to get spaces from the WWClient
|
List<? extends Space> |
WWClient.getSpacesWithQuery(SpacesGraphQLQuery query)
Easy helper method to get Spaces with a query
|
Space |
WWClient.getSpaceWithQuery(SpaceGraphQLQuery query)
Easy helper method to get a Space by using a SpaceGraphQLQuery
|
MessageResponse |
WWClient.postMessageToSpace(AppMessage message,
String spaceId)
Easy helper method to post a Application Message to a Space
|
Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
AuthenticationEndpoint.authenticateApplication(String basicAuthApp)
Creates POST request for authentication and returns result, if successful, or generates error, if not
|
AuthenticationResult |
AuthenticationEndpoint.authorizeUser(String basicAuthApp,
String userToken,
String redirectTo)
Creates POST request for authorizing user and returns result, if successful, or generates error, if not
|
Modifier and Type | Method and Description |
---|---|
ObjectDataSenderBuilder |
ObjectDataSenderBuilder.addAttribute(WWFieldsAttributesInterface enumName,
Object value)
Add an attribute by which to filter the request
|
ObjectDataSenderBuilder |
IGraphQLQuery.addAttribute(WWFieldsAttributesInterface enumName,
Object value)
Helper method, to give easy access to
ObjectDataSenderBuilder.addAttribute(WWFieldsAttributesInterface, Object) |
ObjectDataSenderBuilder |
BaseGraphQLQuery.addAttribute(WWFieldsAttributesInterface enumName,
Object value) |
static MessageGraphQLQuery |
MessageGraphQLQuery.buildMessageGraphQueryWithMessageId(String messageId)
East method to create a basic Message query ObjectDataSenderBuilder for the relevant Message, filtered on id
|
static PersonGraphQLQuery |
PersonGraphQLQuery.buildPersonQueryByEmail(String email)
East method to create a basic Person query ObjectDataSenderBuilder for the relevant Person filtered on email
|
static PeopleGraphQLQuery |
PeopleGraphQLQuery.buildPersonQueryById(List<String> personId)
Builds a People query based on a List of IDs of person entries
|
static PersonGraphQLQuery |
PersonGraphQLQuery.buildPersonQueryById(String personId)
East method to create a basic Person query ObjectDataSenderBuilder for the relevant Person, filtered on id
|
static PeopleGraphQLQuery |
PeopleGraphQLQuery.buildPersonQueryByName(String personName)
Builds a People query based on a word in a person's name
|
static SpaceGraphQLQuery |
SpaceGraphQLQuery.buildSpaceGraphQueryWithSpaceId(String spaceId)
East method to create a basic Space query ObjectDataSenderBuilder for the relevant Space, filtered on id
|
static SpaceMembersGraphQLQuery |
SpaceMembersGraphQLQuery.buildSpaceMemberGraphQueryBySpaceId(String spaceId)
Easy method to create a basic Conversation query ObjectDataSenderBuilder for a relevant conversation ID
|
static ConversationGraphQLQuery |
ConversationGraphQLQuery.buildStandardConversationQueryById(String conversationId)
Easy method to create a basic Conversation query ObjectDataSenderBuilder for a relevant conversation ID
|
static SpacesGraphQLQuery |
SpacesGraphQLQuery.buildStandardGetSpacesQuery()
Easy method to create a basic Spaces query ObjectDataSenderBuilder
|
Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
WWAuthenticationEndpoint.authenticateApplication(String basicAuth) |
AuthenticationResult |
WWAuthenticationEndpoint.authorizeUser(String basicAuthApp,
String userToken,
String url) |
void |
IWWGraphQLEndpoint.executeRequest()
Runs the main code to execute the GraphQL request on Watson Work Services.
|
void |
AbstractWWGraphQLEndpoint.executeRequest() |
Conversation |
WWGraphQLEndpoint.getConversation(String conversationId)
Get basic data Conversation object for relevant Conversation
|
Conversation |
WWGraphQLEndpoint.getConversationWithQuery(ConversationGraphQLQuery query)
Get Conversation object with query
|
Person |
WWGraphQLEndpoint.getMe()
Simplified access method, to load GraphQL query for getting Me object
|
Message |
WWGraphQLEndpoint.getMessageById(String messageId)
Get a Message by using a messageId
|
Message |
WWGraphQLEndpoint.getMessageWithQuery(MessageGraphQLQuery query)
Get a Message by using a messageId
|
List<Person> |
WWGraphQLEndpoint.getPeople(List<String> ids)
Gets People matching the passed ids
|
List<Person> |
WWGraphQLEndpoint.getPeopleByName(String name)
Gets People matching the single word name passed.
|
List<Person> |
WWGraphQLEndpoint.getPeopleWithQuery(PeopleGraphQLQuery query)
Get People with query
|
Person |
WWGraphQLEndpoint.getPersonByEmail(String personEmail)
Simplified access method, to load GraphQL query for getting Person by email or "me" if personId is blank
|
Person |
WWGraphQLEndpoint.getPersonById(String personId)
Simplified access method, to load GraphQL query for getting Person by ID or "me" if personId is blank
|
Person |
WWGraphQLEndpoint.getPersonWithQuery(PersonGraphQLQuery query)
Get Person Object with GraphQL Query
|
Space |
WWGraphQLEndpoint.getSpaceById(String spaceId)
Get a Space by using a spaceId
|
List<Person> |
WWGraphQLEndpoint.getSpaceMembers(String spaceId)
Get basic data for Space Members for relevant Sapce
|
List<Person> |
WWGraphQLEndpoint.getSpaceMembersWithQuery(SpaceMembersGraphQLQuery query)
Get Space Members with query
|
List<? extends Space> |
WWGraphQLEndpoint.getSpaces()
Simplified access method, to load GraphQL query for getting spaces, execute the request, and parse the results
|
List<? extends Space> |
WWGraphQLEndpoint.getSpacesWithQuery(SpacesGraphQLQuery query)
getSpaces by using a SpacesGraphQLQuery
|
Space |
WWGraphQLEndpoint.getSpaceWithQuery(SpaceGraphQLQuery query)
getSpace by using a SpaceGraphQLQuery
|
Object |
IWWGraphQLEndpoint.parseResultContainer()
Parses the ResultContainer to return the relevant Java object of results.
|
Object |
AbstractWWGraphQLEndpoint.parseResultContainer() |
MessageResponse |
MessagePostEndpoint.postMessage(AppMessage message,
String spaceId)
String posts the passed message to the passed Space
|
Modifier and Type | Method and Description |
---|---|
ConversationWrapper |
DataContainer.getConversation() |
DataContainer |
GraphResultContainer.getData() |
Person |
DataContainer.getMe() |
Message |
DataContainer.getMessage() |
MembersContainer |
DataContainer.getPeople() |
Person |
DataContainer.getPerson() |
SpaceWrapper |
DataContainer.getSpace() |
SpacesContainer |
DataContainer.getSpaces() |
Constructor and Description |
---|
GraphQLRequest(IGraphQLQuery queryObject)
Initialises the GraphQLRequest object from a BaseGraphQLQuery object.
|
GraphQLRequest(IGraphQLQuery queryObject,
HashMap<String,String> variables)
Initialises the GraphQLRequest object from a BaseGraphQLQuery object.
|
GraphQLRequest(ObjectDataSenderBuilder queryObject,
HashMap<String,String> variables,
String operationName)
Initialises the GraphQLRequest from an ObjectDataBringer, operation name and variables.
|
GraphQLRequest(ObjectDataSenderBuilder queryObject,
String operationName)
Initialises the GraphQLRequest from an ObjectDataBringer and operation name.
|
Copyright © 2017 OpenNTF. All rights reserved.