Class UserInfo

java.lang.Object
eu.dnetlib.organizations.controller.UserInfo

public class UserInfo extends Object
  • Constructor Details

    • UserInfo

      public UserInfo()
    • UserInfo

      public UserInfo(String name, UserRole role)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getRole

      public UserRole getRole()
    • setRole

      public void setRole(UserRole role)
    • generate

      public static UserInfo generate(org.springframework.security.core.Authentication authentication)
    • findRole

      public static UserRole findRole(org.springframework.security.core.Authentication authentication)
    • isSuperAdmin

      public static boolean isSuperAdmin(org.springframework.security.core.Authentication authentication)
    • isNationalAdmin

      public static boolean isNationalAdmin(org.springframework.security.core.Authentication authentication)
    • isSimpleUser

      public static boolean isSimpleUser(org.springframework.security.core.Authentication authentication)
    • isPending

      public static boolean isPending(org.springframework.security.core.Authentication authentication)
    • isNotAuthorized

      public static boolean isNotAuthorized(org.springframework.security.core.Authentication authentication)
    • getEmail

      public static String getEmail(org.springframework.security.core.Authentication authentication)
    • getEmail

      public static String getEmail(org.springframework.security.oauth2.core.oidc.user.OidcUser user)
    • getFullname

      public static String getFullname(org.springframework.security.core.Authentication authentication)
    • getFullname

      public static String getFullname(org.springframework.security.oauth2.core.oidc.user.OidcUser user)
    • getOrganization

      public static String getOrganization(org.springframework.security.core.Authentication authentication)
    • getOrganization

      public static String getOrganization(org.springframework.security.oauth2.core.oidc.user.OidcUser user)