public class FSBridge extends java.lang.Object implements PlatformProvider
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
COMPANY_ROLE |
static int |
CUSTOM_ROLE |
XML_TAG_ROLE| 构造器和说明 |
|---|
FSBridge() |
| 限定符和类型 | 方法和说明 |
|---|---|
AuthenticateResult |
doAuthenticate(CommonAuthentication auth)
用户认证
|
java.lang.String[] |
getAllCompanyRole4Designer()
获取部门角色
|
JSONArray |
getAllDepart()
获取所有部门
|
JSONArray |
getAllMailUsers() |
JSONArray |
getAllMailUsers(java.lang.Boolean withRealname)
获取所有用户
|
JSONArray |
getAllRoles()
获取所有角色
|
JSONArray |
getAllUsers(boolean withEmail)
获取所有带邮件的角色
|
JSONObject |
getCompanyRoleInfoById(long roleId)
获取部门角色信息
|
long[] |
getCompanyRolesByUserId(long userId)
获取用户所在的所有部门角色id
UserControl.getInstance().getJobs(userId)存储的部门角色结构是
RelationObject
values: 部门departmentid 职位postid
|
long[] |
getCompanyRolesByUserIdWithAllDepartment(long userId)
获取用户所在的所有部门角色id,包含所有部门所有职位
UserControl.getInstance().getJobs(userId)存储的部门角色结构是
RelationObject
values: 部门departmentid 职位postid
|
long |
getCurrentUserID(javax.servlet.http.HttpServletRequest req)
获取当前用户id
|
java.lang.String |
getCurrentUserName(javax.servlet.http.HttpServletRequest req)
获取当前用户名
|
JSONObject |
getCustomRoleInfoById(long roleId)
获取普通角色信息
|
long[] |
getCustomRolesByUserId(long userId)
获取用户所在的所有自定义角色id
|
JSONArray |
getDataSourcePrivilege(java.lang.String currentUsername)
获取数据连接权限
|
FileNode[] |
getDesignFilterFile(java.lang.String currentUserName,
FileNode[] fileNodes,
java.util.ArrayList list)
获取有模版设计权限的报表
|
static FSBridge |
getInstance() |
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访问报表
|
public static final int COMPANY_ROLE
public static final int CUSTOM_ROLE
public static FSBridge getInstance()
public java.lang.String[] getAllCompanyRole4Designer()
throws java.lang.Exception
getAllCompanyRole4Designer 在接口中 PlatformProviderjava.lang.Exceptionpublic long getCurrentUserID(javax.servlet.http.HttpServletRequest req)
getCurrentUserID 在接口中 PlatformProviderreq - http请求public java.lang.String getCurrentUserName(javax.servlet.http.HttpServletRequest req)
getCurrentUserName 在接口中 PlatformProviderreq - http请求public long[] getCompanyRolesByUserId(long userId)
getCompanyRolesByUserId 在接口中 PlatformProvideruserId - 用户idpublic long[] getCompanyRolesByUserIdWithAllDepartment(long userId)
getCompanyRolesByUserIdWithAllDepartment 在接口中 PlatformProvideruserId - 用户idpublic long getUserIdByName(java.lang.String userName)
getUserIdByName 在接口中 PlatformProvideruserName - 指定的用户名public long[] getCustomRolesByUserId(long userId)
getCustomRolesByUserId 在接口中 PlatformProvideruserId - 用户idpublic long[] getUsersByCompanyRoleId(long roleId)
getUsersByCompanyRoleId 在接口中 PlatformProviderroleId - 角色idpublic long[] getUsersByCustomRoleId(long roleId)
getUsersByCustomRoleId 在接口中 PlatformProviderroleId - 角色idpublic JSONObject getUserInfoById(long userId)
getUserInfoById 在接口中 PlatformProvideruserId - 用户idpublic JSONObject getUserInfoByName(java.lang.String username)
getUserInfoByName 在接口中 PlatformProviderusername - 用户名public JSONObject getCompanyRoleInfoById(long roleId)
getCompanyRoleInfoById 在接口中 PlatformProviderroleId - 部门角色idpublic JSONObject getCustomRoleInfoById(long roleId)
getCustomRoleInfoById 在接口中 PlatformProviderroleId - 普通角色public JSONArray getAllRoles()
PlatformProvidergetAllRoles 在接口中 PlatformProviderpublic JSONArray getAllUsers(boolean withEmail)
PlatformProvidergetAllUsers 在接口中 PlatformProviderwithEmail - 配置了邮件public JSONArray getAllDepart()
PlatformProvidergetAllDepart 在接口中 PlatformProviderpublic JSONArray getAllMailUsers()
public JSONArray getAllMailUsers(java.lang.Boolean withRealname)
PlatformProvidergetAllMailUsers 在接口中 PlatformProviderwithRealname - 是否需要全名public boolean hasProcessTask(long userId)
hasProcessTask 在接口中 PlatformProvideruserId - 用户idpublic boolean isReportEntryRequest(javax.servlet.http.HttpServletRequest req)
isReportEntryRequest 在接口中 PlatformProviderreq - http请求public boolean hasFilePrivilege(java.lang.String currentUser,
java.lang.String templatePath)
throws java.lang.Exception
hasFilePrivilege 在接口中 PlatformProvidercurrentUser - 用户名templatePath - 文件路径java.lang.Exception - 抛出异常public JSONArray getDataSourcePrivilege(java.lang.String currentUsername) throws java.lang.Exception
getDataSourcePrivilege 在接口中 PlatformProvidercurrentUsername - 用户名java.lang.Exception - 抛出异常public FileNode[] getDesignFilterFile(java.lang.String currentUserName, FileNode[] fileNodes, java.util.ArrayList list) throws java.lang.Exception
PlatformProvidergetDesignFilterFile 在接口中 PlatformProvidercurrentUserName - 用户名fileNodes - 文件节点list - 结果列表java.lang.Exception - 抛出异常public AuthenticateResult doAuthenticate(CommonAuthentication auth) throws java.lang.Exception
doAuthenticate 在接口中 PlatformProviderauth - 认证对象java.lang.Exception