|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.platform.security.policy.rolebased.JcrRoleAuthorizationPolicyRoleBindingDao
public class JcrRoleAuthorizationPolicyRoleBindingDao
An IRoleAuthorizationPolicyRoleBindingDao
implementation that uses JCR. Storage is done using nodes and
properties, not XML. Storage looks like this:
- acme
- .authz
- roleBased
- runtimeRoles
- runtimeRole1
- logicalRole1,logicalRole2 (multi-valued property)
- runtimeRole2
- logicalRole2 (multi-valued property)
Note: All multi-valued properties are ordered.
Note: This code runs as the repository superuser. Ideally this would run as the tenant admin but such a named user doesn't exist for us to run as. Now that the repo uses IAuthorizationPolicy for access control, this code MUST continue to run as the repository superuser. This is one reason not to implement this on top of PUR.
Constructor Summary | |
---|---|
JcrRoleAuthorizationPolicyRoleBindingDao(org.springframework.transaction.support.TransactionTemplate txnTemplate,
org.springframework.extensions.jcr.JcrTemplate jcrTemplate,
List<String> logicalRoleNames,
Map<String,Properties> logicalRoleLocaleMap,
Map<String,List<String>> immutableRoleBindings,
Map<String,List<String>> bootstrapRoleBindings,
String repositoryAdminUsername)
|
Method Summary | |
---|---|
List<String> |
getBoundLogicalRoleNames(List<String> runtimeRoleNames)
Gets the logical roles bound to the given runtime roles. |
RoleBindingStruct |
getRoleBindingStruct(String locale)
Gets a struct-like object that contains everything known by this DAO. |
void |
setRoleBindings(String runtimeRoleName,
List<String> logicalRoleNames)
Sets the bindings for the given runtime role. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JcrRoleAuthorizationPolicyRoleBindingDao(org.springframework.transaction.support.TransactionTemplate txnTemplate, org.springframework.extensions.jcr.JcrTemplate jcrTemplate, List<String> logicalRoleNames, Map<String,Properties> logicalRoleLocaleMap, Map<String,List<String>> immutableRoleBindings, Map<String,List<String>> bootstrapRoleBindings, String repositoryAdminUsername)
Method Detail |
---|
public RoleBindingStruct getRoleBindingStruct(String locale)
getRoleBindingStruct
in interface IRoleAuthorizationPolicyRoleBindingDao
locale
- locale, possibly null
public void setRoleBindings(String runtimeRoleName, List<String> logicalRoleNames)
setRoleBindings
in interface IRoleAuthorizationPolicyRoleBindingDao
runtimeRoleName
- runtime role namepublic List<String> getBoundLogicalRoleNames(List<String> runtimeRoleNames)
#getRoleBindingStruct()
.
getBoundLogicalRoleNames
in interface IRoleAuthorizationPolicyRoleBindingDao
runtimeRoleNames
- list of runtime role names
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |