Skip to content
Snippets Groups Projects
Commit ef4e0d54 authored by uhensler's avatar uhensler
Browse files

OO-4821: RS when getting BBB recordings from Opencast

parent ab2d335d
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ import java.util.Map;
import java.util.stream.Collectors;
import org.olat.modules.opencast.AuthDelegate;
import org.olat.modules.opencast.AuthDelegate.Type;
/**
*
......@@ -33,6 +34,8 @@ import org.olat.modules.opencast.AuthDelegate;
*/
public class GetEventsParams {
private static final AuthDelegate AUTH_NONE = AuthDelegate.of(Type.None, null);
public enum Filter {
title,
textFilter
......@@ -47,7 +50,7 @@ public class GetEventsParams {
private String sortParam;
private GetEventsParams(Builder builder) {
this.authDelegate = builder.authDelegate;
this.authDelegate = builder.authDelegate != null? builder.authDelegate: AUTH_NONE;
if (builder.limit != null) {
this.limit = Integer.toString(builder.limit);
......
......@@ -24,6 +24,7 @@ import java.util.Map;
import java.util.stream.Collectors;
import org.olat.modules.opencast.AuthDelegate;
import org.olat.modules.opencast.AuthDelegate.Type;
/**
*
......@@ -33,6 +34,8 @@ import org.olat.modules.opencast.AuthDelegate;
*/
public class GetSeriesParams {
private static final AuthDelegate AUTH_NONE = AuthDelegate.of(Type.None, null);
public enum Filter {
title,
textFilter
......@@ -47,7 +50,7 @@ public class GetSeriesParams {
private String sortParam;
private GetSeriesParams(Builder builder) {
this.authDelegate = builder.authDelegate;
this.authDelegate = builder.authDelegate != null? builder.authDelegate: AUTH_NONE;
if (builder.limit != null) {
this.limit = Integer.toString(builder.limit);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment