|
||||||||||
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
public class EndowmentTransactionLinesDocumentBaseRules
Constructor Summary | |
---|---|
EndowmentTransactionLinesDocumentBaseRules()
|
Method Summary | |
---|---|
protected boolean |
canKEMIDHaveAPrincipalTransaction(EndowmentTransactionLine line,
String prefix)
This method validates if a KEMID can have a principal transaction when IP indicator is equal to P. |
protected boolean |
checkCashTransactionEndowmentCode(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine line,
String prefix)
This methods checks to ensure for cash Tx do not have a Etran. |
protected void |
checkWhetherHaveSufficientFundsForCashBasedTransaction(EndowmentTransactionLine line,
String prefix)
Upon adding the transaction line, the system will check to see if there are sufficient funds to process the transaction (END_AVAIL_CSH_T). |
protected void |
checkWhetherReducePermanentlyRestrictedFund(EndowmentTransactionLine line,
String prefix)
For a true endowment, when the END_TRAN_LN_T: TRAN_IP_IND_CD is equal to P, a warning message will be placed in the document transaction line notifying the viewer that the transaction will reduce the value of the endowment at the time the transaction line is added. |
String |
getErrorPrefix(EndowmentTransactionLine line,
int index)
This method obtains Prefix for Error fields in UI. |
String |
getRegistrationForValidation(EndowmentTransactionLinesDocument endowmentTransactionLinesDocumentBase,
boolean isSource)
This method obtains Registration code from a document. |
Security |
getSecurityForValidation(EndowmentTransactionLinesDocument endowmentTransactionLinesDocumentBase,
boolean isSource)
This method obtains security from a document. |
String |
getSecurityIDForValidation(EndowmentTransactionLinesDocument endowmentTransactionLinesDocumentBase,
boolean isSource)
This method obtains security code from a document. |
protected boolean |
hasEtranCode(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument)
Tells if the document has an etran code. |
protected boolean |
isActiveKemId(EndowmentTransactionLine line,
String prefix)
This method determines if the KEMID is active. |
protected boolean |
isEndowmentTransactionCodeEmpty(EndowmentTransactionLine line,
String prefix)
This method validates the EndowmentTransaction code. |
protected boolean |
isKemIdCodeEmpty(EndowmentTransactionLine line,
String prefix)
This method validates the KEMID code. |
protected boolean |
nonCashTransaction(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument)
This method checks if this is a non-cash transaction. |
boolean |
processAddTransactionLineRules(EndowmentTransactionLinesDocument document,
EndowmentTransactionLine line)
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
|
boolean |
processDeleteTransactionLineRules(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine endowmentTransactionLine)
|
boolean |
processRefreshTransactionLineRules(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine endowmentTransactionLine,
Number index)
This method... |
protected boolean |
templateMethod(EndowmentTransactionLine line)
|
protected boolean |
transactionLineSizeGreaterThanZero(EndowmentTransactionLinesDocumentBase document,
boolean isSource)
Checks that the document has at least one transaction line. |
protected boolean |
validateChartMatch(EndowmentTransactionLine line,
String prefix)
This method validates if the chart is matched between GL Account in the KEMID and GL Link in the Endowment Transaction Code. |
protected boolean |
validateEndowmentTransactionCode(EndowmentTransactionLine line,
String prefix)
This method validates the EndowmentTransaction code and tries to create a EndowmentTransactionCode object from the code. |
protected boolean |
validateEndowmentTransactionTypeCode(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine line,
String prefix)
This method checks if the ETRAN code has a type code of E or I. |
protected boolean |
validateKemId(EndowmentTransactionLine line,
String prefix)
This method validates the KemId code and tries to create a KEMID object from the code. |
protected boolean |
validateNonDuplicateSecurityCodes(EndowmentSecurityDetailsDocumentBase document)
This method validates that the source and target security lines are different from each other. |
protected boolean |
validateNoTransactionRestriction(EndowmentTransactionLine line,
String prefix)
This method checks if the KEMID restriction code is "NTRAN" |
protected boolean |
validateRegistration(boolean isValid,
EndowmentSecurityDetailsDocumentBase document,
boolean isSource)
This method is a collection if validation performed on Registration Code. |
protected boolean |
validateSecurity(boolean isValid,
EndowmentSecurityDetailsDocumentBase document,
boolean isSource)
This method is a collection if validation performed on Security. |
protected boolean |
validateSecurityEtranChartMatch(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine line,
String prefix,
boolean isSource)
Validates that the security chart and the etran code chart match. |
protected boolean |
validateSourceTargetAmountEqual(SecurityTransferDocument securityTransferDocument)
This method validates if the source & target units are equal. |
protected boolean |
validateSourceTargetUnitsEqual(SecurityTransferDocument securityTransferDocument)
This method validates if the source & target units are equal. |
boolean |
validateSufficientUnits(boolean isAdd,
EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine line,
int transLineIndex,
int taxLotIndex)
Validates that the KEMID has sufficient units in the tax lots to perform the transaction. |
protected boolean |
validateTaxLots(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine transLine,
int transLineIndex)
Validates that the tax lots for a transaction line correspond to the information in that transaction line. |
protected boolean |
validateTotalUnits(EndowmentTransactionalDocument document,
EndowmentTransactionLine transactionLine,
int index)
Checks that the transaction line units match the tax lot lines total number of units. |
protected boolean |
validateTransactionAmountGreaterThanZero(EndowmentTransactionLine line,
String prefix)
This method checks is the Transaction amount entered is greater than Zero. |
protected boolean |
validateTransactionAmountLessThanZero(EndowmentTransactionLine line,
String prefix)
This method checks is the Transaction amount entered is greater than Zero. |
protected boolean |
validateTransactionLine(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
EndowmentTransactionLine line,
int index)
This method validates a transaction line. |
protected boolean |
validateTransactionUnitsAmountEqual(EndowmentTransactionLine line,
String prefix)
This method checks is the Transaction Units & Amount entered are equal. |
protected boolean |
validateTransactionUnitsGreaterThanZero(EndowmentTransactionLine line,
String prefix)
This method checks is the Transaction Units entered is greater than Zero. |
protected boolean |
validateTransactionUnitsLessThanZero(EndowmentTransactionLine line,
String prefix)
This method checks is the Transaction Units entered is greater than Zero. |
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 EndowmentTransactionLinesDocumentBaseRules()
Method Detail |
---|
public boolean processDeleteTransactionLineRules(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine endowmentTransactionLine)
processDeleteTransactionLineRules
in interface DeleteTransactionLineRule<EndowmentTransactionLinesDocument,EndowmentTransactionLine>
DeleteTransactionLineRule.processDeleteTransactionLineRules(org.kuali.kfs.module.endow.document.EndowmentTransactionLinesDocument,
org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine)
public boolean processAddTransactionLineRules(EndowmentTransactionLinesDocument document, EndowmentTransactionLine line)
processAddTransactionLineRules
in interface AddTransactionLineRule<EndowmentTransactionLinesDocument,EndowmentTransactionLine>
AddTransactionLineRule.processAddTransactionLineRules(org.kuali.kfs.module.endow.document.EndowmentTransactionLinesDocument,
org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine)
public boolean processRefreshTransactionLineRules(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine endowmentTransactionLine, Number index)
RefreshTransactionLineRule
processRefreshTransactionLineRules
in interface RefreshTransactionLineRule<EndowmentTransactionLinesDocument,EndowmentTransactionLine,Number>
RefreshTransactionLineRule.processRefreshTransactionLineRules(org.kuali.kfs.module.endow.document.EndowmentTransactionLinesDocument,
org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine, java.lang.Number)
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomRouteDocumentBusinessRules
in class EndowmentTransactionalDocumentBaseRule
DocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document)
public String getErrorPrefix(EndowmentTransactionLine line, int index)
line
- index
-
public String getSecurityIDForValidation(EndowmentTransactionLinesDocument endowmentTransactionLinesDocumentBase, boolean isSource)
endowmentTransactionLinesDocumentBase
- line
-
public String getRegistrationForValidation(EndowmentTransactionLinesDocument endowmentTransactionLinesDocumentBase, boolean isSource)
endowmentTransactionLinesDocumentBase
- line
-
public Security getSecurityForValidation(EndowmentTransactionLinesDocument endowmentTransactionLinesDocumentBase, boolean isSource)
endowmentTransactionLinesDocumentBase
- line
-
protected boolean validateTransactionLine(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine line, int index)
line
- index
-
protected boolean nonCashTransaction(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument)
endowmentTransactionLinesDocumentBase
-
protected boolean hasEtranCode(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument)
endowmentTransactionLinesDocument
-
protected boolean isKemIdCodeEmpty(EndowmentTransactionLine line, String prefix)
tranSecurity
-
protected boolean validateKemId(EndowmentTransactionLine line, String prefix)
line
-
protected boolean isActiveKemId(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateNoTransactionRestriction(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateTransactionAmountGreaterThanZero(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateTransactionAmountLessThanZero(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateTransactionUnitsGreaterThanZero(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateTransactionUnitsLessThanZero(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateTransactionUnitsAmountEqual(EndowmentTransactionLine line, String prefix)
line
- prefix
-
protected boolean validateEndowmentTransactionTypeCode(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine line, String prefix)
line
-
protected boolean isEndowmentTransactionCodeEmpty(EndowmentTransactionLine line, String prefix)
tranSecurity
-
protected boolean validateEndowmentTransactionCode(EndowmentTransactionLine line, String prefix)
line
-
protected boolean canKEMIDHaveAPrincipalTransaction(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateChartMatch(EndowmentTransactionLine line, String prefix)
line
-
protected boolean validateSecurityEtranChartMatch(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine line, String prefix, boolean isSource)
endowmentTransactionLinesDocument
- line
- prefix
- isSource
-
protected void checkWhetherReducePermanentlyRestrictedFund(EndowmentTransactionLine line, String prefix)
line
- protected void checkWhetherHaveSufficientFundsForCashBasedTransaction(EndowmentTransactionLine line, String prefix)
line
- protected boolean templateMethod(EndowmentTransactionLine line)
protected boolean checkCashTransactionEndowmentCode(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine line, String prefix)
endowmentTransactionLinesDocumentBase
- line
- prefix
-
protected boolean transactionLineSizeGreaterThanZero(EndowmentTransactionLinesDocumentBase document, boolean isSource)
document
- isSource
-
protected boolean validateRegistration(boolean isValid, EndowmentSecurityDetailsDocumentBase document, boolean isSource)
isValid
- liabilityIncreaseDocument
-
protected boolean validateSecurity(boolean isValid, EndowmentSecurityDetailsDocumentBase document, boolean isSource)
isValid
- document
-
protected boolean validateNonDuplicateSecurityCodes(EndowmentSecurityDetailsDocumentBase document)
document
-
public boolean validateSufficientUnits(boolean isAdd, EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine line, int transLineIndex, int taxLotIndex)
endowmentTransactionLinesDocumentBase
- line
- index
-
protected boolean validateTaxLots(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine transLine, int transLineIndex)
endowmentTransactionLinesDocument
- transLine
- transLineIndex
-
protected boolean validateTotalUnits(EndowmentTransactionalDocument document, EndowmentTransactionLine transactionLine, int index)
document
- transactionLine
- index
-
protected boolean validateSourceTargetUnitsEqual(SecurityTransferDocument securityTransferDocument)
securityTransferDocument
-
protected boolean validateSourceTargetAmountEqual(SecurityTransferDocument securityTransferDocument)
securityTransferDocument
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |