Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
WWClient.addSpaceMembers(String id,
List<SpaceMembersAddDataSenderBuilder.SpaceMemberObject> members)
Easy helper method for adding Space members returning List of member IDs updated
|
void |
WWClient.authenticate() |
void |
IWWClient.authenticate()
Attempt authentication of the WWClient
|
Space |
WWClient.createSpace(String title)
Easy helper method to create a Space with a title
|
Space |
WWClient.createSpace(String title,
List<String> members)
Easy helper method to create a Space with a title and list of Members
|
Space |
WWClient.createSpaceWithQuery(SpaceCreateGraphQLMutation mutationObject)
Easy helper method to create a Space with a SpaceCreateGraphQLMutation object
|
boolean |
WWClient.deleteSpace(String id)
Easy helper method to delete a Space
|
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
|
ConversationWrapper |
WWClient.getConversationWrapperWithQuery(ConversationGraphQLQuery query)
Easy helper method to get a ConversationWrapper and its details with a query, including access to PageInfo object
|
GraphResultContainer |
WWClient.getCustomQuery(BaseGraphQLQuery query)
Perform a custom GraphQL query returning customised content for one or more fields.
|
Person |
WWClient.getMe()
Easy helper method to get My Person object.
|
List<Mentioned> |
WWClient.getMentioned()
Easy helper method to get first 10 mentions for current user
|
MentionedContainer |
WWClient.getMentionedContainerWithQuery(MentionedGraphQLQuery query)
Easy helper method to get mentions and PageInfo object for current user
|
List<Mentioned> |
WWClient.getMentionedWithQuery(MentionedGraphQLQuery query)
Easy helper method to get mentions for current user
|
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
|
MembersContainer |
WWClient.getPeopleContainerWithQuery(PeopleGraphQLQuery query)
Easy helper method to get Person objects with a query
|
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
|
SpacesContainer |
WWClient.getSpacesContainerWithQuery(SpacesGraphQLQuery query)
Easy helper method to get SpacesContainer with a query
|
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
|
FileResponse |
WWClient.postFileToSpace(File file,
String spaceId)
Post a file to Watson Workspace
|
FileResponse |
WWClient.postFileToSpace(File file,
String spaceId,
String imageSize)
Post an image file to Watson Workspace
|
MessageResponse |
WWClient.postMessageToSpace(AppMessage message,
String spaceId)
Easy helper method to post a Application Message to a Space
|
PhotoResponse |
WWClient.postPhoto(File photo) |
List<Focus> |
WWClient.postTextForFocusAnalysis(String text)
Post text for Watson Workspace to analyse for Focuses
|
ArrayList<String> |
WWClient.removeSpaceMembers(String id,
List<String> members)
Easy helper method for removing Space members returning List of member IDs updated
|
ArrayList<String> |
WWClient.updateSpaceMembers(String id,
List<String> members,
SpaceUpdateGraphQLMutation.UpdateSpaceMemberOperation addOrRemove)
Easy helper method for updating a Space members returning List of member IDs updated
|
UpdateSpaceContainer |
WWClient.updateSpaceMembersAndTitle(String id,
String title,
List<String> members,
SpaceUpdateGraphQLMutation.UpdateSpaceMemberOperation addOrRemove)
Easy helper method for updating a Space members and title, returning UpdateSpaceContainer with array of member
IDs updated and Space object with updated title
|
Space |
WWClient.updateSpaceTitle(String id,
String newTitle)
Easy helper method for updating a Space Title returning Space object with updated Title
|
UpdateSpaceContainer |
WWClient.updateSpaceWithMutation(SpaceUpdateGraphQLMutation mutationObject)
Easy helper method for updating a Space Title / members / both returning an UpdateSpaceContainer with updated
Space details / updated members / both
|
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
|
PeopleToken |
AuthenticationEndpoint.authorizeUserGetToken(String basicAuthApp,
String userToken,
String redirectTo)
Creates POST request for authorizing user and returns result, if successful, or generates error, if not
|
AuthenticationResult |
AuthenticationEndpoint.authorizeUserRefreshToken(String basicAuthApp,
String refreshToken,
String scope) |
PeopleToken |
AuthenticationEndpoint.authorizeUserRefreshTokenGetToken(String basicAuthApp,
String refreshToken,
String scope) |
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) |
ObjectDataSenderBuilder |
BaseGraphQLMultiQuery.addAttribute(WWFieldsAttributesInterface enumName,
Object value) |
InputDataSenderBuilder |
InputDataSenderBuilder.addField(WWFieldsAttributesInterface enumName,
Object value)
Adds a field and its value to set via the mutation
|
InputDataSenderBuilder |
IGraphQLMutation.addInputField(WWFieldsAttributesInterface enumName,
Object value)
Helper method, to give easy access to
InputDataSenderBuilder.addField(WWFieldsAttributesInterface, Object) |
InputDataSenderBuilder |
BaseGraphQLMutation.addInputField(WWFieldsAttributesInterface field,
Object value) |
static SpaceMembersAddGraphQLMutation |
SpaceMembersAddGraphQLMutation.buildAddSpaceMembersMutationChange(String spaceId,
List<SpaceMembersAddDataSenderBuilder.SpaceMemberObject> members)
Easy method to create a removeSpaceMembers mutation ObjectDataSenderBuilder and return members updated
|
static SpaceCreateGraphQLMutation |
SpaceCreateGraphQLMutation.buildCreateSpaceMutationWithSpaceTitle(String title)
Easy method to create a basic CreateSpace mutation ObjectDataSenderBuilder for a relevant Space title
|
static SpaceCreateGraphQLMutation |
SpaceCreateGraphQLMutation.buildCreateSpaceMutationWithSpaceTitleAndMembers(String title,
List<String> members)
Easy method to create a basic CreateSpace mutation ObjectDataSenderBuilder for a relevant Space title and list of members
|
static SpaceDeleteGraphQLMutation |
SpaceDeleteGraphQLMutation.buildDeleteSpaceMutation(String id)
Easy method to delete a space for a given ID.
|
static MentionedGraphQLQuery |
MentionedGraphQLQuery.buildFullMentionedGraphQuery()
East method to create a full Mentioned query ObjectDataSenderBuilder for the first 10 mentions for the current
user
|
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 SpaceMembersRemoveGraphQLMutation |
SpaceMembersRemoveGraphQLMutation.buildRemoveSpaceMembersMutationChange(String spaceId,
List<String> members)
Easy method to create a removeSpaceMembers mutation ObjectDataSenderBuilder and return members updated
|
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
|
static SpaceUpdateGraphQLMutation |
SpaceUpdateGraphQLMutation.buildUpdateSpaceMutationChangeMembers(String id,
List<String> members,
SpaceUpdateGraphQLMutation.UpdateSpaceMemberOperation addOrRemove)
Easy method to create a basic CreateSpace mutation ObjectDataSenderBuilder for a list of members
|
static SpaceUpdateGraphQLMutation |
SpaceUpdateGraphQLMutation.buildUpdateSpaceMutationChangeTitle(String id,
String title)
Easy method to creaate a basic UpdateSpace mutation ObjectDataSenderBuilder for a new Space title
|
static SpaceUpdateGraphQLMutation |
SpaceUpdateGraphQLMutation.buildUpdateSpaceMutationChangeTitleAndMembers(String id,
String title,
List<String> members,
SpaceUpdateGraphQLMutation.UpdateSpaceMemberOperation addOrRemove)
Easy method to create a basic CreateSpace mutation ObjectDataSenderBuilder for a new Space title and list of members
|
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
WWGraphQLEndpoint.addSpaceMembers(String id,
List<SpaceMembersAddDataSenderBuilder.SpaceMemberObject> members)
Add members to a Space, returning List of members updated
|
AuthenticationResult |
WWAuthenticationEndpoint.authenticateApplication(String basicAuthApp) |
AuthenticationResult |
WWAuthenticationEndpoint.authorizeUser(String basicAuthApp,
String userToken,
String url) |
PeopleToken |
WWAuthenticationEndpoint.authorizeUserGetToken(String basicAuthApp,
String userToken,
String url) |
AuthenticationResult |
WWAuthenticationEndpoint.authorizeUserRefreshToken(String basicAuthApp,
String refreshToken,
String scope) |
PeopleToken |
WWAuthenticationEndpoint.authorizeUserRefreshTokenGetToken(String basicAuthApp,
String refreshToken,
String scope) |
Space |
WWGraphQLEndpoint.createSpace(String title,
List<String> members)
Create a space with a title and list of members
|
Space |
WWGraphQLEndpoint.createSpaceWithMutation(SpaceCreateGraphQLMutation mutationObject)
Create a space with a SpaceCreateGraphQLMutation object
|
boolean |
WWGraphQLEndpoint.deleteSpace(String id)
Delete a space for a given ID
|
void |
IWWGraphQLEndpoint.executeRequest()
Runs the main code to execute the GraphQL request on Watson Work Services.
|
void |
AbstractWWGraphQLEndpoint.executeRequest() |
Map<String,Object> |
AbstractWWGraphQLEndpoint.getAliasedChildren() |
Conversation |
WWGraphQLEndpoint.getConversation(String conversationId)
Get basic data Conversation object for relevant Conversation
|
Conversation |
WWGraphQLEndpoint.getConversationWithQuery(ConversationGraphQLQuery query)
Get Conversation object with query
|
ConversationWrapper |
WWGraphQLEndpoint.getConversationWrapperWithQuery(ConversationGraphQLQuery query)
Get ConversationWrapper object with query.
|
Person |
WWGraphQLEndpoint.getMe()
Simplified access method, to load GraphQL query for getting Me object
|
List<Mentioned> |
WWGraphQLEndpoint.getMentioned()
Get Mentioned query with first 10 mentions.
|
List<Mentioned> |
WWGraphQLEndpoint.getMentioned(MentionedGraphQLQuery query)
Get Mentioned query with passed query.
|
MentionedContainer |
WWGraphQLEndpoint.getMentionedContainerWithQuery(MentionedGraphQLQuery query) |
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.
|
MembersContainer |
WWGraphQLEndpoint.getPeopleContainerWithQuery(PeopleGraphQLQuery query) |
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.
|
SpacesContainer |
WWGraphQLEndpoint.getSpacesContainerWithQuery(SpacesGraphQLQuery query)
Get the SpacesContainer, including PageInfo object
|
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() |
FileResponse |
FilePostToSpaceEndpoint.postfile(File file,
String spaceId,
String imageSize)
Post a file to Watson Workspace
|
MessageResponse |
MessagePostEndpoint.postMessage(AppMessage message,
String spaceId)
Posts the passed message to the passed Space
|
List<Focus> |
FocusPostEndpoint.postMessage(String text)
Posts the passed text for analysis of focuses
|
PhotoResponse |
PhotoPostEndpoint.postPhoto(File photo)
Posts a new photo for a user
|
ArrayList<String> |
WWGraphQLEndpoint.removeSpaceMembers(String id,
List<String> members)
Remove members of a Space, returning List of members updated and the
|
ArrayList<String> |
WWGraphQLEndpoint.updateSpaceMembers(String id,
List<String> members,
SpaceUpdateGraphQLMutation.UpdateSpaceMemberOperation addOrRemove)
Update the members of a Space, returning List of members updated
|
UpdateSpaceContainer |
WWGraphQLEndpoint.updateSpaceMembersAndTitle(String id,
String title,
List<String> members,
SpaceUpdateGraphQLMutation.UpdateSpaceMemberOperation addOrRemove)
Update the members of a Space and its title, returning a UpdateSpaceContainer containing an Array of members
updated and Space object with the new title
|
Space |
WWGraphQLEndpoint.updateSpaceTitle(String id,
String newTitle)
Change the title of a Space, returning Space object with updated title
|
UpdateSpaceContainer |
WWGraphQLEndpoint.updateSpaceWithMutation(SpaceUpdateGraphQLMutation mutationObject)
Updates a Space with a query, returning a UpdateSpaceContainer containing an Array of members updated and Space
object with the new title
|
Modifier and Type | Method and Description |
---|---|
ConversationWrapper |
DataContainer.getConversation() |
SpaceWrapper |
DataContainer.getCreateSpace() |
DataContainer |
GraphResultContainer.getData() |
boolean |
DataContainer.getDeletionSuccessful() |
Person |
DataContainer.getMe() |
MentionedContainer |
DataContainer.getMentioned() |
Message |
DataContainer.getMessage() |
MembersContainer |
DataContainer.getPeople() |
Person |
DataContainer.getPerson() |
String[] |
DataContainer.getRemoveSpaceMembersContainer_MemberIdsChanged() |
SpaceWrapper |
DataContainer.getRemoveSpaceMembersContainer_SpaceWrapper() |
RemoveSpaceMembersContainer |
DataContainer.getRemoveSpaceMembersContainer() |
SpaceWrapper |
DataContainer.getSpace() |
SpacesContainer |
DataContainer.getSpaces() |
String[] |
DataContainer.getUpdateSpaceContainer_MemberIdsChanged() |
SpaceWrapper |
DataContainer.getUpdateSpaceContainer_SpaceWrapper() |
UpdateSpaceContainer |
DataContainer.getUpdateSpaceContainer() |
Constructor and Description |
---|
GraphQLRequest(BaseGraphQLMutation mutationObject)
Initialises the GraphQLRequest object from a BaseGraphQLMutation object.
|
GraphQLRequest(BaseGraphQLMutation mutationObject,
HashMap<String,String> variables)
Initialises the GraphQLRequest object from a BaseGraphQLMutation object.
|
GraphQLRequest(BaseGraphQLMutation mutationObject,
HashMap<String,String> variables,
String operationName)
Initialises the GraphQLRequest object from all properties
|
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 © 2018 OpenNTF. All rights reserved.