Added policy to builder
This commit is contained in:
parent
610f255dcd
commit
9536379efb
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue