Added calls in bunch for token generation
This commit is contained in:
parent
0b818fd17b
commit
957c9ad0c5
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue