use of edu.stanford.bmir.protege.web.shared.access.BuiltInRole in project webprotege by protegeproject.
the class RoleOracleImpl method get.
public static RoleOracleImpl get() {
RoleOracleImpl impl = new RoleOracleImpl();
for (BuiltInRole builtInRole : BuiltInRole.values()) {
List<RoleId> parentRoles = builtInRole.getParents().stream().map(BuiltInRole::getRoleId).collect(toList());
List<ActionId> actions = builtInRole.getActions().stream().map(BuiltInAction::getActionId).collect(toList());
impl.addRole(new Role(builtInRole.getRoleId(), parentRoles, actions));
}
return impl;
}
Aggregations