Search in sources :

Example 6 with PositionDataDetailsInquirableImpl

use of org.kuali.kfs.module.ld.businessobject.inquiry.PositionDataDetailsInquirableImpl in project cu-kfs by CU-CommunityApps.

the class EmployeeFundingLookupableHelperServiceImpl method getInquiryUrl.

/**
 * @see org.kuali.kfs.kns.lookup.Lookupable#getInquiryUrl(org.kuali.kfs.kns.bo.BusinessObject, java.lang.String)
 */
@Override
public HtmlData getInquiryUrl(BusinessObject bo, String propertyName) {
    if (KFSPropertyConstants.POSITION_NUMBER.equals(propertyName)) {
        EmployeeFunding employeeFunding = (EmployeeFunding) bo;
        AbstractPositionDataDetailsInquirableImpl positionDataDetailsInquirable = new PositionDataDetailsInquirableImpl();
        Map<String, String> fieldValues = new HashMap<String, String>();
        fieldValues.put(propertyName, employeeFunding.getPositionNumber());
        BusinessObject positionData = positionDataDetailsInquirable.getBusinessObject(fieldValues);
        return positionData == null ? new AnchorHtmlData(KFSConstants.EMPTY_STRING, KFSConstants.EMPTY_STRING) : positionDataDetailsInquirable.getInquiryUrl(positionData, propertyName);
    }
    return (new EmployeeFundingInquirableImpl()).getInquiryUrl(bo, propertyName);
}
Also used : AbstractPositionDataDetailsInquirableImpl(org.kuali.kfs.integration.ld.businessobject.inquiry.AbstractPositionDataDetailsInquirableImpl) HashMap(java.util.HashMap) EmployeeFunding(org.kuali.kfs.module.ld.businessobject.EmployeeFunding) BusinessObject(org.kuali.rice.krad.bo.BusinessObject) AbstractPositionDataDetailsInquirableImpl(org.kuali.kfs.integration.ld.businessobject.inquiry.AbstractPositionDataDetailsInquirableImpl) PositionDataDetailsInquirableImpl(org.kuali.kfs.module.ld.businessobject.inquiry.PositionDataDetailsInquirableImpl) AnchorHtmlData(org.kuali.kfs.kns.lookup.HtmlData.AnchorHtmlData) EmployeeFundingInquirableImpl(com.rsmart.kuali.kfs.module.ld.businessobject.inquiry.EmployeeFundingInquirableImpl)

Aggregations

HashMap (java.util.HashMap)6 AbstractPositionDataDetailsInquirableImpl (org.kuali.kfs.integration.ld.businessobject.inquiry.AbstractPositionDataDetailsInquirableImpl)6 AnchorHtmlData (org.kuali.kfs.kns.lookup.HtmlData.AnchorHtmlData)6 PositionDataDetailsInquirableImpl (org.kuali.kfs.module.ld.businessobject.inquiry.PositionDataDetailsInquirableImpl)6 BusinessObject (org.kuali.rice.krad.bo.BusinessObject)6 LedgerBalance (org.kuali.kfs.module.ld.businessobject.LedgerBalance)3 LaborCalculatedSalaryFoundationTracker (org.kuali.kfs.module.ld.businessobject.LaborCalculatedSalaryFoundationTracker)2 CurrentFundsInquirableImpl (com.rsmart.kuali.kfs.module.ld.businessobject.inquiry.CurrentFundsInquirableImpl)1 EmployeeFundingInquirableImpl (com.rsmart.kuali.kfs.module.ld.businessobject.inquiry.EmployeeFundingInquirableImpl)1 July1PositionFundingInquirableImpl (com.rsmart.kuali.kfs.module.ld.businessobject.inquiry.July1PositionFundingInquirableImpl)1 LaborCalculatedSalaryFoundationTrackerInquirableImpl (com.rsmart.kuali.kfs.module.ld.businessobject.inquiry.LaborCalculatedSalaryFoundationTrackerInquirableImpl)1 LedgerBalanceInquirableImpl (com.rsmart.kuali.kfs.module.ld.businessobject.inquiry.LedgerBalanceInquirableImpl)1 PositionFundingInquirableImpl (com.rsmart.kuali.kfs.module.ld.businessobject.inquiry.PositionFundingInquirableImpl)1 EmployeeFunding (org.kuali.kfs.module.ld.businessobject.EmployeeFunding)1 Person (org.kuali.rice.kim.api.identity.Person)1 PersonService (org.kuali.rice.kim.api.identity.PersonService)1