Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ufal/be-license-download-statistics #462

Merged
merged 7 commits into from
Dec 1, 2023
Merged
Prev Previous commit
Next Next commit
Added docs
milanmajchrak committed Nov 28, 2023
commit 8e3c24c53c2591e669e4abf6d7aac729c0ddbc2c
Original file line number Diff line number Diff line change
@@ -139,6 +139,11 @@ public void trackBitstreamDownload(Context context, HttpServletRequest request,
trackPage(context, request, item, "Bitstream Download / Single File");
}

/**
* Log the user which is downloading the bitstream
* @param context DSpace context object
* @param bit Bitstream which is downloading
*/
private void logUserDownloadingBitstream(Context context, Bitstream bit) {
EPerson eperson = context.getCurrentUser();
if (Objects.isNull(eperson)) {