diff --git a/src/main/java/org/olat/modules/opencast/manager/client/GetEventsParams.java b/src/main/java/org/olat/modules/opencast/manager/client/GetEventsParams.java index 16140fee126a0c70eada22c8e9c0cba89756c21c..5fc081111684a1e76759abc7f91cb86183afeb64 100644 --- a/src/main/java/org/olat/modules/opencast/manager/client/GetEventsParams.java +++ b/src/main/java/org/olat/modules/opencast/manager/client/GetEventsParams.java @@ -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); diff --git a/src/main/java/org/olat/modules/opencast/manager/client/GetSeriesParams.java b/src/main/java/org/olat/modules/opencast/manager/client/GetSeriesParams.java index 2685924d0a33ce4ec95fbf058e986399f63fa4ae..dd1525d6fc8760df1f026ef92c8424c0c936a698 100644 --- a/src/main/java/org/olat/modules/opencast/manager/client/GetSeriesParams.java +++ b/src/main/java/org/olat/modules/opencast/manager/client/GetSeriesParams.java @@ -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);