Search in sources :

Example 1 with RoleGroup

use of com.developmentontheedge.be5.metadata.model.RoleGroup in project be5 by DevelopmentOnTheEdge.

the class ModuleLoader2MergeModulesTest method setRoleGroups.

private void setRoleGroups(Project project, String name) {
    BeModelCollection<RoleGroup> groups = project.getRoleGroups();
    RoleGroup management = new RoleGroup(name, groups);
    management.getRoleSet().addInclusionAll(Collections.singletonList(name));
    DataElementUtils.save(management);
    project.fireCodeChanged();
}
Also used : RoleGroup(com.developmentontheedge.be5.metadata.model.RoleGroup)

Aggregations

RoleGroup (com.developmentontheedge.be5.metadata.model.RoleGroup)1