Pentaho 如何检索用户或管理员映像??如何清除CDA缓存?
我是pentaho CDE设计的新手 如果用户或管理员登录pentaho仪表板Pentaho 如何检索用户或管理员映像??如何清除CDA缓存?,pentaho,pentaho-data-integration,pentaho-cde,pentaho-report-designer,Pentaho,Pentaho Data Integration,Pentaho Cde,Pentaho Report Designer,我是pentaho CDE设计的新手 如果用户或管理员登录pentaho仪表板 如果管理员已登录,则应显示其图像 或登录到的用户,其图像应使用会话ID显示 如何清除CDA缓存?首先要做的是检索已登录用户的上下文: 在组件中,您可以执行以下操作: 使用this.dashboard.context.user获取用户ID 获取用户角色的this.dashboard.context.roles:如果用户是管理员,则该数组将包含“Administrator” 然后,您可以加载并显示所需的图像。要做的第
- 如果管理员已登录,则应显示其图像
- 或登录到的用户,其图像应使用会话ID显示
如何清除CDA缓存?首先要做的是检索已登录用户的上下文: 在组件中,您可以执行以下操作: 使用this.dashboard.context.user获取用户ID 获取用户角色的this.dashboard.context.roles:如果用户是管理员,则该数组将包含“Administrator”
然后,您可以加载并显示所需的图像。要做的第一件事是检索已登录用户的上下文: 在组件中,您可以执行以下操作: 使用this.dashboard.context.user获取用户ID 获取用户角色的this.dashboard.context.roles:如果用户是管理员,则该数组将包含“Administrator” 然后,您可以加载并显示所需的图像