public class CollectionState extends GedcomxApplicationState<org.gedcomx.Gedcomx>
accessToken, client, DEFAULT_EMBEDDED_LINK_LOADER, entity, links, request, response, stateFactory| Modifier | Constructor and Description |
|---|---|
protected |
CollectionState(com.sun.jersey.api.client.ClientRequest request,
com.sun.jersey.api.client.ClientResponse response,
String accessToken,
StateFactory stateFactory) |
|
CollectionState(URI uri) |
buildFailureMessage, createAuthenticatedFeedRequest, createAuthenticatedGedcomxRequest, createAuthenticatedRequest, createRequest, createRequestForEmbeddedResource, embed, embed, getAccessToken, getClient, getDescription, getEmbeddedLinkLoader, getEntity, getETag, getHeaders, getLastEmbeddedRequest, getLastEmbeddedResponse, getLastModified, getLink, getLinks, getRequest, getResponse, getSelfRel, getSelfUri, getUri, getWarnings, hasClientError, hasError, hasServerError, hasStatus, includeEmbeddedResources, inject, invoke, isAuthenticated, isEmbeddedLinkLoaded, loadEntityConditionally, loadLinks, readContributor, readContributor, readContributor, readFirstPage, readLastPage, readNextPage, readPage, readPreviousPagepublic CollectionState(URI uri)
protected CollectionState(com.sun.jersey.api.client.ClientRequest request,
com.sun.jersey.api.client.ClientResponse response,
String accessToken,
StateFactory stateFactory)
protected CollectionState clone(com.sun.jersey.api.client.ClientRequest request, com.sun.jersey.api.client.ClientResponse response)
clone in class GedcomxApplicationState<org.gedcomx.Gedcomx>protected org.gedcomx.Gedcomx loadEntity(com.sun.jersey.api.client.ClientResponse response)
loadEntity in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState ifSuccessful()
ifSuccessful in class GedcomxApplicationState<org.gedcomx.Gedcomx>protected org.gedcomx.links.SupportsLinks getMainDataElement()
getMainDataElement in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState head(StateTransitionOption... options)
head in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState options(StateTransitionOption... options)
options in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState get(StateTransitionOption... options)
get in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState delete(StateTransitionOption... options)
delete in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState put(org.gedcomx.Gedcomx e, StateTransitionOption... options)
put in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState post(org.gedcomx.Gedcomx entity, StateTransitionOption... options)
post in class GedcomxApplicationState<org.gedcomx.Gedcomx>public org.gedcomx.records.Collection getCollection()
public CollectionState authenticateWithAccessToken(String accessToken)
authenticateWithAccessToken in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState authenticateViaOAuth2Password(String username, String password, String clientId)
authenticateViaOAuth2Password in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState authenticateViaOAuth2Password(String username, String password, String clientId, String clientSecret)
authenticateViaOAuth2Password in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState authenticateViaOAuth2AuthCode(String authCode, String redirect, String clientId)
authenticateViaOAuth2AuthCode in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState authenticateViaOAuth2AuthCode(String authCode, String redirect, String clientId, String clientSecret)
authenticateViaOAuth2AuthCode in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState authenticateViaOAuth2ClientCredentials(String clientId, String clientSecret)
authenticateViaOAuth2ClientCredentials in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState authenticateViaOAuth2(javax.ws.rs.core.MultivaluedMap<String,String> formData, StateTransitionOption... options)
authenticateViaOAuth2 in class GedcomxApplicationState<org.gedcomx.Gedcomx>public CollectionState update(org.gedcomx.records.Collection collection, StateTransitionOption... options)
public RecordsState readRecords(StateTransitionOption... options)
public RecordState addRecord(org.gedcomx.Gedcomx record, StateTransitionOption... options)
public PersonsState readPersons(StateTransitionOption... options)
public PersonState addPerson(org.gedcomx.conclusion.Person person, StateTransitionOption... options)
public PersonState addPerson(org.gedcomx.Gedcomx entity, StateTransitionOption... options)
public PersonState readPersonForCurrentUser(StateTransitionOption... options)
public PersonState readPerson(URI personUri, StateTransitionOption... options)
public PersonSearchResultsState searchForPersons(PersonSearchQueryBuilder query, StateTransitionOption... options)
public PersonSearchResultsState searchForPersons(String query, StateTransitionOption... options)
public RelationshipsState readRelationships(StateTransitionOption... options)
public RelationshipState addSpouseRelationship(PersonState person1, PersonState person2, StateTransitionOption... options)
public RelationshipState addSpouseRelationship(PersonState person1, PersonState person2, org.gedcomx.conclusion.Fact fact, StateTransitionOption... options)
public RelationshipState addParentChildRelationship(PersonState parent, PersonState child, StateTransitionOption... options)
public RelationshipState addParentChildRelationship(PersonState parent, PersonState child, org.gedcomx.conclusion.Fact fact, StateTransitionOption... options)
public RelationshipState addRelationship(org.gedcomx.conclusion.Relationship relationship, StateTransitionOption... options)
public RelationshipsState addRelationships(List<org.gedcomx.conclusion.Relationship> relationships, StateTransitionOption... options)
public SourceDescriptionState addArtifact(DataSource artifact, StateTransitionOption... options)
public SourceDescriptionState addArtifact(org.gedcomx.source.SourceDescription description, DataSource artifact, StateTransitionOption... options)
public SourceDescriptionsState readSourceDescriptions(StateTransitionOption... options)
public SourceDescriptionState addSourceDescription(org.gedcomx.source.SourceDescription source, StateTransitionOption... options)
public CollectionState readCollection(StateTransitionOption... options)
public CollectionsState readSubcollections(StateTransitionOption... options)
public CollectionState addCollection(org.gedcomx.records.Collection collection, StateTransitionOption... options)
public CollectionState addCollection(org.gedcomx.source.SourceDescription sourceDescription, StateTransitionOption... options)
public CollectionState addCollection(org.gedcomx.records.Collection collection, org.gedcomx.source.SourceDescription sourceDescription, StateTransitionOption... options)
public SourceDescriptionsState readResourcesById(StateTransitionOption... options)
public SourceDescriptionsState readResourcesOfCurrentUser(StateTransitionOption... options)
public List<org.gedcomx.source.SourceDescription> getSourceDescriptions()
public SourceDescriptionState readSourceDescription(org.gedcomx.source.SourceDescription sourceDescription, StateTransitionOption... options)
public PersonState readPerson(org.gedcomx.conclusion.Person person, StateTransitionOption... options)
Copyright © 2020. All rights reserved.