|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.cam.batch.service.impl.AssetBarcodeInventoryLoadServiceImpl
public class AssetBarcodeInventoryLoadServiceImpl
Implementation of the AssetBarcodeInventoryLoadService interface. Handles loading, parsing, and storing of incoming barcode inventory files.
Field Summary | |
---|---|
protected static String |
DOCUMENT_EXPLANATION
|
static String |
DOCUMENTS_MSG
|
protected static int |
MAX_NUMBER_OF_COLUMNS
|
static String |
MESSAGE_NO_DOCUMENT_CREATED
|
static String |
TOTAL_RECORDS_IN_ERROR_MSG
|
static String |
TOTAL_RECORDS_UPLOADED_MSG
|
Constructor Summary | |
---|---|
AssetBarcodeInventoryLoadServiceImpl()
|
Method Summary | |
---|---|
protected org.kuali.rice.kns.bo.AdHocRouteRecipient |
buildApprovePersonRecipient(String userId)
This method builds a recipient for Approval. |
protected String |
createBarcodeInventoryErrorDocuments(List<BarcodeInventoryErrorDetail> bcies,
BarcodeInventoryErrorDocument barcodeInventoryErrorDocument,
AssetBarCodeInventoryInputFileForm form)
This method... |
protected BarcodeInventoryErrorDocument |
createInvalidBarcodeInventoryDocument(List<BarcodeInventoryErrorDetail> barcodeInventoryErrorDetails,
String uploadDescription)
This method creates a transaction document with the invalid barcode inventory records |
org.kuali.rice.kns.service.ParameterService |
getParameterService()
|
boolean |
isCurrentUserInitiator(org.kuali.rice.kns.document.Document document)
Determines whether the current user is the document initiator. |
boolean |
isFileFormatValid(File file)
Validates and parses the file identified by the given files name. |
boolean |
isFullyProcessed(org.kuali.rice.kns.document.Document document)
Determines whether or not the BCIE document has all its records corrected or deleted |
protected void |
processBarcodeInventory(List<BarcodeInventoryErrorDetail> barcodeInventoryErrorDetails,
AssetBarCodeInventoryInputFileForm form)
This method invokes the rules in order to validate each records of the barcode file and invokes the method that updates the asset table with the records that passes the rules validation |
boolean |
processFile(File file,
AssetBarCodeInventoryInputFileForm form)
This method creates the barcode inventory error document, validates each record, and invokes the method that actually stores the record in the tables |
protected void |
removeDoneFile(File file)
This method removes the *.done files. |
protected void |
saveInvalidBarcodeInventoryDocument(BarcodeInventoryErrorDocument document)
saves the barcode inventory document |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
|
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
|
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
|
void |
setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService ruleService)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setWorkflowDocumentService(org.kuali.rice.kns.workflow.service.WorkflowDocumentService workflowDocumentService)
|
void |
updateAssetInformation(BarcodeInventoryErrorDetail barcodeInventoryErrorDetail,
boolean updateWithDateAssetWasScanned)
This method updates the asset information particularly the building code, bulding room, building subrool, campus code, and condition code |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MESSAGE_NO_DOCUMENT_CREATED
public static final String DOCUMENTS_MSG
public static final String TOTAL_RECORDS_UPLOADED_MSG
public static final String TOTAL_RECORDS_IN_ERROR_MSG
protected static final int MAX_NUMBER_OF_COLUMNS
protected static final String DOCUMENT_EXPLANATION
Constructor Detail |
---|
public AssetBarcodeInventoryLoadServiceImpl()
Method Detail |
---|
public boolean isFullyProcessed(org.kuali.rice.kns.document.Document document)
isFullyProcessed
in interface AssetBarcodeInventoryLoadService
document
-
public boolean isCurrentUserInitiator(org.kuali.rice.kns.document.Document document)
AssetBarcodeInventoryLoadService
isCurrentUserInitiator
in interface AssetBarcodeInventoryLoadService
AssetBarcodeInventoryLoadService.isCurrentUserInitiator(org.kuali.rice.kns.document.Document)
public boolean isFileFormatValid(File file)
AssetBarcodeInventoryLoadService
isFileFormatValid
in interface AssetBarcodeInventoryLoadService
org.kuali.module.cams.service.AssetBarcodeInventoryLoadService#isFileFormatValid(java.io.File)
public boolean processFile(File file, AssetBarCodeInventoryInputFileForm form)
AssetBarcodeInventoryLoadService
processFile
in interface AssetBarcodeInventoryLoadService
org.kuali.module.cams.service.AssetBarCodeInventoryLoadService#processFile(java.io.File)
protected void removeDoneFile(File file)
file
- protected void processBarcodeInventory(List<BarcodeInventoryErrorDetail> barcodeInventoryErrorDetails, AssetBarCodeInventoryInputFileForm form) throws Exception
barcodeInventoryErrorDetails
-
Exception
protected String createBarcodeInventoryErrorDocuments(List<BarcodeInventoryErrorDetail> bcies, BarcodeInventoryErrorDocument barcodeInventoryErrorDocument, AssetBarCodeInventoryInputFileForm form)
bcies
- barcodeInventoryErrorDocument
- public void updateAssetInformation(BarcodeInventoryErrorDetail barcodeInventoryErrorDetail, boolean updateWithDateAssetWasScanned)
updateAssetInformation
in interface AssetBarcodeInventoryLoadService
barcodeInventoryErrorDetail
- protected BarcodeInventoryErrorDocument createInvalidBarcodeInventoryDocument(List<BarcodeInventoryErrorDetail> barcodeInventoryErrorDetails, String uploadDescription) throws org.kuali.rice.kew.exception.WorkflowException
barcodeInventoryErrorDetails
-
org.kuali.rice.kew.exception.WorkflowException
protected void saveInvalidBarcodeInventoryDocument(BarcodeInventoryErrorDocument document)
document
- protected org.kuali.rice.kns.bo.AdHocRouteRecipient buildApprovePersonRecipient(String userId)
userId
-
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
public void setWorkflowDocumentService(org.kuali.rice.kns.workflow.service.WorkflowDocumentService workflowDocumentService)
public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService ruleService)
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |