public List < GrantReport > getGrantReportList ( ) { Map < Integer , GrantReport > grantReportMap = new TreeMap < Integer , GrantReport > ( ) ; for ( Map . Entry < Integer , ResourceGrant > entry : idToGrant . entrySet ( ) ) { grantReportMap . put ( entry . getKey ( ) , new GrantReport ( entry . getKey ( ) . intValue ( ) , entry . getValue ( ) . getAddress ( ) . toString ( ) , entry . getValue ( ) . getType ( ) , entry . getValue ( ) . getGrantedTime ( ) ) ) ; } return new ArrayList < GrantReport > ( grantReportMap . values ( ) ) ; }
Get a snapshot of the grants used for this session for the web server . This method should be synchronized by the caller around the session .