class ReuploadKeyServiceImpl implements ReuploadKeyService {

    @Override
	public void updateResourceData(ReuploadKeyStatusDTO dto) {
        String user = dto.getUser();
        ResourceData resource = dto.getReuploadKeyCallbackDTO().getResource();
        log.debug("Updating resource {} to status RUNNING...", resource.toString());
        updateResourceStatus(user, null, resource, RUNNING);
        if (dto.getReuploadKeyStatus() == ReuploadKeyStatus.COMPLETED) {
            log.debug(REUPLOAD_KEY_UPDATE_MSG, resource.toString());
            updateResourceReuploadKeyFlag(user, null, resource, false);
        } else {
            log.error(REUPLOAD_KEY_ERROR_MSG, resource.toString());
        }
    }

}