Search in sources :

Example 1 with AccountingXmlDocumentNote

use of edu.cornell.kfs.fp.batch.xml.AccountingXmlDocumentNote in project cu-kfs by CU-CommunityApps.

the class AccountingDocumentGeneratorBase method buildDocumentNote.

protected Note buildDocumentNote(AccountingXmlDocumentNote xmlNote) {
    Person systemUser = personService.getPersonByPrincipalName(KFSConstants.SYSTEM_USER);
    Note note = emptyNoteGenerator.get();
    note.setNoteText(xmlNote.getDescription());
    note.setAuthorUniversalIdentifier(systemUser.getPrincipalId());
    note.setNotePostedTimestampToCurrent();
    return note;
}
Also used : AccountingXmlDocumentNote(edu.cornell.kfs.fp.batch.xml.AccountingXmlDocumentNote) Note(org.kuali.kfs.krad.bo.Note) AdHocRoutePerson(org.kuali.kfs.krad.bo.AdHocRoutePerson) Person(org.kuali.kfs.kim.api.identity.Person)

Aggregations

AccountingXmlDocumentNote (edu.cornell.kfs.fp.batch.xml.AccountingXmlDocumentNote)1 Person (org.kuali.kfs.kim.api.identity.Person)1 AdHocRoutePerson (org.kuali.kfs.krad.bo.AdHocRoutePerson)1 Note (org.kuali.kfs.krad.bo.Note)1