public class ProviderController
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description | 
|---|
| ProviderController()Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| DTO | confirmNewProviderRequest(java.security.Principal userPrincipal,
                         java.lang.String token)Confirmed the requester email address, then will be added
 this device to a Provider role list. | 
| DTO | registerNewProviderRequest(java.security.Principal principal,
                          NewProviderRequest request)Register device intention of having a Provider role | 
public DTO registerNewProviderRequest(java.security.Principal principal, NewProviderRequest request)
principal - See Principalrequest - See NewProviderRequestProviderDTOpublic DTO confirmNewProviderRequest(java.security.Principal userPrincipal, java.lang.String token)
userPrincipal - See Principaltoken - Opaque stringProviderDTOjavax.persistence.EntityNotFoundException - Token does not belongs to any providerForbiddenEntityModificationException - The device that request the validation
                                              must be the same that make the verificationpublic void close()
           throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception