public class GbifUserPrincipal extends Object implements ExtendedPrincipal
UserPrincipal
Constructor and Description |
---|
GbifUserPrincipal(GbifUser user) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
GbifUser |
getUser() |
boolean |
hasRole(String role)
Checks if the user has the given string based role.
|
public GbifUserPrincipal(GbifUser user)
public boolean hasRole(String role)
hasRole
in interface ExtendedPrincipal
role
- case insensitive roleCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.