Lucio Lelii 2016-01-20 18:33:05 +00:00
parent 4a20202321
commit 3476d4a3d2
2 changed files with 10 additions and 4 deletions

View File

@ -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)

View File

@ -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();