Changeset 416 for tapas/web/src/com/ether/ControllerBackoffice.java
- Timestamp:
- 03/15/12 18:54:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/web/src/com/ether/ControllerBackoffice.java
r409 r416 56 56 @NotNull @ParamName(ParameterConstants.PARAMETER_PWD) final String pwd, 57 57 @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, 58 60 @NotNull @ParamName(ParameterConstants.PARAMETER_HAS_ACCESS) final Boolean hasAccessToBO ) 59 61 throws WebException, ServiceException … … 66 68 final Date creationDate = new Date(); 67 69 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 ); 69 71 70 72 _backofficeService.createUser( user ); … … 102 104 @Nullable @ParamName(ParameterConstants.PARAMETER_PWD) final String pwd, 103 105 @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, 104 108 @NotNull @ParamName(ParameterConstants.PARAMETER_HAS_ACCESS) final Boolean hasAccessToBO, 105 109 @NotNull @ParamName(ParameterConstants.PARAMETER_KEEP_SAME_PASSWORD) final Boolean keepSamePassword ) … … 122 126 user.setRole( UserRole.valueOf( role ) ); 123 127 user.setAccessToBO( hasAccessToBO ); 128 user.setLaboratory( laboratory ); 129 user.setCountry( country ); 124 130 125 131 _backofficeService.updateUser( user );
Note: See TracChangeset
for help on using the changeset viewer.