|
||||||||||
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.kfs.sys.document.validation.impl.LedgerPostingDocumentRuleBase
org.kuali.kfs.sys.document.validation.impl.GeneralLedgerPostingDocumentRuleBase
org.kuali.kfs.module.cam.document.validation.impl.AssetTransferDocumentRule
public class AssetTransferDocumentRule
Field Summary | |
---|---|
protected AssetLockService |
assetLockService
|
protected AssetPaymentService |
assetPaymentService
|
protected AssetService |
assetService
|
protected static Map<AssetLocationService.LocationField,String> |
LOCATION_FIELD_MAP
|
protected ObjectCodeService |
objectCodeService
|
protected UniversityDateService |
universityDateService
|
Constructor Summary | |
---|---|
AssetTransferDocumentRule()
|
Method Summary | |
---|---|
protected boolean |
applyRules(org.kuali.rice.kns.document.Document document)
This method applies business rules |
protected boolean |
checkReferencesExist(AssetTransferDocument assetTransferDocument)
This method checks if reference objects exist in the database or not |
AssetLockService |
getAssetLockService()
|
AssetPaymentService |
getAssetPaymentService()
|
AssetService |
getAssetService()
|
ObjectCodeService |
getObjectCodeService()
|
UniversityDateService |
getUniversityDateService()
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
|
org.kuali.rice.kns.util.TypedArrayList |
putError(String propertyName,
String errorKey,
String... errorParameters)
Convenience method to append the path prefix |
protected List<Long> |
retrieveAssetNumberForLocking(org.kuali.rice.kns.document.Document document)
Retrieve asset number need to be locked. |
void |
setAssetPaymentService(AssetPaymentService assetPaymentService)
|
void |
setAssetService(AssetService assetService)
|
void |
setObjectCodeService(ObjectCodeService objectCodeService)
|
void |
setUniversityDateService(UniversityDateService universityDateService)
|
protected boolean |
validateAssetObjectCode(AssetObjectCode assetObjectCode,
String chartOfAccountsCode,
String finObjectSubTypeCode)
Asset Object Code must exist as an active status. |
protected boolean |
validateAssetObjectCodeDefn(AssetTransferDocument assetTransferDocument,
Asset asset)
|
protected boolean |
validateFinancialObjectCodes(Asset asset,
AssetPayment assetPayment,
AssetObjectCode assetObjectCode)
Check Financial Object Code for GLPE. |
protected boolean |
validateFinObjectCodeForGLPosting(String chartOfAccountsCode,
String finObjectCode,
ObjectCode finObject,
String glPostingType)
check existence and active status for given financial Object Code BO. |
protected boolean |
validateLocation(AssetTransferDocument assetTransferDocument)
This method validates location information provided by the user |
protected boolean |
validateOwnerAccount(AssetTransferDocument assetTransferDocument)
This method validates the new owner organization and account provided |
protected boolean |
validatePaymentObjectCodes(AssetTransferDocument assetTransferDocument)
checks that all the asset payments to be transfer has a valid object code in the new Chart of account code and current fiscal year |
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, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map<AssetLocationService.LocationField,String> LOCATION_FIELD_MAP
protected UniversityDateService universityDateService
protected AssetPaymentService assetPaymentService
protected AssetService assetService
protected ObjectCodeService objectCodeService
protected AssetLockService assetLockService
Constructor Detail |
---|
public AssetTransferDocumentRule()
Method Detail |
---|
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.kns.rules.DocumentRuleBase
DocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document)
protected List<Long> retrieveAssetNumberForLocking(org.kuali.rice.kns.document.Document document)
document
-
protected boolean validateAssetObjectCodeDefn(AssetTransferDocument assetTransferDocument, Asset asset)
protected boolean validateAssetObjectCode(AssetObjectCode assetObjectCode, String chartOfAccountsCode, String finObjectSubTypeCode)
asset
- assetPayment
-
protected boolean validateFinancialObjectCodes(Asset asset, AssetPayment assetPayment, AssetObjectCode assetObjectCode)
asset
- assetPayment
-
protected boolean validateFinObjectCodeForGLPosting(String chartOfAccountsCode, String finObjectCode, ObjectCode finObject, String glPostingType)
chartCode
- finObjectCode
- finObject
-
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.kns.rules.DocumentRuleBase
DocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document)
protected boolean applyRules(org.kuali.rice.kns.document.Document document)
document
- Transfer Document
protected boolean validateLocation(AssetTransferDocument assetTransferDocument)
assetTransferDocument
- Transfer Document
protected boolean checkReferencesExist(AssetTransferDocument assetTransferDocument)
assetTransferDocument
- Transfer document
protected boolean validateOwnerAccount(AssetTransferDocument assetTransferDocument)
assetTransferDocument
-
protected boolean validatePaymentObjectCodes(AssetTransferDocument assetTransferDocument)
assetTransferDocument
-
public org.kuali.rice.kns.util.TypedArrayList putError(String propertyName, String errorKey, String... errorParameters)
public UniversityDateService getUniversityDateService()
public void setUniversityDateService(UniversityDateService universityDateService)
public AssetPaymentService getAssetPaymentService()
public void setAssetPaymentService(AssetPaymentService assetPaymentService)
public AssetService getAssetService()
public AssetLockService getAssetLockService()
public void setAssetService(AssetService assetService)
public ObjectCodeService getObjectCodeService()
public void setObjectCodeService(ObjectCodeService objectCodeService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |