Search in sources :

Example 1 with RoleSet

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

the class RoleMultiSelector method getAvailableValues.

@Override
protected String[] getAvailableValues() {
    try {
        Object bean = getBean();
        Project project = ((RoleSet) bean).getProject();
        List<String> roleList = project.getRolesWithGroups();
        return roleList.toArray(new String[roleList.size()]);
    } catch (Exception e) {
        return Strings2.EMPTY;
    }
}
Also used : Project(com.developmentontheedge.be5.metadata.model.Project) RoleSet(com.developmentontheedge.be5.metadata.model.RoleSet)

Aggregations

Project (com.developmentontheedge.be5.metadata.model.Project)1 RoleSet (com.developmentontheedge.be5.metadata.model.RoleSet)1