如何获得权限的接缝角色

时间:2021-08-09 15:30:28

I need in my application to get all permissions associated with a specific role with seam ?

我需要在我的应用程序中获取与特定角色关联的所有权限?

I tried with permissionManager.listPermissions but this method gives permissions associated with a specific target and not a specific recipient (role in my case).

我尝试使用permissionManager.listPermissions但是此方法提供了与特定目标相关联的权限,而不是特定的收件人(在我的情况下是角色)。

Thanks for your help.

谢谢你的帮助。

1 个解决方案

#1


3  

this is not possible by default in Seam. However, you can extend your permission store to do this. If you are using the JpaPermissionStore (which in most of the cases is true), you can check this link

默认情况下,这在Seam中是不可能的。但是,您可以扩展权限存储来执行此操作。如果您使用的是JpaPermissionStore(在大多数情况下都是如此),您可以查看此链接

#1


3  

this is not possible by default in Seam. However, you can extend your permission store to do this. If you are using the JpaPermissionStore (which in most of the cases is true), you can check this link

默认情况下,这在Seam中是不可能的。但是,您可以扩展权限存储来执行此操作。如果您使用的是JpaPermissionStore(在大多数情况下都是如此),您可以查看此链接