Ignore:
Timestamp:
03/15/12 18:54:48 (12 years ago)
Author:
vmipsl
Message:

User : ajout laboratoire & pays
BO : idem
Création compte : idem
DataProtocole?
Clean accent properties
Language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/src/com/ether/ControllerBackoffice.java

    r409 r416  
    5656                               @NotNull @ParamName(ParameterConstants.PARAMETER_PWD) final String pwd, 
    5757                               @Nullable @ParamName(ParameterConstants.PARAMETER_ROLE) final String role, 
     58                               @Nullable @ParamName(ParameterConstants.PARAMETER_LABORATORY) final String laboratory, 
     59                               @Nullable @ParamName(ParameterConstants.PARAMETER_COUNTRY) final String country, 
    5860                               @NotNull @ParamName(ParameterConstants.PARAMETER_HAS_ACCESS) final Boolean hasAccessToBO ) 
    5961            throws WebException, ServiceException 
     
    6668                final Date creationDate = new Date(); 
    6769                final String encryptedPassword = EtherHelper.encryptPassword( pwd ); 
    68                 final User user = new User( lastName, firstName, email, encryptedPassword, role, hasAccessToBO, creationDate ); 
     70                final User user = new User( lastName, firstName, email, encryptedPassword, role, hasAccessToBO, laboratory, country, creationDate ); 
    6971 
    7072                _backofficeService.createUser( user ); 
     
    102104                                  @Nullable @ParamName(ParameterConstants.PARAMETER_PWD) final String pwd, 
    103105                                  @Nullable @ParamName(ParameterConstants.PARAMETER_ROLE) final String role, 
     106                                  @Nullable @ParamName(ParameterConstants.PARAMETER_LABORATORY) final String laboratory, 
     107                                  @Nullable @ParamName(ParameterConstants.PARAMETER_COUNTRY) final String country, 
    104108                                  @NotNull @ParamName(ParameterConstants.PARAMETER_HAS_ACCESS) final Boolean hasAccessToBO, 
    105109                                  @NotNull @ParamName(ParameterConstants.PARAMETER_KEEP_SAME_PASSWORD) final Boolean keepSamePassword ) 
     
    122126                user.setRole( UserRole.valueOf( role ) ); 
    123127                user.setAccessToBO( hasAccessToBO ); 
     128                user.setLaboratory( laboratory ); 
     129                user.setCountry( country ); 
    124130 
    125131                _backofficeService.updateUser( user ); 
Note: See TracChangeset for help on using the changeset viewer.