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; ...@@ -24,6 +24,7 @@ import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.olat.modules.opencast.AuthDelegate; import org.olat.modules.opencast.AuthDelegate;
import org.olat.modules.opencast.AuthDelegate.Type;
/** /**
* *
...@@ -33,6 +34,8 @@ import org.olat.modules.opencast.AuthDelegate; ...@@ -33,6 +34,8 @@ import org.olat.modules.opencast.AuthDelegate;
*/ */
public class GetEventsParams { public class GetEventsParams {
private static final AuthDelegate AUTH_NONE = AuthDelegate.of(Type.None, null);
public enum Filter { public enum Filter {
title, title,
textFilter textFilter
...@@ -47,7 +50,7 @@ public class GetEventsParams { ...@@ -47,7 +50,7 @@ public class GetEventsParams {
private String sortParam; private String sortParam;
private GetEventsParams(Builder builder) { private GetEventsParams(Builder builder) {
this.authDelegate = builder.authDelegate; this.authDelegate = builder.authDelegate != null? builder.authDelegate: AUTH_NONE;
if (builder.limit != null) { if (builder.limit != null) {
this.limit = Integer.toString(builder.limit); this.limit = Integer.toString(builder.limit);
......
...@@ -24,6 +24,7 @@ import java.util.Map; ...@@ -24,6 +24,7 @@ import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.olat.modules.opencast.AuthDelegate; import org.olat.modules.opencast.AuthDelegate;
import org.olat.modules.opencast.AuthDelegate.Type;
/** /**
* *
...@@ -33,6 +34,8 @@ import org.olat.modules.opencast.AuthDelegate; ...@@ -33,6 +34,8 @@ import org.olat.modules.opencast.AuthDelegate;
*/ */
public class GetSeriesParams { public class GetSeriesParams {
private static final AuthDelegate AUTH_NONE = AuthDelegate.of(Type.None, null);
public enum Filter { public enum Filter {
title, title,
textFilter textFilter
...@@ -47,7 +50,7 @@ public class GetSeriesParams { ...@@ -47,7 +50,7 @@ public class GetSeriesParams {
private String sortParam; private String sortParam;
private GetSeriesParams(Builder builder) { private GetSeriesParams(Builder builder) {
this.authDelegate = builder.authDelegate; this.authDelegate = builder.authDelegate != null? builder.authDelegate: AUTH_NONE;
if (builder.limit != null) { if (builder.limit != null) {
this.limit = Integer.toString(builder.limit); 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