org.openregistry.core.web.resources
Class PeopleResource

java.lang.Object
  extended by org.openregistry.core.web.resources.PeopleResource

@Named
@Singleton
public final class PeopleResource
extends java.lang.Object

Root RESTful resource representing canonical view of people in Open Registry. This component is managed and autowired by Spring by means of context-component-scan, and served by Jersey when URI is matched against the @Path definition. This bean is a singleton, and therefore is thread-safe.

Since:
1.0
Author:
Dmitriy Kopylenko

Constructor Summary
PeopleResource(PersonService personService, ReferenceRepository referenceRepository)
           
 
Method Summary
 javax.ws.rs.core.Response linkSorPersonWithCalculatedPerson(java.lang.String personId, java.lang.String personIdType, PersonRequestRepresentation personRequestRepresentation)
           
 PersonResponseRepresentation showPerson(java.lang.String personId, java.lang.String personIdType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeopleResource

@Inject
public PeopleResource(PersonService personService,
                             ReferenceRepository referenceRepository)
Method Detail

showPerson

public PersonResponseRepresentation showPerson(java.lang.String personId,
                                               java.lang.String personIdType)

linkSorPersonWithCalculatedPerson

public javax.ws.rs.core.Response linkSorPersonWithCalculatedPerson(java.lang.String personId,
                                                                   java.lang.String personIdType,
                                                                   PersonRequestRepresentation personRequestRepresentation)


Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.