}
StringBuffer buffer = new StringBuffer();
Object obj = request.getAttribute(Globals.OBJECT);
String[] subClassProperties = BeanUtil.getSubClassProperties(obj
.getClass());
SysUserCache userCache = (SysUserCache) request.getSession()
.getAttribute(Globals.SYS_USER_CACHE);
/* 这里是从request当中取到用户拥有权限并选择的字段,将来应该是从缓存当中得到,这是需要修改的地方 */
/* 对所有的子表属性进行循环 */
for (int j = 0; j < subClassProperties.length; j++) {
String subClassProperty = subClassProperties[j];
String subClassName = BeanUtil.getSubClass(obj.getClass(),
subClassProperties[j]);
ArrayList displayProperties = userCache
.getDisplayProperties(subClassName);
if (displayProperties == null) {
return null;
}
//用户提交数据校验之后的结果需要显示给用户