org.openregistry.core.web.resources.representations
Class PersonRequestRepresentation

java.lang.Object
  extended by org.openregistry.core.web.resources.representations.PersonRequestRepresentation

public class PersonRequestRepresentation
extends java.lang.Object

A simple struct-like class encapsulating an incoming request for addition to the registry of a person record from typical upstream systems of record. This class should only be used to unmarshal serialized representation of an incoming person record. The unmarshaling of the person XML representation is done automatically by JAXB.

Since:
1.0
Author:
Dmitriy Kopylenko

Nested Class Summary
static class PersonRequestRepresentation.Name
           
static class PersonRequestRepresentation.Reconciliation
           
 
Field Summary
 java.util.Date dateOfBirth
           
 java.lang.String gender
           
 java.util.List<PersonRequestRepresentation.Name> names
           
 PersonRequestRepresentation.Reconciliation reconciliation
           
 java.lang.String ssn
           
 java.lang.String systemOfRecordId
           
 java.lang.String systemOfRecordPersonId
           
 
Constructor Summary
PersonRequestRepresentation()
           
 
Method Summary
static PersonRequestRepresentation forExistingPersonExistingSoRRecord()
          Factory method for use only for mocking purposes in tests
static PersonRequestRepresentation forExistingPersonNoSoRRecord()
          Factory method for use only for mocking purposes in tests
static PersonRequestRepresentation forLinkingSorPersonBad()
          Factory method for use only for mocking purposes in tests
static PersonRequestRepresentation forLinkingSorPersonGood()
          Factory method for use only for mocking purposes in tests
static PersonRequestRepresentation forMultiplePeople()
          Factory method for use only for mocking purposes in tests
static PersonRequestRepresentation forNewPerson()
          Factory method for use only for mocking purposes in tests
static PersonRequestRepresentation modifyRepresentationWithRequiredData()
           
 java.lang.String toString()
           
static PersonRequestRepresentation withValidationErrors()
          Factory method for use only for mocking purposes in tests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

systemOfRecordId

public java.lang.String systemOfRecordId

systemOfRecordPersonId

public java.lang.String systemOfRecordPersonId

dateOfBirth

public java.util.Date dateOfBirth

ssn

public java.lang.String ssn

gender

public java.lang.String gender

names

public java.util.List<PersonRequestRepresentation.Name> names

reconciliation

public PersonRequestRepresentation.Reconciliation reconciliation
Constructor Detail

PersonRequestRepresentation

public PersonRequestRepresentation()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

forNewPerson

public static PersonRequestRepresentation forNewPerson()
Factory method for use only for mocking purposes in tests

Returns:

forExistingPersonNoSoRRecord

public static PersonRequestRepresentation forExistingPersonNoSoRRecord()
Factory method for use only for mocking purposes in tests

Returns:

forExistingPersonExistingSoRRecord

public static PersonRequestRepresentation forExistingPersonExistingSoRRecord()
Factory method for use only for mocking purposes in tests

Returns:

withValidationErrors

public static PersonRequestRepresentation withValidationErrors()
Factory method for use only for mocking purposes in tests

Returns:

forMultiplePeople

public static PersonRequestRepresentation forMultiplePeople()
Factory method for use only for mocking purposes in tests

Returns:

forLinkingSorPersonGood

public static PersonRequestRepresentation forLinkingSorPersonGood()
Factory method for use only for mocking purposes in tests

Returns:

forLinkingSorPersonBad

public static PersonRequestRepresentation forLinkingSorPersonBad()
Factory method for use only for mocking purposes in tests

Returns:

modifyRepresentationWithRequiredData

public static PersonRequestRepresentation modifyRepresentationWithRequiredData()


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