User targetUser = transaction.execute();
if (targetUser == null) {
return renderInvalid(UserErrorCode.INVALID_ARGUMENT);
} else {
// Admin専用APIなのでtoSafeJSONの代わりにtoJSONを呼ぶ
return renderOK(targetUser.toJSON());
}
}
}
class GetBanAPITransaction extends DBAccess<User> {