Process Actions

 

Call ( in doGet/doPost )

	buildUserParams( req, resp );
	processUserAction = getProcessUserAction ( userParams );

Method

    private ProcessUserAction getProcessUserAction ( Hashtable userParams )
    {
        ProcessUserAction pua;
        
        String uid = (String)userParams.get("userID");
        if ( !(uid == null) )  {
            pua = (ProcessUserAction)userInfo.get( uid );
            if ( !(pua == null) )  {
                pua.setLastAccess();
                return pua;
            }
            else {
                return null;
            }
        }  else {
            int ui = nextUserId;
            nextUserId++;
            uid = new String ( Integer.toString(ui) );
            pua = new ProcessUserAction( uid );
            userInfo.put ( uid, pua );
            return pua;
        }
    }