org.kuali.kfs.module.purap.document.validation.impl
Class ContractManagerAssignmentDocumentRule

java.lang.Object
  extended by org.kuali.rice.kns.rules.DocumentRuleBase
      extended by org.kuali.rice.kns.rules.TransactionalDocumentRuleBase
          extended by org.kuali.kfs.module.purap.document.validation.impl.ContractManagerAssignmentDocumentRule
All Implemented Interfaces:
org.kuali.rice.kns.rule.AddAdHocRoutePersonRule, org.kuali.rice.kns.rule.AddAdHocRouteWorkgroupRule, org.kuali.rice.kns.rule.AddNoteRule, org.kuali.rice.kns.rule.ApproveDocumentRule, org.kuali.rice.kns.rule.BusinessRule, org.kuali.rice.kns.rule.RouteDocumentRule, org.kuali.rice.kns.rule.SaveDocumentRule, org.kuali.rice.kns.rule.SendAdHocRequestsRule

public class ContractManagerAssignmentDocumentRule
extends org.kuali.rice.kns.rules.TransactionalDocumentRuleBase

Business rule(s) applicable to Contract Manager Assignment document.


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
ContractManagerAssignmentDocumentRule()
           
 
Method Summary
protected  boolean processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.rule.event.ApproveDocumentEvent approveEvent)
           
protected  boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
           
protected  boolean processValidation(ContractManagerAssignmentDocument document)
          Perform validation for Contract Manager Assignment document such as validating contract manager codes.
 boolean validateContractManagerCodes(List contractManagerAssignmentDetails)
          Review the list of ContractManagerAssignmentDetails where the user has entered ContractManagerCodes, validates that each entered code is valid; on the other hand, validate that at least one row has a valid CM code assigned.
 
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPersonService, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

ContractManagerAssignmentDocumentRule

public ContractManagerAssignmentDocumentRule()
Method Detail

processCustomRouteDocumentBusinessRules

protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
Overrides:
processCustomRouteDocumentBusinessRules in class org.kuali.rice.kns.rules.DocumentRuleBase
See Also:
DocumentRuleBase.processCustomRouteDocumentBusinessRules(Document)

processCustomApproveDocumentBusinessRules

protected boolean processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.rule.event.ApproveDocumentEvent approveEvent)
Overrides:
processCustomApproveDocumentBusinessRules in class org.kuali.rice.kns.rules.DocumentRuleBase
See Also:
DocumentRuleBase.processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.rule.event.ApproveDocumentEvent)

processValidation

protected boolean processValidation(ContractManagerAssignmentDocument document)
Perform validation for Contract Manager Assignment document such as validating contract manager codes.

Parameters:
document - Contract Manager Assignment document
Returns:
Boolean indicating if validation succeeded

validateContractManagerCodes

public boolean validateContractManagerCodes(List contractManagerAssignmentDetails)
Review the list of ContractManagerAssignmentDetails where the user has entered ContractManagerCodes, validates that each entered code is valid; on the other hand, validate that at least one row has a valid CM code assigned.

Parameters:
contractManagerAssignmentDetails - A list containing the code to be validated.
Returns:
Boolean indicating if validation succeeded


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.