git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/authorization-common-library@134514 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
42b9f391ea
commit
2e08673847
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>common-authorization</artifactId>
|
<artifactId>common-authorization</artifactId>
|
||||||
<version>2.0.0-SNAPSHOT</version>
|
<version>2.0.1-SNAPSHOT</version>
|
||||||
<name>authorization service common library</name>
|
<name>authorization service common library</name>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
package org.gcube.common.authorization.library;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.xml.bind.annotation.XmlAccessType;
|
||||||
|
import javax.xml.bind.annotation.XmlAccessorType;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||||
|
|
||||||
|
import org.gcube.common.authorization.library.utils.MapAdapter;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@XmlRootElement
|
||||||
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
|
public class ExternalServiceList {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* a map with qualifier as key and token as value
|
||||||
|
*/
|
||||||
|
@XmlJavaTypeAdapter(MapAdapter.class)
|
||||||
|
Map<String, String> externalServiceMap= new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
private ExternalServiceList(){}
|
||||||
|
|
||||||
|
public ExternalServiceList(Map<String, String> externalServiceMap) {
|
||||||
|
this.externalServiceMap = externalServiceMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, String> getExternalServiceMap() {
|
||||||
|
return externalServiceMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "ExternalServiceList [externalServiceMap=" + externalServiceMap
|
||||||
|
+ "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue