|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.kfs.module.purap.document.validation.impl.PurapDocumentPreRulesBase
org.kuali.kfs.module.purap.document.validation.impl.AccountsPayableDocumentPreRulesBase
org.kuali.kfs.module.purap.document.validation.impl.PaymentRequestDocumentPreRules
public class PaymentRequestDocumentPreRules
Business pre rule(s) applicable to Payment Request documents.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession |
| Field Summary |
|---|
| Fields inherited from class org.kuali.kfs.module.purap.document.validation.impl.AccountsPayableDocumentPreRulesBase |
|---|
LOG |
| Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
buttonClicked, event, form, question |
| Constructor Summary | |
|---|---|
PaymentRequestDocumentPreRules()
Default Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
askForConfirmation(String questionType,
String messageConstant)
Prompts user to confirm with a Yes or No to a question being asked. |
protected boolean |
checkCAMSWarningStatus(PurchasingAccountsPayableDocument purapDocument)
|
boolean |
confirmEncumberNextFiscalYear(PaymentRequestDocument preq)
|
boolean |
confirmEncumberPriorFiscalYear(PaymentRequestDocument preq)
|
boolean |
confirmExpiredAccount(PaymentRequestDocument preq)
|
boolean |
confirmPayDayNotOverThresholdDaysAway(PaymentRequestDocument preq)
Validates if the pay date threshold has not been passed, if so confirmation is required by the user to exceed the threshold. |
boolean |
confirmUnusedTradeIn(PaymentRequestDocument preq)
|
String |
createInvoiceNoMatchQuestionText(AccountsPayableDocument accountsPayableDocument)
Creates the text for the invoice no match question being asked of the user. |
boolean |
doPrompts(org.kuali.rice.kns.document.Document document)
Main hook point to perform rules check. |
String |
getDocumentName()
Exists to be overriden by the child class and return the name of the document. |
protected String |
prepareQuestionText(String questionType,
String questionText)
Creates the actual text of the question, replacing place holders like pay date threshold with an actual constant value. |
| Methods inherited from class org.kuali.kfs.module.purap.document.validation.impl.AccountsPayableDocumentPreRulesBase |
|---|
confirmInvoiceNoMatchOverride, validateInvoiceTotalsAreMismatched |
| Methods inherited from class org.kuali.kfs.module.purap.document.validation.impl.PurapDocumentPreRulesBase |
|---|
confirmFixCapitalAssetWarningConditions |
| Methods inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
abortRulesCheck, askOrAnalyzeYesNoQuestion, processPrompts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaymentRequestDocumentPreRules()
| Method Detail |
|---|
public boolean doPrompts(org.kuali.rice.kns.document.Document document)
doPrompts in class AccountsPayableDocumentPreRulesBaseorg.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.Document)
protected boolean askForConfirmation(String questionType,
String messageConstant)
questionType - - type of questionmessageConstant - - key to retrieve message
protected String prepareQuestionText(String questionType,
String questionText)
questionType - - type of questionquestionText - - actual text of question pulled from resource file
public boolean confirmPayDayNotOverThresholdDaysAway(PaymentRequestDocument preq)
preq - - payment request document
public boolean confirmUnusedTradeIn(PaymentRequestDocument preq)
public boolean confirmExpiredAccount(PaymentRequestDocument preq)
public boolean confirmEncumberNextFiscalYear(PaymentRequestDocument preq)
public boolean confirmEncumberPriorFiscalYear(PaymentRequestDocument preq)
public String getDocumentName()
AccountsPayableDocumentPreRulesBase
getDocumentName in class AccountsPayableDocumentPreRulesBaseAccountsPayableDocumentPreRulesBase.getDocumentName()public String createInvoiceNoMatchQuestionText(AccountsPayableDocument accountsPayableDocument)
AccountsPayableDocumentPreRulesBase
createInvoiceNoMatchQuestionText in class AccountsPayableDocumentPreRulesBaseaccountsPayableDocument - - to be used by overriding method.
AccountsPayableDocumentPreRulesBase.createInvoiceNoMatchQuestionText(org.kuali.kfs.module.purap.document.AccountsPayableDocument)protected boolean checkCAMSWarningStatus(PurchasingAccountsPayableDocument purapDocument)
checkCAMSWarningStatus in class PurapDocumentPreRulesBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||