public class AccountPreRules extends MaintenancePreRulesBase
Modifier and Type | Field and Description |
---|---|
protected AccountService |
accountService |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
configService |
protected static String |
DEFAULT_ACCOUNT_TYPE_CODE |
protected static String |
DEFAULT_STATE_CODE |
protected static String |
ENDOWMENT_FUND_CD |
protected static String |
GENERAL_FUND_CD |
protected static org.apache.log4j.Logger |
LOG |
protected Account |
newAccount |
protected static String |
PLANT_FUND_CD |
protected org.kuali.rice.location.api.postalcode.PostalCodeService |
postalZipCodeService |
protected static String |
RESTRICTED_CD_NOT_APPLICABLE |
protected static String |
RESTRICTED_CD_RESTRICTED |
protected static String |
RESTRICTED_CD_TEMPORARILY_RESTRICTED |
protected static String |
RESTRICTED_CD_UNRESTRICTED |
protected static String |
RESTRICTED_FUND_CD |
Constructor and Description |
---|
AccountPreRules() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkForContinuationAccounts()
This method checks for continuation accounts and presents the user with a question regarding their use on this account.
|
protected void |
checkForDefaultSubFundGroupStatus()
This method sets a default restricted status on an account if and only if the status code in SubFundGroup has been set and
the user answers in the affirmative that they definitely want to use this SubFundGroup.
|
protected boolean |
doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
Executes the following pre rules
MaintenancePreRulesBase.checkForContinuationAccount(String, String, String, String)
checkForDefaultSubFundGroupStatus()
newAccountDefaults(MaintenanceDocument)
setStateFromZip(org.kuali.rice.kns.document.MaintenanceDocument)
This does not fail on rule failures |
protected void |
newAccountDefaults(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method sets up some defaults for new Account
|
protected void |
setStateFromZip(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method lookups state and city from populated zip, set the values on the form
|
protected void |
setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
This method sets the convenience objects like newAccount and oldAccount, so you have short and easy handles to the new and
old objects contained in the maintenance document.
|
buildContinuationConfirmationQuestion, checkForContinuationAccount, checkForContinuationAccount, doPrompts, getAccountService, getConfigService, setAccountService, setConfigService
protected static org.apache.log4j.Logger LOG
protected static final String DEFAULT_STATE_CODE
protected static final String DEFAULT_ACCOUNT_TYPE_CODE
protected org.kuali.rice.core.api.config.property.ConfigurationService configService
protected AccountService accountService
protected org.kuali.rice.location.api.postalcode.PostalCodeService postalZipCodeService
protected Account newAccount
protected static final String GENERAL_FUND_CD
protected static final String RESTRICTED_FUND_CD
protected static final String ENDOWMENT_FUND_CD
protected static final String PLANT_FUND_CD
protected static final String RESTRICTED_CD_RESTRICTED
protected static final String RESTRICTED_CD_UNRESTRICTED
protected static final String RESTRICTED_CD_TEMPORARILY_RESTRICTED
protected static final String RESTRICTED_CD_NOT_APPLICABLE
public AccountPreRules()
protected boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
doCustomPreRules
in class MaintenancePreRulesBase
MaintenancePreRulesBase.doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected void checkForDefaultSubFundGroupStatus()
protected void checkForContinuationAccounts()
protected void setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- - the maintenanceDocument being evaluatedprotected void newAccountDefaults(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
maintenanceDocument
- protected void setStateFromZip(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
maintenanceDocument
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.