admin.setUserStatus(new Admin(Admin.TYPE_INTERNALUSER), data.getUsername(), UserDataConstants.STATUS_GENERATED, false);
admin.setUserStatus(new Admin(Admin.TYPE_INTERNALUSER), data.getUsername(), UserDataConstants.STATUS_GENERATED);
    public void test05ListNewUser() throws Exception {        log.debug(">test05ListNewUser()");        Object obj1 = ctx.lookup("UserAdminSession");        IUserAdminSessionHome adminhome = (IUserAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(obj1, IUserAdminSessionHome.class);        IUserAdminSessionRemote admin = adminhome.create();        Collection coll = admin.findAllUsersByStatus(new Admin(Admin.TYPE_INTERNALUSER), UserDataConstants.STATUS_NEW);        Iterator iter = coll.iterator();        while (iter.hasNext()) {            UserDataVO data = (UserDataVO) iter.next();            log.debug("New user: " + data.getUsername() + ", " + data.getDN() + ", " + data.getEmail() + ", " + data.getStatus() + ", " + data.getType());            admin.setUserStatus(new Admin(Admin.TYPE_INTERNALUSER), data.getUsername(), UserDataConstants.STATUS_GENERATED, false);        }        Collection coll1 = admin.findAllUsersByStatus(new Admin(Admin.TYPE_INTERNALUSER), UserDataConstants.STATUS_NEW);        assertTrue("found NEW users though there should be none!", coll1.isEmpty());        log.debug("<test05ListNewUser()");    }