public interface BulletinApi
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
bulletinsList4Xiaoz(java.util.Map<java.lang.String,java.lang.String> params)
用于小致语音搜索获取小致数据 Author: wujie
|
boolean |
checkScope(java.lang.Long memberId,
java.lang.Long dataId)
校验人员是否在发布范围中
正常:
1、传入正确的人员id和公告id(该人员在发布范围),返回true 2、传入正确的人员id和公告id(该人员不在发布范围),返回false |
java.util.List<BulTypeBO> |
findAccountBulletinTypes(java.lang.Long accountId)
获取某个单位或某个自定义空间公告板块列表
正常:
1、传入正确的单位id,返回单位板块列表 2、传入正确的自定义空间id,返回自定义空间板块列表 3、传入正确的自定义空间id(该空间没有板块的情况),返回空列表 |
java.util.List<BulTypeBO> |
findAccountBulletinTypesCanIssue(java.lang.Long memberId,
java.lang.Long accountId)
获取人员能发布的公告板块列表(某个单位或某个自定义空间)
正常:
1、传入正确的单位id和人员id,返回该人员有发布权限的单位板块列表 2、传入正确的自定义空间id和人员id,返回该人员有发布权限的自定义空间板块列表 3、传入正确的自定义空间id和人员id(人员没有空间板块发布权的情况),返回空列表 |
java.util.List<BulTypeBO> |
findAccountBulletinTypesCanIssue(java.lang.Long memberId,
java.lang.Long accountId,
java.lang.String spaceType)
获取人员能发布的公告板块列表(某个单位或某个自定义空间)
正常:
1、传入正确的单位id和人员id,返回该人员有发布权限的单位板块列表 2、传入正确的自定义空间id和人员id,返回该人员有发布权限的自定义空间板块列表 3、传入正确的自定义空间id和人员id(人员没有空间板块发布权的情况),返回空列表 |
java.util.List<BulTypeBO> |
findAllBulletinTypesCanIssue(java.lang.Long memberId)
获取人员能发布的公告板块列表(所有)
正常:
1、传入正确的人员id,能正常返回板块列表 2、传入正确的人员id(该人员没有公告发布权限),返回空列表 |
java.util.List<BulTypeBO> |
findAllCustomBulletinTypes()
获取所有自定义空间公告板块列表
正常:
1、调用此接口,返回所有自定义空间公告板块列表 |
java.util.List<BulDataBO> |
findBulletinDatasByTypeId(com.seeyon.ctp.util.FlipInfo fi,
java.lang.Long memberId,
java.lang.Long typeId,
java.lang.String condition,
java.lang.String value1,
java.lang.String value2)
获取某个板块的公告
正常:
1、所有参数传入正确值且当前查询条件下存在公告,分页显示板块下的公告列表 2、所有参数传入正确值且当前查询条件下不存在公告,返回空列表 异常: 3、所有参数传入null,抛异常 |
java.util.List<BulTypeBO> |
findBulletinTypesByAccountId(com.seeyon.ctp.util.FlipInfo fi,
java.lang.Long accountId,
java.lang.String condition,
java.lang.String value1,
java.lang.String value2)
获取某个单位的公告板块
正常:
1、所有参数传入正确值且当前查询条件下存在公告板块,分页显示单位下的公告板块列表 2、所有参数传入正确值且当前查询条件下不存在公告板块,返回空列表 异常: 3、所有参数传入null,抛异常 |
java.util.List<BulTypeManagersBO> |
findBulTypeManagers(java.lang.Long typeId) |
java.util.List<BulTypeBO> |
findCustomTypesByAccountId(java.lang.Long accountId,
java.lang.Integer spaceType)
获取某个单位或某个自定义空间公告板块列表
正常:
1、传入正确的自定义空间id,返回自定义空间板块列表 2、传入正确的自定义空间type(该空间没有板块的情况),返回空列表 |
java.util.List<BulTypeBO> |
findGroupBulletinTypes()
获取集团公告板块列表
正常:
1、调用此接口,返回集团公告板块列表 |
java.util.List<BulTypeBO> |
findGroupBulletinTypesCanIssue(java.lang.Long memberId)
获取人员能发布的公告板块列表(集团)
正常:
1、传入正确的人员id,能正常返回集团板块列表 2、传入正确的人员id(该人员没有集团公告发布权限),返回空列表 |
BulBodyBO |
getBulBody(java.lang.Long id) |
BulDataBO |
getBulData(java.lang.Long id) |
BulTypeBO |
getBulletinType(java.lang.Long id)
获取公告板块
正常:
1、获取一个公告板块,能正常返回公告实体 |
boolean |
isBulTypeManager(java.lang.Long typeId,
java.lang.Long memberId)
判断用户是否有板块的管理权限
正常:
1、传入正确的人员id和版块id(该人员有版块管理权限),返回true 2、传入正确的人员id和版块id(该人员没有版块管理权限),返回false |
java.lang.Long |
issueBulletinData(BulletinDataParam bulletinDataParam)
发布公告
正常: 1、有权限的人员发布一个公告,所有必填项都包含在参数中,公告能成功发送,返回公告id 异常: 2、所有参数传入null,抛异常 |
void |
saveBulData(BulDataBO bo) |
void |
saveBulletinType(BulTypeBO bo) |
boolean |
updateBulDataTopNumber(java.lang.Long accountId,
java.lang.Integer spaceType,
java.lang.Integer topNumberMax)
由于总板块置顶个数变需要更新公告数据表多于置顶个数的数据
|
BulTypeBO getBulletinType(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- 需要获取公告板块的idcom.seeyon.ctp.common.exceptions.BusinessException
void saveBulletinType(BulTypeBO bo) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeManagersBO> findBulTypeManagers(java.lang.Long typeId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
BulDataBO getBulData(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
void saveBulData(BulDataBO bo) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
BulBodyBO getBulBody(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeBO> findAllCustomBulletinTypes() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeBO> findGroupBulletinTypes() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeBO> findAccountBulletinTypes(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位id或空间idcom.seeyon.ctp.common.exceptions.BusinessException
- BusinessException异常java.util.List<BulTypeBO> findCustomTypesByAccountId(java.lang.Long accountId, java.lang.Integer spaceType) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 自定义空间idspaceType
- 自定义空间typecom.seeyon.ctp.common.exceptions.BusinessException
- BusinessException异常java.util.List<BulTypeBO> findAllBulletinTypesCanIssue(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeBO> findGroupBulletinTypesCanIssue(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeBO> findAccountBulletinTypesCanIssue(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idaccountId
- 单位id或空间idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isBulTypeManager(java.lang.Long typeId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
typeId
- 板块idmemberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long issueBulletinData(BulletinDataParam bulletinDataParam) throws com.seeyon.ctp.common.exceptions.BusinessException
bulletinDataParam
- 以下参数是必须的:com.seeyon.ctp.common.exceptions.BusinessException
boolean checkScope(java.lang.Long memberId, java.lang.Long dataId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员iddataId
- 公告idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeBO> findBulletinTypesByAccountId(com.seeyon.ctp.util.FlipInfo fi, java.lang.Long accountId, java.lang.String condition, java.lang.String value1, java.lang.String value2) throws com.seeyon.ctp.common.exceptions.BusinessException
fi
- 分页对象accountId
- 单位idcondition
- 查询条件,如:name,按名称查询value1
- 要查询的第一个值,如:名称value2
- 要查询的第二个值,如:时间的结束值com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulDataBO> findBulletinDatasByTypeId(com.seeyon.ctp.util.FlipInfo fi, java.lang.Long memberId, java.lang.Long typeId, java.lang.String condition, java.lang.String value1, java.lang.String value2) throws com.seeyon.ctp.common.exceptions.BusinessException
fi
- 分页对象memberId
- 人员idtypeId
- 板块idcondition
- 查询条件,如:title,按标题查询value1
- 要查询的第一个值,如:标题value2
- 要查询的第二个值,如:时间的结束值com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<BulTypeBO> findAccountBulletinTypesCanIssue(java.lang.Long memberId, java.lang.Long accountId, java.lang.String spaceType)
memberId
- 人员idaccountId
- 单位id或空间idspaceType
- 空间类型com.seeyon.ctp.common.exceptions.BusinessException
boolean updateBulDataTopNumber(java.lang.Long accountId, java.lang.Integer spaceType, java.lang.Integer topNumberMax)
accountId
- 单位IDspaceType
- 空间topNumberMax
- java.util.Map<java.lang.String,java.lang.Object> bulletinsList4Xiaoz(java.util.Map<java.lang.String,java.lang.String> params) throws com.seeyon.ctp.common.exceptions.BusinessException
params
- 公告数据的查询条件,可以进行多条件组合查询
{ title 标题 pageNo 页码 pageSize 页数 publishStartDate 公告开始时间 格式date publishEndDate 公告结束时间 格式date publishUser 创建人 格式 Member|123434 }
com.seeyon.ctp.common.exceptions.BusinessException