Added policy to builder

This commit is contained in:
Fabio Sinibaldi 2022-05-31 13:37:53 +02:00
parent 610f255dcd
commit 9536379efb
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package org.gcube.application.geoportal.common.utils;
import org.bson.Document;
import org.gcube.application.geoportal.common.model.document.access.Access;
import org.gcube.application.geoportal.common.model.legacy.InputStreamDescriptor;
import org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest;
import org.gcube.application.geoportal.common.model.rest.TempFile;
@ -69,6 +70,12 @@ public class FileSets {
// default Clash Policy
setClashPolicy(RegisterFileSetRequest.ClashOptions.REPLACE_EXISTING);
return theRequest;}
public RequestBuilder setAccess(Access access){
theRequest.setToSetAccess(access);
return this;
}
}