use of com.thinkbiganalytics.metadata.modeshape.security.action.JcrActionTreeBuilder in project kylo by Teradata.
the class JcrSecurityRole method setPermissions.
/* (non-Javadoc)
* @see com.thinkbiganalytics.security.role.SecurityRole#setPermissions(java.util.Collection)
*/
@Override
public void setPermissions(Collection<Action> actions) {
Node actionsNode = getAllowedActionsNode();
JcrActionTreeBuilder<JcrAbstractActionsBuilder> bldr = new JcrActionTreeBuilder<>(actionsNode, null);
actions.forEach(action -> bldr.action(action));
bldr.add();
}
Aggregations