@Override
 public boolean isReadonly() {
   SystemContext context = (SystemContext) this.getContext();
   // 配置权限:报表管理员,报表模板管理员、超级管理员
   return !context.hasAnyRole(
       getText("key.role.bc.report"),
       getText("key.role.bc.report.template"),
       getText("key.role.bc.admin"));
 }
 @Override
 public boolean isReadonly() {
   SystemContext context = (SystemContext) this.getContext();
   // 配置权限:电子邮件管理角色或系统管理员
   return !context.hasAnyRole(getText("key.role.bc.email.manage"), getText("key.role.bc.admin"));
 }
예제 #3
0
 // @Override
 // public boolean isReadonly() {
 // // 模板管理员或系统管理员
 // SystemContext context = (SystemContext) this.getContext();
 // // 配置权限:模板管理员
 // return !context.hasAnyRole(getText("key.role.bc.netdisk"),
 // getText("key.role.bc.admin"));
 // }
 // 公共硬盘管理权限
 public boolean isPublicHardDiskManagement() {
   // 模板管理员或系统管理员
   SystemContext context = (SystemContext) this.getContext();
   // 配置权限:公共管理员
   return context.hasAnyRole(getText("key.role.bc.netdisk.public"), getText("key.role.bc.admin"));
 }
 @Override
 public boolean isReadonly() {
   // 车辆证件管理员或系统管理员
   SystemContext context = (SystemContext) this.getContext();
   return !context.hasAnyRole(getText("key.role.bs.cert4car"), getText("key.role.bc.admin"));
 }