package com.coreoz.plume.admin.webservices.security;

import java.util.Set;

import com.coreoz.plume.admin.jersey.WebSessionPermission;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * Contains secure data of a user
 */
@Getter
@Setter
@Accessors(chain = true)
@ToString
public class WebSessionAdmin implements WebSessionPermission {

	private long idUser;
	private String userName;
	private String fullName;
	private Set<String> permissions;
	private long expirationTime;

}

@@ -128,16 +128,146 @@
 mission;
+%0Aimport com.fasterxml.jackson.databind.annotation.JsonSerialize;%0Aimport com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
 %0A%0Aimport
@@ -524,16 +524,66 @@
 sion %7B%0A%0A
+%09@JsonSerialize(using = ToStringSerializer.class)%0A
 %09private
@@ -644,24 +644,24 @@
 g fullName;%0A
-
 %09private Set
@@ -682,16 +682,66 @@
 ssions;%0A
+%09@JsonSerialize(using = ToStringSerializer.class)%0A
 %09private

Fix session serialization for Js