From 908cfb5fae2387e2afcbc3e4bac4e62f803fca2a Mon Sep 17 00:00:00 2001 From: "luca.frosini" Date: Fri, 16 Jun 2017 14:07:16 +0000 Subject: [PATCH] Set enum as static git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@150411 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../resourceregistry/context/SecurityContextMapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/context/SecurityContextMapper.java b/src/main/java/org/gcube/informationsystem/resourceregistry/context/SecurityContextMapper.java index 09ed7b8..4fcf8e7 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/SecurityContextMapper.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/SecurityContextMapper.java @@ -86,7 +86,7 @@ public abstract class SecurityContextMapper { } } - public enum SecurityType { + public static enum SecurityType { ROLE("Role"), USER("User"); private final String name; @@ -100,7 +100,7 @@ public abstract class SecurityContextMapper { } } - public enum PermissionMode { + public static enum PermissionMode { READER("Reader"), WRITER("Writer"); private final String name;