From 3476d4a3d2528c54672e270a4199dc7dc2d68bd0 Mon Sep 17 00:00:00 2001 From: "lucio.lelii" Date: Wed, 20 Jan 2016 18:33:05 +0000 Subject: [PATCH] git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/authorization-common-library@122399 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../authorization/library/policies/ServiceAccess.java | 11 ++++++++--- .../authorization/library/provider/ClientInfo.java | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/common/authorization/library/policies/ServiceAccess.java b/src/main/java/org/gcube/common/authorization/library/policies/ServiceAccess.java index 89a509e..96d6361 100644 --- a/src/main/java/org/gcube/common/authorization/library/policies/ServiceAccess.java +++ b/src/main/java/org/gcube/common/authorization/library/policies/ServiceAccess.java @@ -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 serviceSpecificPolices) { this(name, serviceClass, serviceId); this.serviceSpecificPolices = serviceSpecificPolices; - } + }*/ public String getAsString(){ if (serviceClass == null) diff --git a/src/main/java/org/gcube/common/authorization/library/provider/ClientInfo.java b/src/main/java/org/gcube/common/authorization/library/provider/ClientInfo.java index f47a0b1..138ca57 100644 --- a/src/main/java/org/gcube/common/authorization/library/provider/ClientInfo.java +++ b/src/main/java/org/gcube/common/authorization/library/provider/ClientInfo.java @@ -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();