Constructor and Description |
---|
MockedUserInfo(CdsProperties.Security.Mock.User mockedUser) |
Modifier and Type | Method and Description |
---|---|
<T extends UserInfo> |
as(Class<T> userInfoClazz) |
Map<String,Object> |
getAdditionalAttributes() |
Map<String,List<String>> |
getAttributes() |
String |
getId() |
String |
getName() |
Set<String> |
getRoles() |
String |
getTenant() |
Set<String> |
getUnrestrictedAttributes() |
boolean |
isAuthenticated() |
boolean |
isPrivileged() |
boolean |
isSystemUser() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy, create, getAdditionalAttribute, getAttribute, getAttributeValues, hasRole, isUnrestrictedAttribute
public MockedUserInfo(CdsProperties.Security.Mock.User mockedUser)
public boolean isSystemUser()
isSystemUser
in interface UserInfo
public boolean isAuthenticated()
isAuthenticated
in interface UserInfo
public boolean isPrivileged()
isPrivileged
in interface UserInfo
public Map<String,List<String>> getAttributes()
getAttributes
in interface UserInfo
public Set<String> getUnrestrictedAttributes()
getUnrestrictedAttributes
in interface UserInfo
public Map<String,Object> getAdditionalAttributes()
getAdditionalAttributes
in interface UserInfo
Copyright © 2020. All rights reserved.