Class UserInfo
java.lang.Object
eu.dnetlib.organizations.controller.UserInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserRolefindRole(org.springframework.security.core.Authentication authentication) static UserInfogenerate(org.springframework.security.core.Authentication authentication) static StringgetEmail(org.springframework.security.core.Authentication authentication) static StringgetEmail(org.springframework.security.oauth2.core.oidc.user.OidcUser user) static StringgetFullname(org.springframework.security.core.Authentication authentication) static StringgetFullname(org.springframework.security.oauth2.core.oidc.user.OidcUser user) getName()static StringgetOrganization(org.springframework.security.core.Authentication authentication) static StringgetOrganization(org.springframework.security.oauth2.core.oidc.user.OidcUser user) getRole()static booleanisNationalAdmin(org.springframework.security.core.Authentication authentication) static booleanisNotAuthorized(org.springframework.security.core.Authentication authentication) static booleanisPending(org.springframework.security.core.Authentication authentication) static booleanisSimpleUser(org.springframework.security.core.Authentication authentication) static booleanisSuperAdmin(org.springframework.security.core.Authentication authentication) voidvoid
-
Constructor Details
-
UserInfo
public UserInfo() -
UserInfo
-
-
Method Details
-
getName
-
setName
-
getRole
-
setRole
-
generate
-
findRole
-
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
-
getEmail
-
getFullname
-
getFullname
-
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)
-