jasperserver 5.5 を使用しています。ユーザー レベルでの行セキュリティは正常に機能していますが、ロール レベルで問題が発生しているようです。
これをJIProfileAttributeに挿入しました
INSERT INTO JIProfileAttribute
( id
, attrName
, attrValue
, principalobjectclass
, principalobjectid
) 値 (8, 'test_attr', 'val1,val2,val3, 'com.jaspersoft.jasperserver.api.metadata.user.domain.impl.hibernate.RepoRole', 7);
これは私のセキュリティ ファイルのスニペットです。
<principalExpression>
<![CDATA[authentication.principal.attributes.any {it.attrName in ['test_attr'] }]]>
</principalExpression>
<filterExpression>join_tree.test_attr in ( groovy('authentication.getPrincipal().getAttributes().find{ it.attrName == "test_attr" }.attrValue.split(",").collect{"''" + it + "''"}.join(",").replaceFirst("^''","").replaceFirst("''\$","")'))</filterExpression>
すべてのドキュメントは、ユーザー レベルでのみ話します。それらを役割レベルにする方法はありますか??
どんな助けでも大歓迎です。ありがとう!