package parkup.data.enumarations; import org.springframework.security.core.GrantedAuthority; public enum UserRole implements GrantedAuthority { GUEST, REG_USER, WORKER, ADMIN; @Override public String getAuthority() { return name(); } }