Package ca.cdr.api.model.json
Class UserSessionDetailsJson
java.lang.Object
ca.cdr.api.model.json.UserDetailsJson
ca.cdr.api.model.json.UserSessionDetailsJson
- All Implemented Interfaces:
IHasAuthorities,IHasUserData,IModelJson,IOAuth2Session,IModelJson,Serializable,Cloneable,org.springframework.security.core.AuthenticatedPrincipal,org.springframework.security.core.userdetails.UserDetails
public class UserSessionDetailsJson
extends UserDetailsJson
implements IOAuth2Session, IModelJson, org.springframework.security.core.AuthenticatedPrincipal, IHasUserData
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.cdr.api.model.json.UserDetailsJson
UserDetailsJson.AssociatedResourceJson, UserDetailsJson.AssociatedResourceTypeEnum -
Field Summary
FieldsFields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionConstructorUserSessionDetailsJson(UserDetailsJson theCopyObject) Copy Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApprovedScope(String theScope) voidaddApprovedScopes(Set<String> theScope) voidaddClaimsAsUserData(Map<String, Object> theClaims) Adds all claims in the provided map as user datavoidaddFhirContextReference(String theReference) voidaddFhirContextReference(String theReference, String theRole) voidaddLaunchContextParameter(String theParameterName, String theParameterValue) voidaddLaunchResourceId(String theResourceType, String theResourceId) voidaddUserData(String theKey, String theValue) If the session is an OAuth2 session (i.e. it is accessed via a bearer token that was granted by a SMART Auth server) this field will be populated with the set of scopes that were approved for the clientgetClientPopulatedUserData(boolean theCreateIfNull) Model objects wishing to implement user data can implement this interface, and only need to actually implement this methodgetLaunchContextParameterValueForParameterName(String theParameterName) getLaunchResourceIdForResourceType(String theResourceType) getLaunchResourceIdsForResourceType(String theResourceType) getName()booleanDoes this session have any approved scopesvoidremoveApprovedScope(String theScope) voidsetApprovedScopes(Set<String> theApprovedScopes) voidsetFhirUserUrl(String theFhirUserUrl) voidsetOidcClientId(String theClientId) voidsetOidcClientModuleId(String theModuleId) voidsetOidcClientNodeId(String theOidcNodeId) This method caches its output!!toString()Methods inherited from class ca.cdr.api.model.json.UserDetailsJson
addAssociatedResource, addAssociatedResource, addAuthorities, addAuthority, addAuthority, addDefaultLaunchContext, clone, getAccountExpiry, getAccountExpiryDateAsIsoString, getAssociatedResources, getAuthorities, getAuthorityNames, getCredentialExpiry, getCredentialExpiryDateAsIsoString, getDefaultLaunchContextResourceIdForContextType, getDefaultLaunchContexts, getDefaultLaunchContextsCommaSeparated, getEmail, getFailedLoginAttempts, getFamilyName, getFullName, getGivenName, getLastActive, getLastConnected, getModuleId, getNodeId, getNotes, getOrCreateDefaultLaunchContext, getOrCreateDefaultLaunchContext, getPassword, getPermissions, getPid, getServiceUser, getTwoFactorAuthStatus, getUsername, getUsernameNamespace, hasAccountDisabled, hasAccountExpiryDate, hasAccountLocked, hasAuthorities, hasAuthority, hasCredentialExpiryDate, hasDefaultLaunchContexts, hasEmail, hasFamilyName, hasGivenName, hasNotes, hasPassword, hasServiceAccount, hasUsername, hasUsernameNamespace, incrementFailedLoginAttempts, isAccountDisabled, isAccountLocked, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, isExternal, isServiceAccount, isSystemUser, lockAccount, resetFailedLoginAttempts, setAccountDisabled, setAccountExpiry, setAccountLocked, setAuthorities, setCredentialExpiry, setEmail, setExternal, setFailedLoginAttempts, setFamilyName, setGivenName, setLastActive, setLastConnected, setModuleId, setNodeId, setNotes, setPassword, setPid, setServiceAccount, setSystemUser, setTwoFactorAuthStatus, setUsername, setUsernameNamespace, toPermissionEnumMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.cdr.api.model.json.IHasAuthorities
addAuthority, addAuthority, addAuthority, hasArgumentsForAuthority, hasAuthorityMethods inherited from interface ca.cdr.api.model.json.IHasUserData
addUserData, clearUserData, getUserData, getUserInt, getUserString, hasUserData, setUserData, setUserDataINN, setUserDataInternalMethods inherited from interface ca.cdr.api.model.json.IOAuth2Session
getAuthorities
-
Field Details
-
FHIR_CONTEXT
- See Also:
-
-
Constructor Details
-
UserSessionDetailsJson
public UserSessionDetailsJson()Constructor -
UserSessionDetailsJson
Copy Constructor
-
-
Method Details
-
hasApprovedScopes
Does this session have any approved scopes- Specified by:
hasApprovedScopesin interfaceIOAuth2Session
-
getApprovedScopes
If the session is an OAuth2 session (i.e. it is accessed via a bearer token that was granted by a SMART Auth server) this field will be populated with the set of scopes that were approved for the client- Specified by:
getApprovedScopesin interfaceIOAuth2Session
-
setApprovedScopes
-
addUserData
-
addApprovedScope
-
removeApprovedScope
-
addLaunchResourceId
-
addFhirContextReference
-
addFhirContextReference
-
getLaunchResourceIds
-
getFhirContext
-
getLaunchResourceIdForResourceType
-
getLaunchResourceIdsForResourceType
-
addLaunchContextParameter
-
getLaunchContextParameters
-
getLaunchContextParameterValueForParameterName
-
addApprovedScopes
-
toJsonString
This method caches its output!! -
toString
- Overrides:
toStringin classUserDetailsJson
-
getName
- Specified by:
getNamein interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
getOidcClientId
-
setOidcClientId
-
getOidcClientNodeId
-
setOidcClientNodeId
-
getOidcClientModuleId
-
setOidcClientModuleId
-
getFhirUserUrl
-
setFhirUserUrl
-
getClientPopulatedUserData
Description copied from interface:IHasUserDataModel objects wishing to implement user data can implement this interface, and only need to actually implement this method- Specified by:
getClientPopulatedUserDatain interfaceIHasUserData
-
addClaimsAsUserData
Adds all claims in the provided map as user data
-