public interface SeeyonreportApi
Title: 帆软报表API
Description:
Copyright: Copyright (c) 2017
Company: seeyon.com
Since Seeyon v6.1 sp1
限定符和类型 | 方法和说明 |
---|---|
List<Long> |
checkReportDatasetExists(List<Long> formId)
1、传入1个表单id,有数据集,返回正确的数据集 2、传入1个表单id,没有数据集,返回空列表 3、传入多个表单id,有数据集,返回正确的数据集 4、传入多个表单id,没有数据集,返回空列表 5、传入空列表,返回空列表 6、传入多个表单id,有部分有数据集,返回正确的数据集 |
List<String> |
checkReportDatasetExists(Map<String,String> formObj)
判断表单数据集是否存在,返回已存在的数据集名称
正常:
1、传入单个正确的key、value,返回已存在的数据集名称列表 2、传入多个正确的key、value,返回已存在的数据集名称列表 3、传入空的map,返回空列表 |
List<String> |
checkReportDatasetExistsAuth(Map<String,String> formObj)
判断表单数据集授权是否存在,如果存在授权,返回已存在的数据集名称
正常:
1、传入单个正确的key、value,返回已存在的授权数据集名称列表 2、传入多个正确的key、value,返回已存在的授权数据集名称列表 3、传入空的map,返回空列表 |
List<Long> |
findAuthReportTemplateIdList(Long memberId)
1、用户有多个权限的报表模板,能正确获取 2、用户没有有权限的报表模板,能正确获取 |
boolean |
hasReportTemplateAuth(Long templateId,
Long memberId)
1、用户对模板有权限,返回true 2、用户对模板没有权限,返回fasle |
boolean |
isSeeyonreportAdmin(Long memberId,
Long accountId)
1、用户是帆软报表管理员,传入用户id,帆软报表管理员单位id,返回true 2、用户是帆软报表管理员,传入用户id,不是帆软报表管理员的兼职单位id,返回true 3、用户不是帆软报表管理员,传入用户id,单位id,false |
void |
saveOrUpdateFormDataset(List<Long> formIds)
1、传入1个表单,正常生产数据集 2、传入多个表单,正常生产数据集 3、传入空列表,生产空的数据集 |
void |
saveOrUpdateFormDatasetAuth(Long formId,
List<Long> adminIds)
1、传入正确的表单id,单个用户id列表,正常授权 2、传入正确的表单id,多个用户id列表,正常授权 |
boolean hasReportTemplateAuth(Long templateId, Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
templateId
- 模板idmemberId
- 用户idcom.seeyon.ctp.common.exceptions.BusinessException
- 异常List<Long> findAuthReportTemplateIdList(Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
- 异常void saveOrUpdateFormDataset(List<Long> formIds) throws com.seeyon.ctp.common.exceptions.BusinessException
formIds
- 表单id列表com.seeyon.ctp.common.exceptions.BusinessException
- 异常List<String> checkReportDatasetExists(Map<String,String> formObj) throws com.seeyon.ctp.common.exceptions.BusinessException
formObj
- key:表单ID,value:表单名称com.seeyon.ctp.common.exceptions.BusinessException
void saveOrUpdateFormDatasetAuth(Long formId, List<Long> adminIds) throws com.seeyon.ctp.common.exceptions.BusinessException
formId
- 表单idadminIds
- 用户id列表com.seeyon.ctp.common.exceptions.BusinessException
List<String> checkReportDatasetExistsAuth(Map<String,String> formObj) throws com.seeyon.ctp.common.exceptions.BusinessException
formObj
- key:表单ID,value:表单名称com.seeyon.ctp.common.exceptions.BusinessException
List<Long> checkReportDatasetExists(List<Long> formId) throws com.seeyon.ctp.common.exceptions.BusinessException
formId
- 表单idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isSeeyonreportAdmin(Long memberId, Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 用户idaccountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
Copyright © 2016–2018. All rights reserved.