|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.rules.DocumentRuleBase
org.kuali.rice.kns.rules.TransactionalDocumentRuleBase
org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionalDocumentBaseRule
org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionLinesDocumentBaseRules
org.kuali.kfs.module.endow.document.validation.impl.EndowmentAccountingLinesDocumentBaseRules
public class EndowmentAccountingLinesDocumentBaseRules
Constructor Summary | |
---|---|
EndowmentAccountingLinesDocumentBaseRules()
|
Method Summary | |
---|---|
String |
getAcctLineErrorPrefix(EndowmentAccountingLine line,
int index)
Gets the prefix for an accounting line error. |
protected boolean |
isAccountNumberEmpty(EndowmentAccountingLine line,
int index)
Checks if the account number is empty. |
protected boolean |
isChartCodeEmpty(EndowmentAccountingLine line,
int index)
Checks if the chart code is empty. |
protected boolean |
isObjectCodeEmpty(EndowmentAccountingLine line,
int index)
Checks if the object code is empty. |
boolean |
processAddEndowmentAccountingLineRules(EndowmentAccountingLinesDocument endowmentAccountingLinesDocument,
EndowmentAccountingLine endowmentAccountingLine)
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
|
boolean |
processDeleteAccountingLineRules(EndowmentAccountingLinesDocument EndowmentAccountingLinesDocument,
EndowmentAccountingLine EndowmentAccountingLine)
|
protected boolean |
validateAccount(EndowmentAccountingLine line,
int index)
Validates if the account exists in the database. |
protected boolean |
validateAccountingLine(EndowmentAccountingLinesDocument accountingLinesDocument,
EndowmentAccountingLine accountingLine,
int index)
Validates the given accounting Line. |
protected boolean |
validateAccountingLinesSizeGreaterThanZero(EndowmentAccountingLinesDocument document,
boolean isSource)
Validates that the document has at least one accounting line. |
protected boolean |
validateAccountIsActive(EndowmentAccountingLine line,
int index)
Validates that the account is active. |
protected boolean |
validateAccountNotExpired(EndowmentAccountingLine line,
int index)
Validates if the account is expired. |
protected boolean |
validateChartCode(EndowmentAccountingLine line,
int index)
Validates that the chart code exists in the database. |
protected boolean |
validateChartCodeIsActive(EndowmentAccountingLine line,
int index)
Validates if the chart code is Active. |
protected boolean |
validateGLTotalAmountMatchesKEMTotalAmount(EndowmentAccountingLinesDocumentBase endowmentAccountingLinesDocumentBase)
Validates that the total amount in the FROM section equals the total amount in the To section. |
protected boolean |
validateObjectCode(EndowmentAccountingLine line,
int index)
Validates that the object code exists. |
protected boolean |
validateObjectCodeIsActive(EndowmentAccountingLine line,
int index)
Validates that the object code is active. |
protected boolean |
validateObjectCodeObjectConsolidation(EndowmentAccountingLine line,
int index)
Validate that the object code does not represent assets, liabilities or funds balances (as indicated by the object code's object consolidation). |
protected boolean |
validateObjectCodeType(EndowmentAccountingLine line,
int index)
Validates that Object codes belonging to the object types of Expense not Expenditure and Income not Cash may not be used on a Transfer of Funds document. |
protected boolean |
validateProjectCode(EndowmentAccountingLine line,
int index)
Validates that if the project code is not empty it exists in the DB and is active. |
protected boolean |
validateSubAccountNumber(EndowmentAccountingLine line,
int index)
Validates that if the sub account number is not empty it exists in the DB and is active. |
protected boolean |
validateSubObjectCode(EndowmentAccountingLine line,
int index)
Validates that if the sub object code is not empty it exists in the DB and is active. |
Methods inherited from class org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionalDocumentBaseRule |
---|
errorAlreadyExists, getEndowmentTransactionSecurity, getEndowmentTransactionSecurityPrefix, isRegistrationCodeActive, isRegistrationCodeEmpty, isSecurityActive, isSecurityCodeEmpty, isSubTypeEmpty, putDocumentError, putDocumentError, putFieldError, putFieldError, putFieldError, putGlobalError, putGlobalError, putGlobalError, putGlobalsError, putGlobalsError, validateRegistrationCode, validateSecurityClassCodeTypeNotLiability, validateSecurityClassTypeCode, validateSecurityCode |
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, processCustomApproveDocumentBusinessRules, 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 |
Constructor Detail |
---|
public EndowmentAccountingLinesDocumentBaseRules()
Method Detail |
---|
public boolean processAddEndowmentAccountingLineRules(EndowmentAccountingLinesDocument endowmentAccountingLinesDocument, EndowmentAccountingLine endowmentAccountingLine)
processAddEndowmentAccountingLineRules
in interface AddEndowmentAccountingLineRule<EndowmentAccountingLinesDocument,EndowmentAccountingLine>
AddEndowmentAccountingLineRule.processAddEndowmentAccountingLineRules(org.kuali.kfs.module.endow.document.EndowmentAccountingLinesDocument,
org.kuali.kfs.module.endow.businessobject.EndowmentAccountingLine)
public boolean processDeleteAccountingLineRules(EndowmentAccountingLinesDocument EndowmentAccountingLinesDocument, EndowmentAccountingLine EndowmentAccountingLine)
processDeleteAccountingLineRules
in interface DeleteEndowmentAccountingLineRule<EndowmentAccountingLinesDocument,EndowmentAccountingLine>
DeleteEndowmentAccountingLineRule.processDeleteAccountingLineRules(org.kuali.kfs.module.endow.document.EndowmentAccountingLinesDocument,
org.kuali.kfs.module.endow.businessobject.EndowmentAccountingLine)
protected boolean validateAccountingLine(EndowmentAccountingLinesDocument accountingLinesDocument, EndowmentAccountingLine accountingLine, int index)
accountingLinesDocument
- accountingLine
- index
-
public String getAcctLineErrorPrefix(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean isChartCodeEmpty(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateChartCode(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateChartCodeIsActive(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean isAccountNumberEmpty(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateAccount(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateAccountIsActive(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateAccountNotExpired(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean isObjectCodeEmpty(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateObjectCode(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateObjectCodeIsActive(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateObjectCodeObjectConsolidation(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateObjectCodeType(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateSubAccountNumber(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateSubObjectCode(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateProjectCode(EndowmentAccountingLine line, int index)
line
- index
-
protected boolean validateAccountingLinesSizeGreaterThanZero(EndowmentAccountingLinesDocument document, boolean isSource)
document
- isSource
-
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomRouteDocumentBusinessRules
in class EndowmentTransactionLinesDocumentBaseRules
EndowmentTransactionLinesDocumentBaseRules.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document)
protected boolean validateGLTotalAmountMatchesKEMTotalAmount(EndowmentAccountingLinesDocumentBase endowmentAccountingLinesDocumentBase)
endowmentAccountingLinesDocumentBase
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |