private void addViewGenericRoleMemberToStep ( final String stepName , final Step step , final List < T > assignments , final StepMapping < T > stepMapping ) { for ( final T assignmentData : assignments ) { String subStepName = "" ; if ( stepMapping . getRoleCode ( assignmentData ) != null ) { subStepName = new StringBuilder ( ) . append ( stepMapping . getFirstName ( assignmentData ) ) . append ( CONTENT_SEPARATOR ) . append ( stepMapping . getLastName ( assignmentData ) ) . append ( PARTY_START_TAG ) . append ( stepMapping . getParty ( assignmentData ) ) . append ( PARTY_END_TAG ) . toString ( ) ; } final SubStep sameRoleSubStep = new SubStep ( stepName + ' ' + subStepName , CaptionMode . HTML ) ; sameRoleSubStep . setDescription ( stepName + ' ' + subStepName ) ; sameRoleSubStep . setBackgroundColor ( stepMapping . getBackgroundColor ( assignmentData ) ) ; sameRoleSubStep . setStartDate ( stepMapping . getFromDate ( assignmentData ) . getTime ( ) ) ; sameRoleSubStep . setEndDate ( stripDatesAfterCurrentDate ( stepMapping . getToDate ( assignmentData ) ) . getTime ( ) ) ; step . addSubStep ( sameRoleSubStep ) ; } }
Adds the view generic role member to step .