参数 | 说明 |
---|---|
id | 消息主键,唯一标示消息 |
creationDate | 创建时间 |
referenceId | 主对象ID,例如此处为调查对象的ID |
messageCategory | 消息所属应用类型,应用类型请查看应用类型枚举说明 |
messageContent | 消息内容 |
messageType | 消息类型,目前只有系统消息一种 |
senderId | 发送者ID |
receiverId | 接收者ID |
userId | 消息接收人Id |
senderName | 发送者名称 |
linkType | 链接类型 |
openType | 链接的打开方式,0:新窗口打开;1:工作区打开 |
linkParam0 — linkParam9 | 链接参数,顺序要与消息链接配置中保持一致。 |
isRead | 是否已读 |
应用类型枚举说明
public enum ApplicationCategoryEnum { global(0), // 全局 collaboration(1), // 协同应用 form(2), // 表单 doc(3), // 知识管理 edoc(4), // 公文 plan(5), // 计划 meeting(6), // 会议 bulletin(7), // 公告 news(8), // 新闻 bbs(9), // 讨论 inquiry(10), // 调查 calendar(11), // 日程事件 mail(12), // 邮件 organization(13),// 组织模型 project(14), // 项目 relateMember(15), // 关联人员 exchange(16), // 交换 hr(17), //人力资源 blog(18), //博客 edocSend(19), //发文 edocRec(20), //收文 edocSign(21), //签报 exSend(22), //待发送公文 exSign(23), //待签收公文 edocRegister(24), //待登记公文 communication(25), //在线交流 office(26),//综合办公 agent(27),//代理设置 modifyPassword(28), //密码修改 meetingroom(29), //会议室 taskManage(30), //任务管理 guestbook(31), //留言板 info(32), //信息报 送 infoStat(33), //信息报送统计 edocRecDistribute(34),//收文分发 notice(35), //公示板 attendance(36) // 签到 ; // 标识 用于数据库存储 private int key; ApplicationCategoryEnum(int key) { this.key = key; } public int getKey() { return this.key; } public int key() { return this.key; } /** * 根据key得到枚举类型 * * @param key * @return */ public static ApplicationCategoryEnum valueOf(int key) { ApplicationCategoryEnum[] enums = ApplicationCategoryEnum.values(); if (enums != null) { for (ApplicationCategoryEnum enum1 : enums) { if (enum1.key() == key) { return enum1; } } } return null; } }