public void editUser(final UserDataVOWS userdata)
throws CADoesntExistsException, AuthorizationDeniedException, UserDoesntFullfillEndEntityProfile, EjbcaException, ApprovalException, WaitingForApprovalException {
final IPatternLogger logger = TransactionLogger.getPatternLogger();
try {
final EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
final Admin admin = ejbhelper.getAdmin();
logAdminName(admin,logger);
final UserDataVO userdatavo = ejbhelper.convertUserDataVOWS(admin, userdata);
if (userAdminSession.existsUser(admin, userdatavo.getUsername())) {
if (log.isDebugEnabled()) {
log.debug("User " + userdata.getUsername() + " exists, update the userdata. New status of user '"+userdata.getStatus()+"'." );