|
||||||||||
| 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.coa.document.validation.impl.MaintenancePreRulesBase
public class MaintenancePreRulesBase
General PreRules checks for all Maintenance docs that needs to occur while still in the Struts processing.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession |
| Field Summary | |
|---|---|
protected AccountService |
accountService
|
protected org.kuali.rice.kns.service.KualiConfigurationService |
configService
|
| Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
buttonClicked, event, form, LOG, question |
| Constructor Summary | |
|---|---|
MaintenancePreRulesBase()
Constructs a MaintenancePreRulesBase class and injects some services through setters |
|
| Method Summary | |
|---|---|
protected String |
buildContinuationConfirmationQuestion(String accName,
String expiredAccount,
String continuationAccount)
This method builds up the continuation account confirmation question that will be presented to the user |
protected Account |
checkForContinuationAccount(String accName,
String chart,
String accountNumber,
String accountName)
This method checks for continuation accounts and presents the user with a question regarding their use on this account. |
protected Account |
checkForContinuationAccount(String accName,
String chart,
String accountNumber,
String accountName,
boolean allowExpiredAccount)
This method checks for continuation accounts, returns the continuation account if it is found, null otherwise |
protected boolean |
doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This is a hook for sub-classes to implement their own pre-rules. |
boolean |
doPrompts(org.kuali.rice.kns.document.Document document)
This is called from the rules service to execute our rules A hook is provided here for sub-classes to override the doCustomPreRules(MaintenanceDocument) |
AccountService |
getAccountService()
|
org.kuali.rice.kns.service.KualiConfigurationService |
getConfigService()
|
void |
setAccountService(AccountService accountService)
|
void |
setConfigService(org.kuali.rice.kns.service.KualiConfigurationService configService)
|
| 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 |
| Field Detail |
|---|
protected org.kuali.rice.kns.service.KualiConfigurationService configService
protected AccountService accountService
| Constructor Detail |
|---|
public MaintenancePreRulesBase()
| Method Detail |
|---|
public void setAccountService(AccountService accountService)
public void setConfigService(org.kuali.rice.kns.service.KualiConfigurationService configService)
public boolean doPrompts(org.kuali.rice.kns.document.Document document)
doCustomPreRules(MaintenanceDocument)
doPrompts in class org.kuali.rice.kns.rules.PromptBeforeValidationBaseorg.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.Document)protected boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
maintenanceDocument -
protected Account checkForContinuationAccount(String accName,
String chart,
String accountNumber,
String accountName,
boolean allowExpiredAccount)
accName - chart - accountNumber - accountName - allowExpiredAccount -
protected Account checkForContinuationAccount(String accName,
String chart,
String accountNumber,
String accountName)
accName - chart - accountNumber - accountName -
protected String buildContinuationConfirmationQuestion(String accName,
String expiredAccount,
String continuationAccount)
accName - expiredAccount - continuationAccount -
public AccountService getAccountService()
public org.kuali.rice.kns.service.KualiConfigurationService getConfigService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||