public class PersonGraphQLQuery extends BaseGraphQLQuery
Modifier and Type | Class and Description |
---|---|
static class |
PersonGraphQLQuery.PersonAttributes |
Constructor and Description |
---|
PersonGraphQLQuery()
Creates a PersonGraphQLQuery with a blank ObjectDataSenderBuilder query object using the "getProfile" method name
|
PersonGraphQLQuery(String operationName)
Creates a PersonGraphQLQuery with a blank ObjectDataSenderBuilder query object for the method passed
|
PersonGraphQLQuery(String operationName,
ObjectDataSenderBuilder query)
Creates a PersonGraphQLQuery with a passed ObjectDataSenderBuilder query object for the method passed
|
Modifier and Type | Method and Description |
---|---|
static PersonGraphQLQuery |
buildMyProfileQuery()
East method to create a basic Person query ObjectDataSenderBuilder for "me"
|
static PersonGraphQLQuery |
buildPersonQueryByEmail(String email)
East method to create a basic Person query ObjectDataSenderBuilder for the relevant Person filtered on email
|
static PersonGraphQLQuery |
buildPersonQueryById(String personId)
East method to create a basic Person query ObjectDataSenderBuilder for the relevant Person, filtered on id
|
addAttribute, addAttribute, addChild, addField, addField, addPageInfo, addPageInfo, getAttributesList, getChildren, getFieldsList, getObjectName, getOperationName, getQueryObject, hashCode, isHasItems, removeAttribute, removeAttribute, removeChild, removeField, removeField, removePageInfo, returnQuery, setAttributesList, setChildren, setFieldsList, setHasItems, setObjectName
public PersonGraphQLQuery()
public PersonGraphQLQuery(String operationName)
operationName
- String operation name, e.g. METHOD_GET_MYSELF or METHOD_GET_PROFILEpublic PersonGraphQLQuery(String operationName, ObjectDataSenderBuilder query)
operationName
- String operation name, e.g. METHOD_GET_MYSELF or METHOD_GET_PROFILEquery
- ObjectDataSenderBuilder containing the query settingspublic static PersonGraphQLQuery buildPersonQueryById(String personId) throws WWException
personId
- String id for the Person to retrieve. If blank, returns "me"WWException
- if the personId attribute is invalidpublic static PersonGraphQLQuery buildPersonQueryByEmail(String email) throws WWException
email
- String email for the Person to retrieve. If blank, returns "me"WWException
- if the email attribute is invalidpublic static PersonGraphQLQuery buildMyProfileQuery()
Copyright © 2018 OpenNTF. All rights reserved.