return Sets.newHashSet(session.<Integer>selectList(sql, params));
}
public boolean isAuthorizedComponentId(int componentId, @Nullable Integer userId, String role) {
return keepAuthorizedComponentIds(Sets.newHashSet(componentId), userId, role).size() == 1;
}
<BUG>public Set<Integer> selectAuthorizedRootProjectsIds(@Nullable Integer userId, String role) {
</BUG>
SqlSession session = mybatis.openSession();
try {
return selectAuthorizedRootProjectsIds(userId, role, session);

return Sets.newHashSet(session.<Integer>selectList(sql, params));
}
public boolean isAuthorizedComponentId(int componentId, @Nullable Integer userId, String role) {
return keepAuthorizedComponentIds(Sets.newHashSet(componentId), userId, role).size() == 1;
}
public Collection<Integer> selectAuthorizedRootProjectsIds(@Nullable Integer userId, String role) {
SqlSession session = mybatis.openSession();
try {
return selectAuthorizedRootProjectsIds(userId, role, session);
