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 { public class AuthorizationEntryList {
private List<AuthorizationEntry> entries = new ArrayList<AuthorizationEntry>(); private List<AuthorizationEntry> entries = new ArrayList<AuthorizationEntry>();
protected AuthorizationEntryList() {}
public AuthorizationEntryList(List<AuthorizationEntry> entries) { public AuthorizationEntryList(List<AuthorizationEntry> entries) {
super(); super();

View File

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

View File

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