public class BarCodeManagerImpl extends Object implements BarCodeManager
构造器和说明 |
---|
BarCodeManagerImpl() |
限定符和类型 | 方法和说明 |
---|---|
Object |
decodeBarCode(String codeType,
String codeStr,
Map<String,Object> customParam)
解密二维码数据
|
void |
deleteBarCode(Long reference,
Long subReference)
删除已经存在的二维码记录
|
Long |
getBarCode(Map<String,Object> codeParam,
Map<String,Object> customParam)
根据参数生成二维码文件并返回相应的文件对象的id
|
ResultVO |
getBarCodeAttachment(BarCodeParamVo paramVo,
Map<String,Object> customParam)
根据参数生成二维码文件并返回相应的附件对象
|
ResultVO |
getBarCodeAttachment(Map<String,Object> codeParam,
Map<String,Object> customParam)
根据参数生成二维码文件并返回相应的附件对象
|
ResultVO |
getBarCodeFile(BarCodeParamVo paramVo,
Map<String,Object> customParam)
根据参数生成二维码文件并返回相应的文件对象
|
ResultVO |
getBarCodeFile(Map<String,Object> codeParam,
Map<String,Object> customParam)
根据参数生成二维码文件并返回相应的文件对象
|
void |
saveBarCode(Long objectId,
Long fileName,
String fileExt,
Integer categoryId)
保存或更新二维码信息
|
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setBarCodeDao(BarCodeDao barCodeDao) |
void |
setFileManager(FileManager fileManager) |
public void saveBarCode(Long objectId, Long fileName, String fileExt, Integer categoryId)
saveBarCode
在接口中 BarCodeManager
objectId
- 对象id,比如:公文idfileName
- 服务器保存的物理文件名categoryId
- 应用分类public ResultVO getBarCodeFile(BarCodeParamVo paramVo, Map<String,Object> customParam) throws BusinessException
BarCodeManager
getBarCodeFile
在接口中 BarCodeManager
paramVo
- 二维码参数customParam
- 获取二维码正文的自定义参数BusinessException
public ResultVO getBarCodeFile(Map<String,Object> codeParam, Map<String,Object> customParam) throws BusinessException
BarCodeManager
getBarCodeFile
在接口中 BarCodeManager
codeParam
- 二维码参数customParam
- 获取二维码正文的自定义参数BusinessException
public Long getBarCode(Map<String,Object> codeParam, Map<String,Object> customParam) throws BusinessException
BarCodeManager
getBarCode
在接口中 BarCodeManager
codeParam
- 二维码参数customParam
- 获取二维码正文的自定义参数BusinessException
public ResultVO getBarCodeAttachment(Map<String,Object> codeParam, Map<String,Object> customParam) throws BusinessException
BarCodeManager
getBarCodeAttachment
在接口中 BarCodeManager
codeParam
- 二维码生成参数customParam
- 自定义参数BusinessException
public ResultVO getBarCodeAttachment(BarCodeParamVo paramVo, Map<String,Object> customParam) throws BusinessException
BarCodeManager
getBarCodeAttachment
在接口中 BarCodeManager
paramVo
- 二维码生成参数customParam
- 自定义参数BusinessException
public Object decodeBarCode(String codeType, String codeStr, Map<String,Object> customParam) throws Exception
BarCodeManager
decodeBarCode
在接口中 BarCodeManager
codeType
- 对二维码数据格式化的类型codeStr
- 二维码数据,扫描枪中获取的数据BusinessException
Exception
public void deleteBarCode(Long reference, Long subReference) throws BusinessException
BarCodeManager
deleteBarCode
在接口中 BarCodeManager
reference
- 一级应用subReference
- 二级应用BusinessException
public void setFileManager(FileManager fileManager)
public void setBarCodeDao(BarCodeDao barCodeDao)
public void setAttachmentManager(AttachmentManager attachmentManager)
Copyright © 2016–2017. All rights reserved.