@Transactional public class RequisitionServiceImpl extends Object implements RequisitionService
Constructor and Description |
---|
RequisitionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
checkAPORulesPerItemForCommodityCodes(RequisitionItem purItem,
List<VendorCommodityCode> vendorCommodityCodes,
boolean commodityCodeRequired)
Checks the APO rules for Commodity Codes.
|
protected String |
checkAutomaticPurchaseOrderRules(RequisitionDocument requisition)
Checks the rule for Automatic Purchase Order eligibility of the requisition and return a String containing the reason why the
requisition was not eligible to become an APO if it was not eligible, or return an empty String if the requisition is
eligible to become an APO
|
PurchasingCapitalAssetItem |
createCamsItem(PurchasingDocument purDoc,
PurApItem purapItem) |
CapitalAssetSystem |
createCapitalAssetSystem() |
OleRequisitionDocument |
generateRequisitionFromPurchaseOrder(PurchaseOrderDocument purDocument)
Create Purchase Order and populate with data from Purchase Order and other default data
|
Collection<String> |
getAPORules() |
int |
getCountOfRequisitionsAwaitingContractManagerAssignment()
Returns the count of how many Requisitions are awaiting contract manager assignment
|
protected List<String> |
getDocumentsNumbersAwaitingContractManagerAssignment()
Gets a list of strings of document numbers from workflow documents where
document status = 'P', 'F' and document type = 'REQS'.
|
protected org.kuali.rice.kim.api.identity.PersonService |
getPersonService() |
RequisitionDocument |
getRequisitionById(Integer id)
Obtains the requisition document from the database given a requisition id as the input parameter
|
List<RequisitionDocument> |
getRequisitionsAwaitingContractManagerAssignment()
Returns the list of Requisitions that are awaiting contract manager assignment
|
org.kuali.rice.krad.service.KualiRuleService |
getRuleService() |
boolean |
isAutomaticPurchaseOrderAllowed(RequisitionDocument requisition)
Checks whether the requisition is eligible to become an Automatic Purchase Order (APO)
|
OleRequisitionDocument |
populateRequisitionFromPurchaseOrder(OleRequisitionDocument requisitionDocument,
PurchaseOrderDocument pdoc) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService boService) |
void |
setCapitalAssetBuilderModuleService(CapitalAssetBuilderModuleService capitalAssetBuilderModuleService) |
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setPostalCodeValidationService(PostalCodeValidationService postalCodeValidationService) |
void |
setPurapService(PurapService purapService) |
void |
setRequisitionDao(RequisitionDao requisitionDao) |
void |
setRuleService(org.kuali.rice.krad.service.KualiRuleService ruleService) |
void |
setUniversityDateService(UniversityDateService universityDateService) |
void |
setVendorService(VendorService vendorService) |
public RequisitionServiceImpl()
public PurchasingCapitalAssetItem createCamsItem(PurchasingDocument purDoc, PurApItem purapItem)
createCamsItem
in interface PurchasingDocumentSpecificService
public CapitalAssetSystem createCapitalAssetSystem()
createCapitalAssetSystem
in interface PurchasingDocumentSpecificService
public RequisitionDocument getRequisitionById(Integer id)
RequisitionService
getRequisitionById
in interface RequisitionService
id
- the requisition id of the document we want to obtain.RequisitionService.getRequisitionById(java.lang.Integer)
public boolean isAutomaticPurchaseOrderAllowed(RequisitionDocument requisition)
RequisitionService
isAutomaticPurchaseOrderAllowed
in interface RequisitionService
requisition
- the requisition document to be checked.RequisitionService.isAutomaticPurchaseOrderAllowed(org.kuali.ole.module.purap.document.RequisitionDocument)
public Collection<String> getAPORules()
protected String checkAutomaticPurchaseOrderRules(RequisitionDocument requisition)
requisition
- the requisition document to be checked for APO eligibility.protected String checkAPORulesPerItemForCommodityCodes(RequisitionItem purItem, List<VendorCommodityCode> vendorCommodityCodes, boolean commodityCodeRequired)
purItem
- vendorCommodityCodes
- commodityCodeRequired
- public List<RequisitionDocument> getRequisitionsAwaitingContractManagerAssignment()
RequisitionService
getRequisitionsAwaitingContractManagerAssignment
in interface RequisitionService
RequisitionService.getRequisitionsAwaitingContractManagerAssignment()
protected List<String> getDocumentsNumbersAwaitingContractManagerAssignment()
public int getCountOfRequisitionsAwaitingContractManagerAssignment()
RequisitionService
getCountOfRequisitionsAwaitingContractManagerAssignment
in interface RequisitionService
RequisitionService.getCountOfRequisitionsAwaitingContractManagerAssignment()
public OleRequisitionDocument generateRequisitionFromPurchaseOrder(PurchaseOrderDocument purDocument) throws org.kuali.rice.kew.api.exception.WorkflowException
generateRequisitionFromPurchaseOrder
in interface RequisitionService
reqDocument
- The requisition document from which we create the purchase order document.org.kuali.rice.kew.api.exception.WorkflowException
public OleRequisitionDocument populateRequisitionFromPurchaseOrder(OleRequisitionDocument requisitionDocument, PurchaseOrderDocument pdoc)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService boService)
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
public void setRequisitionDao(RequisitionDao requisitionDao)
public void setPurapService(PurapService purapService)
public org.kuali.rice.krad.service.KualiRuleService getRuleService()
public void setRuleService(org.kuali.rice.krad.service.KualiRuleService ruleService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
public void setUniversityDateService(UniversityDateService universityDateService)
public void setVendorService(VendorService vendorService)
public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
public void setCapitalAssetBuilderModuleService(CapitalAssetBuilderModuleService capitalAssetBuilderModuleService)
public void setPostalCodeValidationService(PostalCodeValidationService postalCodeValidationService)
protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.