}
//===================== Private Methods =============================
private void doAuthorization(HttpServletRequest request, boolean readonly) throws PermissionException {
UserPrivilegeVo vo = new UserPrivilegeVo();
vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
UserPrivilegeType.Key.MANAGE_USERS_KEY.getKey()));
if(readonly){
vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
PrivilegeActionType.Key.READ_KEY.getKey()));
}else{
vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
}
checkAuthorization(userHasPrivilege(request.getSession(), vo));
}