git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/authorization-common-library@122399 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4a20202321
commit
3476d4a3d2
|
@ -18,22 +18,27 @@ public class ServiceAccess {
|
||||||
|
|
||||||
public ServiceAccess() {}
|
public ServiceAccess() {}
|
||||||
|
|
||||||
public ServiceAccess(String name, String serviceClass) {
|
public ServiceAccess(String serviceClass) {
|
||||||
super();
|
super();
|
||||||
this.name = name;
|
|
||||||
this.serviceClass = serviceClass;
|
this.serviceClass = serviceClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ServiceAccess(String name, String serviceClass) {
|
||||||
|
this(serviceClass);
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
public ServiceAccess(String name, String serviceClass, String serviceId) {
|
public ServiceAccess(String name, String serviceClass, String serviceId) {
|
||||||
this(name, serviceClass);
|
this(name, serviceClass);
|
||||||
this.serviceId = serviceId;
|
this.serviceId = serviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
public ServiceAccess(String name, String serviceClass, String serviceId,
|
public ServiceAccess(String name, String serviceClass, String serviceId,
|
||||||
HashMap<String, String> serviceSpecificPolices) {
|
HashMap<String, String> serviceSpecificPolices) {
|
||||||
this(name, serviceClass, serviceId);
|
this(name, serviceClass, serviceId);
|
||||||
this.serviceSpecificPolices = serviceSpecificPolices;
|
this.serviceSpecificPolices = serviceSpecificPolices;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public String getAsString(){
|
public String getAsString(){
|
||||||
if (serviceClass == null)
|
if (serviceClass == null)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package org.gcube.common.authorization.library.provider;
|
package org.gcube.common.authorization.library.provider;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
import javax.xml.bind.annotation.XmlAccessType;
|
||||||
|
@ -10,7 +11,7 @@ import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
@XmlRootElement
|
@XmlRootElement
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
@XmlSeeAlso(value={UserInfo.class, ServiceInfo.class})
|
@XmlSeeAlso(value={UserInfo.class, ServiceInfo.class})
|
||||||
public abstract class ClientInfo {
|
public abstract class ClientInfo implements Serializable{
|
||||||
|
|
||||||
public abstract String getId();
|
public abstract String getId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue