Package org.apereo.cas.syncope
Class SyncopeUtils
java.lang.Object
org.apereo.cas.syncope.SyncopeUtils
This is
SyncopeUtils.- Since:
- 6.5.0
-
Method Summary
Modifier and TypeMethodDescriptionconvertFromUserEntity(com.fasterxml.jackson.databind.JsonNode user, Map<String, String> attributeMappings) Convert user as a JSON node into a map of details.convertToUserCreateEntity(Map<String, ?> userProperties, org.apereo.cas.authentication.credential.UsernamePasswordCredential credential, String realm) Convert to user create entity map.convertToUserCreateEntity(org.apereo.cas.authentication.principal.Principal principal, String realm) Convert to user create entity map.convertToUserUpdateEntity(org.apereo.cas.authentication.principal.Principal principal, String realm) Convert to user update entity map.syncopeUserSearch(org.apereo.cas.configuration.model.support.syncope.BaseSyncopeSearchProperties properties, String user) Syncope search.
-
Method Details
-
convertFromUserEntity
public static Map<String,List<Object>> convertFromUserEntity(com.fasterxml.jackson.databind.JsonNode user, Map<String, String> attributeMappings) Convert user as a JSON node into a map of details.- Parameters:
user- the userattributeMappings- the attribute mappings- Returns:
- the map
-
syncopeUserSearch
public static List<Map<String,List<Object>>> syncopeUserSearch(org.apereo.cas.configuration.model.support.syncope.BaseSyncopeSearchProperties properties, String user) Syncope search.- Parameters:
properties- the propertiesuser- the user- Returns:
- the optional
-
convertToUserCreateEntity
public static Map<String,Object> convertToUserCreateEntity(org.apereo.cas.authentication.principal.Principal principal, String realm) Convert to user create entity map.- Parameters:
principal- the principalrealm- the realm- Returns:
- the map
-
convertToUserCreateEntity
public static Map<String,Object> convertToUserCreateEntity(Map<String, ?> userProperties, org.apereo.cas.authentication.credential.UsernamePasswordCredential credential, String realm) Convert to user create entity map.- Parameters:
userProperties- the user propertiescredential- the credentialrealm- the realm- Returns:
- the map
-
convertToUserUpdateEntity
public static Map<String,Object> convertToUserUpdateEntity(org.apereo.cas.authentication.principal.Principal principal, String realm) Convert to user update entity map.- Parameters:
realm- the realm- Returns:
- the map
-