return queryFirst(PROC_READ_ITEM, this.readItemSql, RoleItem.class, args, cra);
}
@Override
public List<RoleItem> readRole(String roleId, CommonRequestArgs cra) {
AuthDataFilter authData = new AuthDataFilter();
authData.setSys(SecurityConstants.SYSTEM_ID);
authData.setFunc(SecurityConstants.SEC_FUNC_ROLES);
authData.setDataTypes("role", "func");
authData.setMode((AccessMode.READ).value());
authData.setMember(cra.getUserId());
Map<String, Object> args = new HashMap<String, Object>();
args.put("roleId", roleId);
return queryList(PROC_READ_ROLE, this.readRoleSql, RoleItem.class, args, cra, authData);