org.openregistry.core.web.resources
Class EmailResource

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

@Named
@Singleton
public class EmailResource
extends java.lang.Object

RESTful controller resource used to expose functionality of updating or adding, or retrieving emails of SorPersons matching the specific implicit criteria i.e. an SorPerson with at least one SorRole that contain affiliation type matching the provided affiliation type.

Since:
1.0

Constructor Summary
EmailResource(EmailService emailService, PersonService personService, ReferenceRepository referenceRepository)
           
 
Method Summary
 javax.ws.rs.core.Response addOrUpdateEmail(java.lang.String emailAddress, java.lang.String sor, java.lang.String emailType, java.lang.String identifierType, java.lang.String identifier, java.lang.String affiliation)
           
 javax.ws.rs.core.Response findEmail(java.lang.String sor, java.lang.String emailType, java.lang.String identifierType, java.lang.String identifier, java.lang.String affiliation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailResource

@Inject
public EmailResource(EmailService emailService,
                            PersonService personService,
                            ReferenceRepository referenceRepository)
Method Detail

findEmail

public javax.ws.rs.core.Response findEmail(java.lang.String sor,
                                           java.lang.String emailType,
                                           java.lang.String identifierType,
                                           java.lang.String identifier,
                                           java.lang.String affiliation)

addOrUpdateEmail

public javax.ws.rs.core.Response addOrUpdateEmail(java.lang.String emailAddress,
                                                  java.lang.String sor,
                                                  java.lang.String emailType,
                                                  java.lang.String identifierType,
                                                  java.lang.String identifier,
                                                  java.lang.String affiliation)


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