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(String name, String serviceClass) {
public ServiceAccess(String serviceClass) {
super();
this.name = name;
this.serviceClass = serviceClass;
}
public ServiceAccess(String name, String serviceClass) {
this(serviceClass);
this.name = name;
}
public ServiceAccess(String name, String serviceClass, String serviceId) {
this(name, serviceClass);
this.serviceId = serviceId;
}
/*
public ServiceAccess(String name, String serviceClass, String serviceId,
HashMap<String, String> serviceSpecificPolices) {
this(name, serviceClass, serviceId);
this.serviceSpecificPolices = serviceSpecificPolices;
}
}*/
public String getAsString(){
if (serviceClass == null)

View File

@ -1,5 +1,6 @@
package org.gcube.common.authorization.library.provider;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
@ -10,7 +11,7 @@ import javax.xml.bind.annotation.XmlSeeAlso;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso(value={UserInfo.class, ServiceInfo.class})
public abstract class ClientInfo {
public abstract class ClientInfo implements Serializable{
public abstract String getId();