}
public static RealCIXFile exportCorrespondenceCIXFile(Row correspondenceRow) {
RealCIXFile realCIXFile = null;
String type = "Correspondence";
Vector datas = new Vector();
Vector notEncryedDatas = new Vector();
datas.add(correspondenceRow);
String ns = ObjectUtil.findNewCell(correspondenceRow, "T", "NS").getColumnValue().toString();
String p = ObjectUtil.findNewCell(correspondenceRow, "T", "P").getColumnValue().toString();
String pa = ObjectUtil.findNewCell(correspondenceRow, "T", "PA").getColumnValue().toString();
PartnerClass partner = (PartnerClass)ClassManager.createClass(250);
Row partnerAccountRow = null;
partnerAccountRow = PartnerClass.findPartnerAccountRow(partner, ns, p, pa);
Row mePartnerAccountRow = null;
if (partnerAccountRow != null)
mePartnerAccountRow = PartnerClass.getMePartnerAccount(partnerAccountRow);
PrivateKey privateKey = null;
if (mePartnerAccountRow != null) {
privateKey = (PrivateKey)ObjectUtil.findNewCell(mePartnerAccountRow, "PA", "PRIKEY").getColumnValue();
}
if (privateKey != null) {
String urns = ObjectUtil.findNewCell(partnerAccountRow, "PA", "URNS").getColumnValue().toString();
String urp = ObjectUtil.findNewCell(partnerAccountRow, "PA", "URP").getColumnValue().toString();
String urpa = ObjectUtil.findNewCell(partnerAccountRow, "PA", "URPA").getColumnValue().toString();
notEncryedDatas.add(urns);
notEncryedDatas.add(urp);
notEncryedDatas.add(urpa);
realCIXFile = new RealCIXFile(type, privateKey, notEncryedDatas, datas);
}
return realCIXFile;
}