Added calls in bunch for token generation

This commit is contained in:
lucio 2020-01-23 14:31:49 +01:00
parent 0b818fd17b
commit 957c9ad0c5
3 changed files with 11 additions and 2 deletions

View File

@ -11,6 +11,8 @@ import org.gcube.common.authorization.library.AuthorizationEntry;
public class AuthorizationEntryList {
private List<AuthorizationEntry> entries = new ArrayList<AuthorizationEntry>();
protected AuthorizationEntryList() {}
public AuthorizationEntryList(List<AuthorizationEntry> entries) {
super();

View File

@ -10,7 +10,7 @@ public class ListMapper {
private List<String> list = new ArrayList<String>();
protected ListMapper() {}
public ListMapper(List<String> list) {
super();

View File

@ -1,17 +1,24 @@
package org.gcube.common.authorization.library.utils;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import org.gcube.common.authorization.library.provider.ServiceInfo;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class MultiServiceTokenRequest {
private List<String> containerTokens;
private List<String> containerTokens= new ArrayList<String>();
private ServiceInfo info;
protected MultiServiceTokenRequest() {}
public MultiServiceTokenRequest(List<String> containerTokens, ServiceInfo info) {
this.containerTokens = containerTokens;
this.info = info;