userPrivVo.setActionType(getReadAction());
menuPrivVo.setViewSponsoredProjectsVisible(userVo.hasPrivilege(userPrivVo));
}
private void setSeteAdministratorMenuPrivileges(SideMenuVo menuPrivVo, AuthenticatedUserVo userVo) {
UserPrivilegeVo userPrivVo = new UserPrivilegeVo();
List<UserPrivilegeVo> privs = new ArrayList<UserPrivilegeVo>();
userPrivVo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
UserPrivilegeType.Key.MANAGE_USERS_KEY.getKey()));
userPrivVo.setActionType(getReadWriteAction());
privs.add(userPrivVo);
userPrivVo = new UserPrivilegeVo();
userPrivVo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
UserPrivilegeType.Key.MANAGE_ROLES_KEY.getKey()));
userPrivVo.setActionType(getReadWriteAction());
privs.add(userPrivVo);
userPrivVo = new UserPrivilegeVo();
userPrivVo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
UserPrivilegeType.Key.VIEW_ALL_PROJECTS_KEY.getKey()));
userPrivVo.setActionType(getReadWriteAction());
privs.add(userPrivVo);
userPrivVo = new UserPrivilegeVo();
userPrivVo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
UserPrivilegeType.Key.MANAGE_PROJECT_FILES_KEY.getKey()));
userPrivVo.setActionType(getReadWriteAction());
privs.add(userPrivVo);
menuPrivVo.setUsingJediForce(userVo.hasPrivilege(privs));
}