Package org.swisspush.gateleen.user
Class UserProfileConfiguration
- java.lang.Object
-
- org.swisspush.gateleen.user.UserProfileConfiguration
-
public class UserProfileConfiguration extends Object
Encapsulates the information, which are used to create and update profiles. This contains mainly the mapping of http request headers to profile attributes.- Author:
- https://github.com/floriankammermann [Florian Kammermann] on 02.07.2015
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserProfileConfiguration.ProfilePropertystatic classUserProfileConfiguration.UpdateStrategystatic classUserProfileConfiguration.UserProfileConfigurationBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserProfileConfiguration.UserProfileConfigurationBuildercreate()booleandoesUrlMatchTheProfileUriPattern(String url)StringextractUserIdFromProfileUri(String url)Map<String,UserProfileConfiguration.ProfileProperty>getProfileProperties()StringgetRolePattern()StringgetRoleProfilesRoot()booleanisAllowedProfileProperty(String fieldName)
-
-
-
Method Detail
-
create
public static UserProfileConfiguration.UserProfileConfigurationBuilder create()
-
getProfileProperties
public Map<String,UserProfileConfiguration.ProfileProperty> getProfileProperties()
-
isAllowedProfileProperty
public boolean isAllowedProfileProperty(String fieldName)
-
doesUrlMatchTheProfileUriPattern
public boolean doesUrlMatchTheProfileUriPattern(String url)
-
getRoleProfilesRoot
public String getRoleProfilesRoot()
-
getRolePattern
public String getRolePattern()
-
-