public void setIdle ( ClientObject caller , boolean idle ) { BodyObject bobj = _locator . forClient ( caller ) ; // determine the body's proposed new status byte nstatus = ( idle ) ? OccupantInfo . IDLE : OccupantInfo . ACTIVE ; if ( bobj == null || bobj . status == nstatus ) { return ; // ignore NOOP attempts } // update their status! log . debug ( "Setting user idle state" , "user" , bobj . username , "status" , nstatus ) ; updateOccupantStatus ( bobj , nstatus ) ; }
from interface BodyProvider