Search in sources :

Example 11 with UserSession

use of org.kuali.kfs.krad.UserSession in project cu-kfs by CU-CommunityApps.

the class CuReceivingServiceImpl method getReceivingDeliveryCampusCode.

@Override
public String getReceivingDeliveryCampusCode(PurchaseOrderDocument po) {
    if (GlobalVariables.getUserSession() == null) {
        GlobalVariables.setUserSession(new UserSession(KRADConstants.SYSTEM_USER));
        GlobalVariables.clear();
    }
    return super.getReceivingDeliveryCampusCode(po);
}
Also used : UserSession(org.kuali.kfs.krad.UserSession)

Aggregations

UserSession (org.kuali.kfs.krad.UserSession)11 WorkflowException (org.kuali.rice.kew.api.exception.WorkflowException)6 MessageMap (org.kuali.kfs.krad.util.MessageMap)4 MaintenanceDocument (org.kuali.kfs.kns.document.MaintenanceDocument)3 DocumentService (org.kuali.kfs.krad.service.DocumentService)2 VendorDetail (org.kuali.kfs.vnd.businessobject.VendorDetail)2 DisbursementVoucherBatch (com.rsmart.kuali.kfs.fp.businessobject.DisbursementVoucherBatch)1 DisbursementVoucherBatchDefault (com.rsmart.kuali.kfs.fp.businessobject.DisbursementVoucherBatchDefault)1 DisbursementVoucherBatchSummaryLine (com.rsmart.kuali.kfs.fp.businessobject.DisbursementVoucherBatchSummaryLine)1 BatchDisbursementVoucherDocument (com.rsmart.kuali.kfs.fp.document.BatchDisbursementVoucherDocument)1 CuDisbursementVoucherDocument (edu.cornell.kfs.fp.document.CuDisbursementVoucherDocument)1 CuDistributionOfIncomeAndExpenseDocument (edu.cornell.kfs.fp.document.CuDistributionOfIncomeAndExpenseDocument)1 VendorInactivateConvertBatch (edu.cornell.kfs.vnd.businessobject.VendorInactivateConvertBatch)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 List (java.util.List)1 DisbursementVoucherDocument (org.kuali.kfs.fp.document.DisbursementVoucherDocument)1 Maintainable (org.kuali.kfs.kns.maintenance.Maintainable)1 Note (org.kuali.kfs.krad.bo.Note)1