public interface PlatformProvider
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
XML_TAG_ROLE |
| 限定符和类型 | 方法和说明 |
|---|---|
AuthenticateResultProvider |
doAuthenticate(CommonAuthentication auth)
模版设计用户权限认证
|
java.lang.String[] |
getAllCompanyRole4Designer()
获取所有部门角色
|
JSONArray |
getAllDepart()
获取所有部门
|
JSONArray |
getAllMailUsers(java.lang.Boolean withRealname)
获取所有用户
|
JSONArray |
getAllRoles()
获取所有角色
|
JSONArray |
getAllUsers(boolean withEmail)
获取所有带邮件的角色
|
JSONObject |
getCompanyRoleInfoById(long roleId)
获取角色id来获取部门用户信息
|
long[] |
getCompanyRolesByUserId(long userId)
通过id获取部门角色
|
long[] |
getCompanyRolesByUserIdWithAllDepartment(long userId)
通过id获取部门角色,是否包含所有部门所有职位
|
long |
getCurrentUserID(javax.servlet.http.HttpServletRequest req)
获取当前用户id
|
java.lang.String |
getCurrentUserName(javax.servlet.http.HttpServletRequest req)
获取当前用户id
|
JSONObject |
getCustomRoleInfoById(long roleId)
获取角色id来获取自定义用户信息
|
long[] |
getCustomRolesByUserId(long userId)
通过id获取自定义角色
|
JSONArray |
getDataSourcePrivilege(java.lang.String currentUsername)
获取数据连接权限
|
FileNode[] |
getDesignFilterFile(java.lang.String currentUserName,
FileNode[] fileNodes,
java.util.ArrayList list)
获取有模版设计权限的报表
|
long |
getUserIdByName(java.lang.String userName)
通过用户名来获取id
|
JSONObject |
getUserInfoById(long userId)
通过id来获取用户信息
|
JSONObject |
getUserInfoByName(java.lang.String username)
根据用户名读取用户的信息
|
long[] |
getUsersByCompanyRoleId(long roleId)
通过id获取部门用户
|
long[] |
getUsersByCustomRoleId(long roleId)
通过id获取自定义用户
|
boolean |
hasFilePrivilege(java.lang.String currentUser,
java.lang.String templatePath)
是否具有文件夹权限
|
boolean |
hasProcessTask(long userId)
判断用户是否有上报任务处理
|
boolean |
isReportEntryRequest(javax.servlet.http.HttpServletRequest req)
是否是fs访问报表
|
static final java.lang.String XML_TAG_ROLE
java.lang.String[] getAllCompanyRole4Designer()
throws java.lang.Exception
java.lang.Exceptionlong getCurrentUserID(javax.servlet.http.HttpServletRequest req)
req - HTTP请求java.lang.String getCurrentUserName(javax.servlet.http.HttpServletRequest req)
req - HTTP请求long[] getCompanyRolesByUserId(long userId)
userId - 指定idlong[] getCompanyRolesByUserIdWithAllDepartment(long userId)
userId - 指定idlong[] getCustomRolesByUserId(long userId)
userId - 指定idlong[] getUsersByCompanyRoleId(long roleId)
roleId - 指定idlong[] getUsersByCustomRoleId(long roleId)
roleId - 指定idlong getUserIdByName(java.lang.String userName)
userName - 指定的用户名JSONObject getUserInfoById(long userId)
userId - 用户idJSONObject getUserInfoByName(java.lang.String username)
username - 用户名JSONObject getCompanyRoleInfoById(long roleId)
roleId - 角色idJSONObject getCustomRoleInfoById(long roleId)
roleId - 角色idJSONArray getAllRoles()
JSONArray getAllUsers(boolean withEmail)
withEmail - 配置了邮件JSONArray getAllDepart()
JSONArray getAllMailUsers(java.lang.Boolean withRealname)
withRealname - 是否需要全名boolean hasProcessTask(long userId)
userId - 用户idboolean isReportEntryRequest(javax.servlet.http.HttpServletRequest req)
req - http请求boolean hasFilePrivilege(java.lang.String currentUser,
java.lang.String templatePath)
throws java.lang.Exception
currentUser - 用户名templatePath - 文件路径java.lang.Exception - 抛出异常JSONArray getDataSourcePrivilege(java.lang.String currentUsername) throws java.lang.Exception
currentUsername - 用户名java.lang.Exception - 抛出异常FileNode[] getDesignFilterFile(java.lang.String currentUserName, FileNode[] fileNodes, java.util.ArrayList list) throws java.lang.Exception
currentUserName - 用户名fileNodes - 文件节点list - 结果列表java.lang.Exception - 抛出异常AuthenticateResultProvider doAuthenticate(CommonAuthentication auth) throws java.lang.Exception
auth - 认证对象java.lang.Exception - 抛出异常