private void evalAccess ( ) throws EFapsException { final List < Instance > instances = new ArrayList <> ( ) ; while ( step ( this . selection . getInstSelects ( ) . values ( ) ) ) { for ( final Entry < String , Select > entry : this . selection . getInstSelects ( ) . entrySet ( ) ) { final Object object = entry . getValue ( ) . getCurrent ( ) ; if ( object != null ) { if ( object instanceof List ) { ( ( List < ? > ) object ) . stream ( ) . filter ( Objects :: nonNull ) . forEach ( e -> instances . add ( ( Instance ) e ) ) ; } else { instances . add ( ( Instance ) object ) ; } } } } for ( final Entry < String , Select > entry : this . selection . getInstSelects ( ) . entrySet ( ) ) { entry . getValue ( ) . reset ( ) ; } this . access = Access . get ( AccessTypeEnums . READ . getAccessType ( ) , instances ) ; }
Evaluate the access for the instances .