public class MaintenancePreRulesBase extends org.kuali.rice.kns.rules.PromptBeforeValidationBase
| Modifier and Type | Field and Description |
|---|---|
protected AccountService |
accountService |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
configService |
| Constructor and Description |
|---|
MaintenancePreRulesBase()
Constructs a MaintenancePreRulesBase class and injects some services through setters
|
| Modifier and Type | Method and Description |
|---|---|
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.krad.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.core.api.config.property.ConfigurationService |
getConfigService() |
void |
setAccountService(AccountService accountService) |
void |
setConfigService(org.kuali.rice.core.api.config.property.ConfigurationService configService) |
protected org.kuali.rice.core.api.config.property.ConfigurationService configService
protected AccountService accountService
public MaintenancePreRulesBase()
public void setAccountService(AccountService accountService)
public void setConfigService(org.kuali.rice.core.api.config.property.ConfigurationService configService)
public boolean doPrompts(org.kuali.rice.krad.document.Document document)
doCustomPreRules(MaintenanceDocument)doPrompts in class org.kuali.rice.kns.rules.PromptBeforeValidationBaseorg.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.krad.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.core.api.config.property.ConfigurationService getConfigService()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.