void addToFullRights ( HashMap map ) { Iterator it = map . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Object key = it . next ( ) ; Right add = ( Right ) map . get ( key ) ; Right existing = ( Right ) fullRightsMap . get ( key ) ; if ( existing == null ) { existing = add . duplicate ( ) ; fullRightsMap . put ( key , existing ) ; } else { existing . add ( add ) ; } if ( add . grantableRights == null ) { continue ; } if ( existing . grantableRights == null ) { existing . grantableRights = add . grantableRights . duplicate ( ) ; } else { existing . grantableRights . add ( add . grantableRights ) ; } } }
Full or partial rights are added to existing