|
||||||||||
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.AssetRule
public class AssetRule
AssetRule for Asset edit.
Field Summary | |
---|---|
protected AssetComponentService |
assetComponentService
|
protected AssetDateService |
assetDateService
|
protected AssetLocationService |
assetLocationService
|
protected AssetService |
assetService
|
protected org.kuali.rice.kns.service.DateTimeService |
dateTimeService
|
protected EquipmentLoanOrReturnService |
equipmentLoanOrReturnService
|
protected boolean |
isFabrication
|
protected static Map<AssetLocationService.LocationField,String> |
LOCATION_FIELD_MAP
|
protected static org.apache.log4j.Logger |
LOG
|
protected Asset |
newAsset
|
protected Asset |
oldAsset
|
protected org.kuali.rice.kns.service.ParameterService |
parameterService
|
protected PaymentSummaryService |
paymentSummaryService
|
protected RetirementInfoService |
retirementInfoService
|
protected UniversityDateService |
universityDateService
|
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 | |
---|---|
AssetRule()
|
Method Summary | |
---|---|
protected boolean |
checkAcquisitionTypeCodeChange()
Check if the Acquisition Type Code is valid or is inactive. |
protected boolean |
checkAssetDepreciationMethodChange()
Check if the Asset Depreciation Method is valid or is inactive. |
protected boolean |
checkAssetLocked(org.kuali.rice.kns.document.MaintenanceDocument document)
Check if asset is locked by other document. |
protected boolean |
checkAssetStatusCodeChange()
Check if the Asset Status Code is valid or is inactive. |
protected boolean |
checkAssetTypeCodeChange()
Check if the Asset Type Code is valid or is inactive. |
protected boolean |
checkConditionCodeChange()
Check if the Asset Condition is valid or is inactive. |
protected boolean |
checkDuplicateIncidentDate(AssetRepairHistory assetRepairHistory,
Set<Date> incidentDateSet)
Check for duplicate incident dates within the Repair History section |
protected boolean |
checkFinancialObjectSubtypeCodeChange()
Check if the Financial Object Sub-Type Code is valid or is inactive. |
protected CapitalAssetManagementModuleService |
getCapitalAssetManagementModuleService()
|
protected void |
initializeAttributes(org.kuali.rice.kns.document.MaintenanceDocument document)
|
protected boolean |
isOffCampusLocationChanged()
Check if off campus fields has changed. |
protected boolean |
processAssetValidation(org.kuali.rice.kns.document.MaintenanceDocument document)
Validates Asset document. |
boolean |
processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument documentCopy,
String collectionName,
org.kuali.rice.kns.bo.PersistableBusinessObject bo)
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument 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(Asset asset)
Retrieve asset numbers need to be locked. |
protected void |
setAssetComponentNumbers(Asset asset)
Set asset component numbers |
protected boolean |
setAssetLock(org.kuali.rice.kns.document.MaintenanceDocument document)
Locking asset number |
protected boolean |
validateAccount()
Validate account |
protected boolean |
validateDepreciationData(Asset asset)
validates depreciation data |
protected boolean |
validateFabricationDetails()
Validate fabrication details |
protected boolean |
validateInServiceDate()
Check if the new In-service Date is a valid University Date |
protected boolean |
validateInventoryStatusCode(String oldInventoryStatusCode,
String newInventoryStatusCode)
Validate Inventory Status Code Change |
protected boolean |
validateLocation()
Validate Asset Location fields |
protected boolean |
validateTagNumber()
If the tag number has not been assigned, the departmental user will be able to update the tag number. |
protected boolean |
validateVendorName()
The Vendor Name is required for capital equipment and not required for non-capital assets. |
protected boolean |
validateWarrantyInformation(Asset asset)
Validate warranty information if user enters value |
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, isDocumentValidForSave, 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, setupConvenienceObjects, 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 static final Map<AssetLocationService.LocationField,String> LOCATION_FIELD_MAP
protected AssetService assetService
protected org.kuali.rice.kns.service.ParameterService parameterService
protected PaymentSummaryService paymentSummaryService
protected RetirementInfoService retirementInfoService
protected EquipmentLoanOrReturnService equipmentLoanOrReturnService
protected AssetDateService assetDateService
protected AssetComponentService assetComponentService
protected UniversityDateService universityDateService
protected AssetLocationService assetLocationService
protected org.kuali.rice.kns.service.DateTimeService dateTimeService
protected Asset newAsset
protected Asset oldAsset
protected boolean isFabrication
Constructor Detail |
---|
public AssetRule()
Method Detail |
---|
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected boolean checkAssetLocked(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- valid
-
protected List<Long> retrieveAssetNumberForLocking(Asset asset)
public boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument documentCopy, String collectionName, org.kuali.rice.kns.bo.PersistableBusinessObject bo)
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 checkDuplicateIncidentDate(AssetRepairHistory assetRepairHistory, Set<Date> incidentDateSet)
assetRepairHistory
- incidentDateSet
-
protected boolean validateFabricationDetails()
protected boolean validateAccount()
protected void setAssetComponentNumbers(Asset asset)
asset
- protected boolean processAssetValidation(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- MaintenanceDocument instance
protected boolean validateInServiceDate()
protected boolean isOffCampusLocationChanged()
protected boolean validateInventoryStatusCode(String oldInventoryStatusCode, String newInventoryStatusCode)
protected void initializeAttributes(org.kuali.rice.kns.document.MaintenanceDocument document)
protected boolean validateTagNumber()
asset
-
protected boolean validateVendorName()
asset
-
protected boolean validateLocation()
asset
-
protected boolean validateWarrantyInformation(Asset asset)
asset
- Asset
protected boolean validateDepreciationData(Asset asset)
asset
-
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
protected boolean setAssetLock(org.kuali.rice.kns.document.MaintenanceDocument document)
document
-
protected CapitalAssetManagementModuleService getCapitalAssetManagementModuleService()
public org.kuali.rice.kns.util.TypedArrayList putError(String propertyName, String errorKey, String... errorParameters)
protected boolean checkAcquisitionTypeCodeChange()
oldAcquisitionTypeCode
- newAcquisitionTypeCode
-
protected boolean checkConditionCodeChange()
oldConditionCode
- newConditionCode
-
protected boolean checkAssetDepreciationMethodChange()
oldAssetDepreciationMethod
- newAssetDepreciationMethod
-
protected boolean checkAssetStatusCodeChange()
oldAssetStatus
- newAssetStatus
-
protected boolean checkAssetTypeCodeChange()
oldAssetType
- newAssetType
-
protected boolean checkFinancialObjectSubtypeCodeChange()
oldObjectSubType
- newObjectSubType
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |