Search in sources :

Example 1 with LaborLedgerPendingEntryForSearching

use of org.kuali.kfs.integration.ld.LaborLedgerPendingEntryForSearching in project cu-kfs by CU-CommunityApps.

the class FinancialSystemSearchableAttribute method harvestLLPDocumentSearchableAttributes.

/**
 * Harvest LLPE document type as searchable attributes from a LL posting document
 *
 * @param LLPDoc the LLP document to pull values from
 * @return a List of searchable values
 */
protected List<DocumentAttribute> harvestLLPDocumentSearchableAttributes(LaborLedgerPostingDocumentForSearching LLPDoc) {
    List<DocumentAttribute> searchAttrValues = new ArrayList<DocumentAttribute>();
    for (Iterator itr = LLPDoc.getLaborLedgerPendingEntriesForSearching().iterator(); itr.hasNext(); ) {
        LaborLedgerPendingEntryForSearching llpe = (LaborLedgerPendingEntryForSearching) itr.next();
        addSearchableAttributesForLLPE(searchAttrValues, llpe);
    }
    return searchAttrValues;
}
Also used : ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) DocumentAttribute(org.kuali.rice.kew.api.document.attribute.DocumentAttribute) LaborLedgerPendingEntryForSearching(org.kuali.kfs.integration.ld.LaborLedgerPendingEntryForSearching)

Aggregations

ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 LaborLedgerPendingEntryForSearching (org.kuali.kfs.integration.ld.LaborLedgerPendingEntryForSearching)1 DocumentAttribute (org.kuali.rice.kew.api.document.attribute.DocumentAttribute)1