@Override public void setEntity(Object entity) { clientRequest.setEntity(entity); }
@Override public void setEntity(Object entity) { clientRequest.setEntity(entity); }
clientRequest.setEntity(entity);
public ChildAndParentsRelationshipState addChildAndParentsRelationship(ChildAndParentsRelationship chap, StateTransitionOption... options) { Link link = getLink(org.gedcomx.rs.Rel.RELATIONSHIPS); if (link == null || link.getHref() == null) { throw new GedcomxApplicationException(String.format("FamilySearch Family Tree at %s didn't provide a 'relationships' link.", getUri())); } FamilySearchPlatform entity = new FamilySearchPlatform(); entity.setChildAndParentsRelationships(Arrays.asList(chap)); ClientRequest request = RequestUtil.applyFamilySearchConneg(createAuthenticatedRequest()).build(link.getHref().toURI(), HttpMethod.POST); request.setEntity(entity); return ((FamilyTreeStateFactory)this.stateFactory).newChildAndParentsRelationshipState(request, invoke(request, options), this.accessToken); }
clientRequest.setEntity(entity);
public RelationshipsState addChildAndParentsRelationships(List<ChildAndParentsRelationship> chaps, StateTransitionOption... options) { Link link = getLink(org.gedcomx.rs.Rel.RELATIONSHIPS); if (link == null || link.getHref() == null) { throw new GedcomxApplicationException(String.format("FamilySearch Family Tree at %s didn't provide a 'relationships' link.", getUri())); } FamilySearchPlatform entity = new FamilySearchPlatform(); entity.setChildAndParentsRelationships(chaps); ClientRequest request = RequestUtil.applyFamilySearchConneg(createAuthenticatedRequest()).build(link.getHref().toURI(), HttpMethod.POST); request.setEntity(entity); return ((FamilyTreeStateFactory)this.stateFactory).newRelationshipsState(request, invoke(request, options), this.accessToken); }
/** * Submit feedback to the FamilySearch place authority. * * @param feedback A description of the place for which feedback is being submitted. * @param options The options. * @return The feedback. */ public FamilySearchPlaceState submitFeedback(Gedcomx feedback, StateTransitionOption... options) { Link link = getLink(Rel.PLACE_FEEDBACK); if (link == null || link.getHref() == null) { return null; } ClientRequest request = RequestUtil.applyFamilySearchConneg(createAuthenticatedRequest()).build(link.getHref().toURI(), HttpMethod.POST); request.setEntity(feedback); return ((FamilySearchStateFactory)this.stateFactory).newPlaceState(request, invoke(request, options), this.accessToken); }