|
||||||||||
| 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.cam.document.validation.impl.BarcodeInventoryErrorDocumentRule
public class BarcodeInventoryErrorDocumentRule
Business rule(s) applicable to Asset Barcode Inventory upload and Barcode inventory error document.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
BarcodeInventoryErrorDocumentRule()
|
|
| Method Summary | |
|---|---|
protected void |
deleteLockErrorMessages()
Deletes the asset locking error messages from the GlobalVariables. |
protected AssetBarcodeInventoryLoadService |
getAssetBarcodeInventoryLoadService()
|
protected AssetService |
getAssetService()
|
protected org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
|
protected org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
|
protected String |
getErrorMessages(String errorPath)
Iterates over the list of errors each records might have and returns a single string with all the errors for each asset |
protected org.kuali.rice.kns.service.ParameterService |
getParameterService()
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
|
boolean |
validateBarcodeInventoryErrorDetail(BarcodeInventoryErrorDocument document,
boolean updateStatus)
Invokes several methods that validates each barcode error record |
protected boolean |
validateBuildingCode(String buildingCode,
BarcodeInventoryErrorDetail detail)
Validates the building code exists |
protected boolean |
validateBuildingRoomNumber(String roomNumber,
BarcodeInventoryErrorDetail detail)
Validates the building room number exists |
protected boolean |
validateCampusCode(String campusCode,
BarcodeInventoryErrorDetail detail)
Validates the campus code exists in the campus code table |
protected boolean |
validateConditionCode(String conditionCode,
BarcodeInventoryErrorDetail detail)
Validates the condition code exists in the condition table |
protected boolean |
validateInventoryDate(Timestamp inventoryDate)
Validates the inventory date is not equals null |
protected boolean |
validateTaggingLock(String tagNumber,
String documentNumber)
Validates the Asset doesn't have any tagging locks as result of an existing document in process where the same asset being affected |
protected boolean |
validateTagNumber(String tagNumber)
validates the asset tag number exists in only one active asset. |
| 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, processCustomRouteDocumentBusinessRules, 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 org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public BarcodeInventoryErrorDocumentRule()
| Method Detail |
|---|
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomSaveDocumentBusinessRules in class org.kuali.rice.kns.rules.DocumentRuleBaseDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document)
public boolean validateBarcodeInventoryErrorDetail(BarcodeInventoryErrorDocument document,
boolean updateStatus)
barcodeInventoryErrorDetails -
protected boolean validateTagNumber(String tagNumber)
tagNumber -
protected boolean validateInventoryDate(Timestamp inventoryDate)
inventoryDate -
protected boolean validateCampusCode(String campusCode,
BarcodeInventoryErrorDetail detail)
campusCode - detail -
protected boolean validateBuildingCode(String buildingCode,
BarcodeInventoryErrorDetail detail)
buildingCode - detail -
protected boolean validateBuildingRoomNumber(String roomNumber,
BarcodeInventoryErrorDetail detail)
roomNumber - detail -
protected boolean validateConditionCode(String conditionCode,
BarcodeInventoryErrorDetail detail)
conditionCode - detail -
protected boolean validateTaggingLock(String tagNumber,
String documentNumber)
tagNumber -
protected String getErrorMessages(String errorPath)
errorPath -
protected void deleteLockErrorMessages()
protected org.kuali.rice.kns.service.ParameterService getParameterService()
protected AssetService getAssetService()
protected org.kuali.rice.kns.service.DateTimeService getDateTimeService()
protected org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
protected AssetBarcodeInventoryLoadService getAssetBarcodeInventoryLoadService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||