|
||||||||||
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.maintenance.rules.MaintenanceDocumentRuleBase
org.kuali.kfs.module.cam.document.validation.impl.AssetRetirementGlobalRule
public class AssetRetirementGlobalRule
Business rules applicable to AssetLocationGlobal documents.
Field Summary | |
---|---|
protected org.kuali.rice.kns.bo.PersistableBusinessObject |
bo
|
protected static org.apache.log4j.Logger |
LOG
|
Fields inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase |
---|
boDictionaryService, boService, businessObjectAuthorizationService, configService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, personService, priorErrorPath, roleService, workflowDocumentService |
Constructor Summary | |
---|---|
AssetRetirementGlobalRule()
Constructs a AssetLocationGlobalRule |
Method Summary | |
---|---|
protected boolean |
allPaymentsFederalOwned(AssetRetirementGlobal assetRetirementGlobal)
Check if all asset payments are federal owned. |
protected boolean |
assetRetirementValidation(AssetRetirementGlobal assetRetirementGlobal,
org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
Validate Asset Retirement Global and Details. |
protected boolean |
checkRetirementDetailOneLine(AssetRetirementGlobalDetail assetRetirementGlobalDetail,
AssetRetirementGlobal assetRetirementGlobal,
org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method validates one asset is a valid asset and no duplicate with target asset when merge. |
protected boolean |
checkRetireMultipleAssets(String retirementReasonCode,
List<AssetRetirementGlobalDetail> assetRetirementDetails,
Integer maxNumber,
org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
Check if only single asset is allowed to retire. |
protected AssetObjectCodeService |
getAssetObjectCodeService()
|
protected AssetPaymentService |
getAssetPaymentService()
|
protected AssetRetirementService |
getAssetRetirementService()
|
protected AssetService |
getAssetService()
|
protected CapitalAssetManagementModuleService |
getCapitalAssetManagementModuleService()
|
protected boolean |
isDocumentValidForSave(org.kuali.rice.kns.document.MaintenanceDocument document)
Forces the processing of rules when saving. |
boolean |
processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document,
String collectionName,
org.kuali.rice.kns.bo.PersistableBusinessObject line)
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
Processes rules when saving this global. |
protected List<Long> |
retrieveAssetNumbersForLocking(AssetRetirementGlobal assetRetirementGlobal)
|
protected boolean |
setAssetLocks(org.kuali.rice.kns.document.MaintenanceDocument document)
|
void |
setupConvenienceObjects()
|
protected boolean |
validateActiveCapitalAsset(Asset asset)
Only active capital equipment can be retired using the asset retirement document. |
protected boolean |
validateAssetObjectCode(Asset asset,
AssetPayment assetPayment)
Asset Object Code must exist as an active status. |
protected boolean |
validateAssetOnLoan(Asset asset)
Validates whether or not asset is on loan status |
protected boolean |
validateCashReceiptFinancialDocumentNumber(String documentNumber)
validates Cash Receipt Financial Document Number |
protected boolean |
validateDuplicateAssetNumber(Long targetAssetNumber,
Long sourceAssetNumber)
Check for Merge Asset, no duplicate capitalAssetNumber between "from" and "to". |
protected boolean |
validateFinancialObjectCodes(Asset asset,
AssetPayment assetPayment)
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 |
validateMergeTargetAsset(AssetRetirementGlobal assetRetirementGlobal)
Validate mergedTargetCapitalAsset. |
protected boolean |
validateNonMoveableAsset(Asset asset,
org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
User must be in work group CM_SUPER_USERS to retire a non-moveable asset. |
protected boolean |
validateObjectCodesForGLPosting(AssetRetirementGlobal assetRetirementGlobal)
Validate Asset Object Codes and Fin Object Codes eligible for GL Posting. |
protected boolean |
validateRequiredGlobalFields(AssetRetirementGlobal assetRetirementGlobal)
Validate required fields for given retirement reason code |
protected boolean |
validateRetirementDetails(AssetRetirementGlobal assetRetirementGlobal,
org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method validates each asset to be retired. |
Methods inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase |
---|
apcRuleFails, applyApcRule, checkEmptyBOField, checkEmptyDocumentField, checkEmptyValue, checkForPartiallyFilledOutReferenceForeignKeys, clearErrorPath, consolidateFieldNames, dataDictionaryValidate, errorAlreadyExists, getBoDictionaryService, getBoService, getBusinessObjectAuthorizationService, getConfigService, getDateTimeService, getDdService, getDictionaryValidationService, getDocumentHelperService, getFieldLabel, getFieldLabel, getHumanReadablePrimaryKeyFieldNames, getMaintDocDictionaryService, getNewBo, getOldBo, getPersistenceService, getPersistenceStructureService, getPersonService, getRoleService, getWorkflowDocumentService, isCorrectMaintenanceClass, isDocumentInactivatingBusinessObject, primaryKeyCheck, processAddCollectionLineBusinessRules, processApproveDocument, processCustomApproveDocumentBusinessRules, processGlobalApproveDocumentBusinessRules, processGlobalRouteDocumentBusinessRules, processGlobalSaveDocumentBusinessRules, processInactivationBlockChecking, processInactivationBlockChecking, processRouteDocument, processSaveDocument, putDocumentError, putDocumentError, putFieldError, putFieldError, putFieldError, putFieldErrorWithShortLabel, putGlobalError, putGlobalError, putGlobalError, putGlobalsError, putGlobalsError, putInactivationBlockingErrorOnPage, resumeErrorPath, setBoDictionaryService, setBoService, setBusinessObjectAuthorizationService, setConfigService, setDdService, setDictionaryValidationService, setDocumentHelperService, setMaintDocDictionaryService, setNewBo, setPersistenceService, setPersistenceStructureService, setPersonService, setupBaseConvenienceObjects, setWorkflowDocumentService, showErrorMap, validateDocumentStructure, validateDuplicateIdentifierInDataDictionary, validateGlobalBusinessObjectPersistable, validateMaintenanceDocument |
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase |
---|
getDataDictionaryService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, 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 org.apache.log4j.Logger LOG
protected org.kuali.rice.kns.bo.PersistableBusinessObject bo
Constructor Detail |
---|
public AssetRetirementGlobalRule()
Method Detail |
---|
public void setupConvenienceObjects()
setupConvenienceObjects
in interface org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRule
setupConvenienceObjects
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.setupConvenienceObjects()
protected boolean isDocumentValidForSave(org.kuali.rice.kns.document.MaintenanceDocument document)
isDocumentValidForSave
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
document
- MaintenanceDocument
MaintenanceDocumentRuleBase.isDocumentValidForSave(org.kuali.rice.kns.document.MaintenanceDocument)
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
document
- MaintenanceDocument type of document to be processed.
MaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected List<Long> retrieveAssetNumbersForLocking(AssetRetirementGlobal assetRetirementGlobal)
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
protected boolean setAssetLocks(org.kuali.rice.kns.document.MaintenanceDocument document)
protected CapitalAssetManagementModuleService getCapitalAssetManagementModuleService()
protected boolean allPaymentsFederalOwned(AssetRetirementGlobal assetRetirementGlobal)
assetRetirementGlobal
-
protected boolean validateObjectCodesForGLPosting(AssetRetirementGlobal assetRetirementGlobal)
assetRetirementGlobal
-
protected boolean validateFinancialObjectCodes(Asset asset, AssetPayment assetPayment)
asset
- assetPayment
-
protected boolean validateFinObjectCodeForGLPosting(String chartOfAccountsCode, String finObjectCode, ObjectCode finObject, String glPostingType)
chartCode
- finObjectCode
- finObject
-
protected boolean validateAssetObjectCode(Asset asset, AssetPayment assetPayment)
asset
- assetPayment
-
public boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document, String collectionName, org.kuali.rice.kns.bo.PersistableBusinessObject line)
processCustomAddCollectionLineBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument,
java.lang.String, org.kuali.rice.kns.bo.PersistableBusinessObject)
protected boolean checkRetireMultipleAssets(String retirementReasonCode, List<AssetRetirementGlobalDetail> assetRetirementDetails, Integer maxNumber, org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
retirementReasonCode
- assetRetirementDetails
- maxNumber
- maintenanceDocument
-
protected boolean validateRetirementDetails(AssetRetirementGlobal assetRetirementGlobal, org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
assetRetirementGlobalDetails
- maintenanceDocument
-
protected boolean checkRetirementDetailOneLine(AssetRetirementGlobalDetail assetRetirementGlobalDetail, AssetRetirementGlobal assetRetirementGlobal, org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
assetRetirementGlobalDetail
- assetRetirementGlobal
- maintenanceDocument
-
protected boolean validateDuplicateAssetNumber(Long targetAssetNumber, Long sourceAssetNumber)
targetAssetNumber
- sourceAssetNumber
-
protected boolean validateNonMoveableAsset(Asset asset, org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
asset
- maintenanceDocument
-
protected boolean assetRetirementValidation(AssetRetirementGlobal assetRetirementGlobal, org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
assetRetirementGlobal
- maintenanceDocument
-
protected boolean validateMergeTargetAsset(AssetRetirementGlobal assetRetirementGlobal)
assetRetirementGlobal
-
protected boolean validateActiveCapitalAsset(Asset asset)
valid
- detail
-
protected boolean validateRequiredGlobalFields(AssetRetirementGlobal assetRetirementGlobal)
assetRetirementGlobal
-
protected boolean validateCashReceiptFinancialDocumentNumber(String documentNumber)
sharedRetirementInfo
-
protected boolean validateAssetOnLoan(Asset asset)
assetRetirementGlobalDetail
-
protected AssetService getAssetService()
protected AssetRetirementService getAssetRetirementService()
protected AssetPaymentService getAssetPaymentService()
protected AssetObjectCodeService getAssetObjectCodeService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |