}
public List<ApprovalDataText> getNewRequestDataAsText(Admin admin, CAAdminSession caAdminSession, EndEntityProfileSession endEntityProfileSession,
CertificateProfileSession certificateProfileSession, HardTokenSession hardTokenSession) {
ArrayList<ApprovalDataText> retval = new ArrayList<ApprovalDataText>();
retval.add(new ApprovalDataText("USERNAME",userdata.getUsername(),true,false));
retval.add(new ApprovalDataText("SUBJECTDN",CertTools.stringToBCDNString(userdata.getDN()),true,false));
retval.add(getTextWithNoValueString("SUBJECTALTNAME",userdata.getSubjectAltName()));
String dirattrs = userdata.getExtendedinformation() != null ? userdata.getExtendedinformation().getSubjectDirectoryAttributes() : null;
retval.add(getTextWithNoValueString("SUBJECTDIRATTRIBUTES",dirattrs));
retval.add(getTextWithNoValueString("EMAIL",userdata.getEmail()));
retval.add(new ApprovalDataText("CA", caAdminSession.getCAInfo(admin, userdata.getCAId()).getName(),true,false));
retval.add(new ApprovalDataText("ENDENTITYPROFILE", endEntityProfileSession.getEndEntityProfileName(admin, userdata.getEndEntityProfileId()),true,false));
retval.add(new ApprovalDataText("CERTIFICATEPROFILE", certificateProfileSession.getCertificateProfileName(admin, userdata.getCertificateProfileId()),true,false));
retval.add(ApprovalRequestHelper.getTokenName(hardTokenSession, admin,userdata.getTokenType()));
retval.add(getTextWithNoValueString("HARDTOKENISSUERALIAS", hardTokenSession.getHardTokenIssuerAlias(admin, userdata.getHardTokenIssuerId())));
retval.add(new ApprovalDataText("KEYRECOVERABLE",userdata.getKeyRecoverable() ? "YES" : "NO",true,true));
retval.add(new ApprovalDataText("SENDNOTIFICATION",userdata.getSendNotification() ? "YES" : "NO",true,true));
return retval;
}