public class OLECapitalAssetInformationValidation extends GenericValidation
| Constructor and Description |
|---|
OLECapitalAssetInformationValidation() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accountingLinesDisributedToCapitalAssets(OLEAccountingDocument accountingDocument)
validates that all the accounting lines in source/target section have been
distributed in the capital assets.
|
protected boolean |
accountLineExists(OLEAccountingDocument accountingDocument,
CapitalAssetAccountsGroupDetails groupAccountLine) |
protected boolean |
amountsForCapitalAssetsAndAccountLinesMatch(OLEAccountingDocument accountingDocument)
total amount in each capital asset is compared to the distributed accounting lines
and returns true if they are equal, else return false.
|
protected boolean |
amountsForCapitalAssetsAndDistributedAccountLinesMatch(OLEAccountingDocument accountingDocument)
compares each capital asset amount to its distributed accounting lines.
|
protected boolean |
capitalAssetsAccountLinesMatchToAccountingLines(OLEAccountingDocument accountingDocument)
validates that all the accounting lines in capital assets do exist
source/target accounting line sections.
|
protected boolean |
checkAccountingLineExists(OLEAccountingDocument accountingDocument,
CapitalAssetInformation capitalAsset,
String errorPathPrefix)
compares the account number from the capital asset accounting lines
to the source/target accounting lines.
|
protected boolean |
checkAmount(CapitalAssetInformation capitalAsset,
String errorPathPrefix)
compares the capital asset amount to this accounting lines and if they match return
true else return false
to the source/target accounting lines.
|
protected boolean |
checkSourceDistributedAccountingLineExists(SourceAccountingLine accountLine,
List<CapitalAssetInformation> capitalAssets)
checks source accounting lines again the distributed accounting line and if found
return true else false so that this distributed accounting line may be removed.
|
protected boolean |
checkTargetDistributedAccountingLineExists(TargetAccountingLine accountLine,
List<CapitalAssetInformation> capitalAssets)
checks target accounting lines again the distributed accounting line and if found
return true else false so that this distributed accounting line may be removed.
|
protected org.kuali.rice.core.api.util.type.KualiDecimal |
getSourceDistributedTotalAmount(SourceAccountingLine accountLine,
List<CapitalAssetInformation> capitalAssets)
checks amount from source accounting line to that of all distributed accounting line
from capital assets and return true if matched else false.
|
protected org.kuali.rice.core.api.util.type.KualiDecimal |
getTargetDistributedTotalAmount(TargetAccountingLine accountLine,
List<CapitalAssetInformation> capitalAssets)
checks amount from target accounting line to that of all distributed accounting line
from capital assets and return true if matched else false.
|
protected boolean |
hasValidCapitalAssetInformation(OLEAccountingDocument accountingDocument) |
void |
setAccountingDocumentForValidation(OLEAccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters
|
setQuitOnFail, shouldQuitOnFail, stageValidationgetParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterPropertiespublic OLECapitalAssetInformationValidation()
public boolean validate(AttributedDocumentEvent event)
ValidationValidation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)protected boolean accountingLinesDisributedToCapitalAssets(OLEAccountingDocument accountingDocument)
accountingDocument - protected boolean checkSourceDistributedAccountingLineExists(SourceAccountingLine accountLine, List<CapitalAssetInformation> capitalAssets)
accountLine - capitalAssets - protected boolean checkTargetDistributedAccountingLineExists(TargetAccountingLine accountLine, List<CapitalAssetInformation> capitalAssets)
accountLine - capitalAssets - protected boolean hasValidCapitalAssetInformation(OLEAccountingDocument accountingDocument)
protected boolean capitalAssetsAccountLinesMatchToAccountingLines(OLEAccountingDocument accountingDocument)
accountingDocument - protected boolean checkAccountingLineExists(OLEAccountingDocument accountingDocument, CapitalAssetInformation capitalAsset, String errorPathPrefix)
accountingDocument - capitalAsset - protected boolean accountLineExists(OLEAccountingDocument accountingDocument, CapitalAssetAccountsGroupDetails groupAccountLine)
accountingDocument - groupAccount - protected boolean amountsForCapitalAssetsAndAccountLinesMatch(OLEAccountingDocument accountingDocument)
accountingDocument - protected org.kuali.rice.core.api.util.type.KualiDecimal getSourceDistributedTotalAmount(SourceAccountingLine accountLine, List<CapitalAssetInformation> capitalAssets)
accountLine - capitalAssets - protected org.kuali.rice.core.api.util.type.KualiDecimal getTargetDistributedTotalAmount(TargetAccountingLine accountLine, List<CapitalAssetInformation> capitalAssets)
accountLine - capitalAssets - protected boolean amountsForCapitalAssetsAndDistributedAccountLinesMatch(OLEAccountingDocument accountingDocument)
accountingDocument - protected boolean checkAmount(CapitalAssetInformation capitalAsset, String errorPathPrefix)
capitalAsset - public void setAccountingDocumentForValidation(OLEAccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation - The accountingDocumentForValidation to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.