}
return user;
}
public static final Role getRole(Map<String, Object> map) {
Role role = null;
if (map != null && map.size() > 0) {
Object o = map.get(TestLinkResponseParams.DB_ID.toString());
if (o != null) {
Integer dbID = Integer.parseInt(o.toString());
if (dbID > 0) {
role = new Role(dbID);
role.setDescription(getString(map, TestLinkResponseParams.DESCRIPTION.toString()));
role.setName(getString(map, TestLinkResponseParams.NAME.toString()));
role.setRights((Object[]) map.get(TestLinkResponseParams.RIGHTS.toString()));
}
}
}
return role;
}