506 lines
16 KiB
Java
506 lines
16 KiB
Java
package com.actionsoft.apps.coe.pal.publisher;
|
||
|
||
import com.actionsoft.apps.coe.pal.publisher.client.web.ProcessPublishClientWeb;
|
||
import com.actionsoft.bpms.server.UserContext;
|
||
import com.actionsoft.bpms.server.bind.annotation.Controller;
|
||
import com.actionsoft.bpms.server.bind.annotation.Mapping;
|
||
import com.actionsoft.bpms.util.UtilString;
|
||
|
||
@Controller
|
||
public class PublishClientController {
|
||
//流程发布首页
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_home")
|
||
public String publishClientHome(UserContext me) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.getHomePage(me);
|
||
}
|
||
//按组织维护流程-首页
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_manage_home")
|
||
public String getManageHome(UserContext me, String wsId, String categorys) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
if (UtilString.isEmpty(categorys)) {
|
||
categorys = "process";
|
||
}
|
||
return web.getManageHome(wsId, categorys);
|
||
}
|
||
|
||
//流程查询-首页
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_manage_search_home")
|
||
public String getManageSearchHome(UserContext me, String wsId, String categorys) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
if (UtilString.isEmpty(categorys)) {
|
||
categorys = "process";
|
||
}
|
||
|
||
return web.getManageSearchHome(wsId, categorys);
|
||
}
|
||
|
||
//流程查询-条件查询
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_manage_search_condition_home")
|
||
public String getManageSearchHomeCondition(UserContext me, String wsId, String categorys) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
if (UtilString.isEmpty(categorys)) {
|
||
categorys = "process";
|
||
}
|
||
|
||
return web.getManageSearchHomeCondition(wsId, categorys);
|
||
}
|
||
|
||
/**
|
||
* 常用流程查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_common_msg")
|
||
public String commonProcessQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.commonProcessQuery(me, count);
|
||
}
|
||
|
||
/**
|
||
* 高频流程查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_frequency_msg")
|
||
public String frequencyProcessQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.frequencyProcessQuery(me, count);
|
||
}
|
||
|
||
|
||
/**
|
||
* 系统地图查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_system_msg")
|
||
public String systemDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryDataBycategory(me, count, "itsystem", "systemmap");
|
||
}
|
||
|
||
/**
|
||
* 组织地图查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_org_msg")
|
||
public String orgDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryDataBycategory(me, count, "org", "orgmap");
|
||
}
|
||
|
||
/**
|
||
* 数据/表单地图查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_data_msg")
|
||
public String dataDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryDataBycategory(me, count, "data", "systemmap");
|
||
}
|
||
|
||
/**
|
||
* 控制/风险地图查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_control_msg")
|
||
public String controlDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryDataBycategory(me, count, "control", "controlmap");
|
||
}
|
||
|
||
/**
|
||
* 流程通知公告
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_notification_msg")
|
||
public String notificationDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryNotificationData(me, "0", count);
|
||
}
|
||
|
||
/**
|
||
* 查询启用中的资产库列表和aws组织列表
|
||
* @param me
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_processmap_ws_org_query")
|
||
public String processmapWsAndOrgDataQuery(UserContext me) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.processmapWsAndOrgDataQuery(me);
|
||
}
|
||
|
||
/**
|
||
* 流程地图
|
||
* @param me
|
||
* @param wsId
|
||
* @param orgId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_processmap_msg")
|
||
public String processmapDataQuery(UserContext me, String wsId, String orgId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryProcessmapData(me, wsId, orgId);
|
||
}
|
||
|
||
/**
|
||
* 轮播图
|
||
* @param me
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_banner_msg")
|
||
public String bannerDataQuery(UserContext me) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryBannerData(me);
|
||
}
|
||
|
||
/**
|
||
* 打开流程
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_page")
|
||
public String openPage(UserContext me, String uuid, String taskId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openPage(me, uuid, taskId);
|
||
}
|
||
|
||
/**
|
||
* 搜索功能
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_search_page")
|
||
public String search(UserContext me, String text, String type, String templateId, String wsId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.search(me, text, type, templateId, wsId);
|
||
}
|
||
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_search_data")
|
||
public String searchData(UserContext me, String searchText, String searchType, String searchWsId, int start, int pageLimit) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.searchData(me, searchText, searchType, searchWsId, start, pageLimit);
|
||
}
|
||
|
||
/**
|
||
* 打开流程地图主页
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_page")
|
||
public String openProcessMapPage(UserContext me, String wsId, String orgId, String type) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openProcessMapPage(me, wsId, orgId, type);
|
||
}
|
||
|
||
/**
|
||
* 业务架构
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_ws_page")
|
||
public String openProcessMapWsPage(UserContext me, String wsId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openProcessMapWsPage(me, wsId);
|
||
}
|
||
|
||
/**
|
||
* 组织架构
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_org_page")
|
||
public String openProcessMapOrgPage(UserContext me, String orgId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openProcessMapOrgPage(me, orgId);
|
||
}
|
||
|
||
/**
|
||
* 业务架构展开
|
||
* @param me
|
||
* @param id
|
||
* @param wsId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_expand")
|
||
public String expendProcessMapWsData(UserContext me, String id, String wsId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.expendProcessMapWsData(me, id, wsId);
|
||
}
|
||
|
||
/**
|
||
* 校验是否可打开
|
||
* @param me
|
||
* @param id
|
||
* @param wsId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_check_open")
|
||
public String openProcessMapWsDataCheck(UserContext me, String id, String wsId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openProcessMapWsDataCheck(me, id, wsId);
|
||
}
|
||
|
||
/**
|
||
* 组织架构展开
|
||
* @param me
|
||
* @param id
|
||
* @param orgId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_expand")
|
||
public String expendProcessMapOrgData(UserContext me, String id, String orgId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.expendProcessMapOrgData(me, id, orgId);
|
||
}
|
||
|
||
/**
|
||
* 组织架构中查询部门下的流程
|
||
* @param me
|
||
* @param deptId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_dept_dialog_page")
|
||
public String openProcessMapOrgDeptDialog(UserContext me, String deptId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openProcessMapOrgDeptDialog(me, deptId);
|
||
}
|
||
|
||
/********************永辉接口start*************************/
|
||
|
||
/**
|
||
* 导航条-搜索
|
||
* 获取所有已发布的文件
|
||
* @param me
|
||
* @param wsId
|
||
* @param type all:所有当前正在使用状态中的模型,包括发布和停用 publish:已发布模型
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_search_data_json")
|
||
public String queryPublishRepositoryDataJson(UserContext me, String wsId, String type) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryPublishRepositoryDataJson(me, wsId, null, type);
|
||
}
|
||
|
||
/**
|
||
* 获取所有有权限的资产库
|
||
* @param me
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_ws_data_json")
|
||
public String queryPermWorkspaceDataJson(UserContext me) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryPermWorkspaceDataJson(me);
|
||
}
|
||
|
||
/**
|
||
* 获取发布动态
|
||
* @param me
|
||
* @param wsId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_dynamic_history_data_json")
|
||
public String queryDynamicHistoryDataJson(UserContext me, String wsId, String type) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryDynamicHistoryDataJson(me, wsId, type);
|
||
}
|
||
|
||
/**
|
||
* 获取发布动态(更多)
|
||
* @param me
|
||
* @param wsId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_dynamic_history_more_data_json")
|
||
public String queryDynamicHistoryMoreDataJson(UserContext me, String wsId, String type) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryDynamicHistoryMoreDataJson(me, wsId, type);
|
||
}
|
||
|
||
/**
|
||
* 根据类别获取权限下已发布的流程列表
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_process_by_type_data_json")
|
||
public String queryPublishRepositoryDataJsonByType(UserContext me, String type, String wsId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryPublishRepositoryDataJsonByType(me, type, wsId);
|
||
}
|
||
|
||
/**
|
||
* 获取所有有权限的部门列表,部门列表来源于所有具有权限的流程的责任部门
|
||
* @param me
|
||
* @param wsId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_aws_department_data_json")
|
||
public String queryAwsDepartmentDataJson(UserContext me, String wsId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryAwsDepartmentDataJson(me, wsId);
|
||
}
|
||
|
||
/**
|
||
* 获取当前部门的流程数据(责任部门)和当前部门下具有权限的子部门列表
|
||
* @param me
|
||
* @param wsId
|
||
* @param departmentId
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_process_by_department_data_json")
|
||
public String queryPublishedProcessAndSubDepartment(UserContext me, String wsId, String departmentId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryPublishedProcessAndSubDepartment(me, wsId, departmentId);
|
||
}
|
||
|
||
/**
|
||
* 获取子流程列表
|
||
* @param me
|
||
* @param uuid 流程ID
|
||
* @param type all:所有当前正在使用状态中的模型,包括发布和停用 publish:已发布模型
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_process_by_parent_data_json")
|
||
public String queryPublishProcessByParent(UserContext me, String uuid, String type) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryPublishProcessByParent(me, uuid, type);
|
||
}
|
||
|
||
/**
|
||
* 点击流程名称打开流程
|
||
* 获取流程详情页面
|
||
* @param me
|
||
* @param uuid
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_process_open")
|
||
public String openPublishRepository(UserContext me, String uuid, String type) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openPublishRepository(me, uuid, type);
|
||
}
|
||
|
||
/**
|
||
* 获取二级或三级流程
|
||
* @param me
|
||
* @param wsId
|
||
* @param level 默认三级,可选值(2,3),参数值不正确也默认三级
|
||
* @param type all:所有当前正在使用状态中的模型,包括发布和停用 publish:已发布模型
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_second_level_data_json")
|
||
public String querySecendLevelRepositoryDataJson(UserContext me, String wsId, String level, String type) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
String rtnStr = "";
|
||
if("2".equals(level)) {
|
||
rtnStr = web.querySecondLevelRepositoryDataJson(me, wsId, type);
|
||
} else {
|
||
rtnStr = web.queryThirdLevelRepositoryDataJson(me, wsId, type);
|
||
}
|
||
return rtnStr;
|
||
}
|
||
|
||
/**
|
||
* 获取已加入的群组
|
||
* @param me
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_user_joined_team_data_json")
|
||
public String queryJoinedTeamByUserId(UserContext me) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryJoinedTeamByUserId(me);
|
||
}
|
||
|
||
/**
|
||
* 获取未加入群组(私密小组除外)
|
||
* @param me
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_user_not_join_team_data_json")
|
||
public String queryNotJoinTeamByUserId(UserContext me ) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.queryNotJoinTeamByUserId(me);
|
||
}
|
||
|
||
/**
|
||
* 组织架构中查询部门下的流程(返回json)
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_dept_data")
|
||
public String openProcessMapOrgDeptData(UserContext me, String wsId, String deptId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.openProcessMapOrgDeptData(me, wsId, deptId);
|
||
}
|
||
|
||
/**
|
||
* 依据流程库Id获取该流程库主题风格的轮播图资源
|
||
* @param me
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.coe.pal.publisher_client_sso_banner_carousel")
|
||
public String bannerCarouselData(UserContext me, String wsId) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.bannerCarouselData(me);
|
||
}
|
||
/********************永辉接口end*************************/
|
||
|
||
/**
|
||
* 我参与的流程查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_participant_msg")
|
||
public String participantDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.participantDataQuery(me, count);
|
||
}
|
||
|
||
/**
|
||
* 我负责的流程查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_responsible_msg")
|
||
public String responsibleDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.responsibleDataQuery(me, count);
|
||
}
|
||
|
||
/**
|
||
* 岗位职责模块查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_postresponsibility_msg")
|
||
public String postresponsibilityDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.postresponsibilityDataQuery(me, count);
|
||
}
|
||
|
||
/**
|
||
* RCAI模块查询
|
||
* @param me
|
||
* @param count
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_xpages_rcaimatrix_msg")
|
||
public String rcaimatrixDataQuery(UserContext me, String count) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.rcaimatrixDataQuery(me, count);
|
||
}
|
||
|
||
|
||
/**
|
||
* 流程地图默认资产库和默认组织设置
|
||
* @return
|
||
*/
|
||
@Mapping("com.actionsoft.apps.publisher_workspace_and_org_msg")
|
||
public String getCoeWorkSpaceAndOrgInfo(UserContext me) {
|
||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||
return web.getCoeWorkSpaceAndOrgInfo();
|
||
}
|
||
}
|