void function ( MotechUser arg0 ) { if ( findByUserName ( arg0 . getUserName ( ) ) == null ) { if ( findUserByEmail ( arg0 . getEmail ( ) ) != null ) { throw new EmailExistsException ( "srini_string" + arg0 . getEmail ( ) + "srini_string" ) ; } dataService . create ( arg0 ) ; } }
adds new motechuser if its name and email are not null concode_field_sep MotechUsersDataService dataService concode_field_sep List<MotechUser> findByRole concode_elem_sep MotechUser findByUserName concode_elem_sep List<MotechUser> getUsers concode_elem_sep void addOpenIdUser concode_elem_sep void update concode_elem_sep MotechUser findUserByOpenId concode_elem_sep MotechUser findUserByEmail concode_elem_sep List<MotechUser> getOpenIdUsers concode_elem_sep void remove concode_elem_sep void setDataService