|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.publicuserregistration.DefaultUserRegistrar
public class DefaultUserRegistrar
TODO dlipp - add proper comment.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface info.magnolia.module.publicuserregistration.UserRegistrar |
---|
UserRegistrar.Factory |
Constructor Summary | |
---|---|
DefaultUserRegistrar()
|
Method Summary | |
---|---|
protected void |
extraCreationValidation(Map<String,String> errorMessages,
UserProfile userProfile)
Override this method to add extra validation checks (for your custom UserProfile class). |
protected void |
extraUpdateValidation(Map<String,String> errorMessages,
UserProfile userProfile)
Override this method to add extra validation checks (for your custom UserProfile class). |
protected info.magnolia.cms.security.UserManager |
getUserManager(PublicUserRegistrationConfig config)
|
protected void |
mandatory(Map<String,String> errorMessages,
String fieldName,
String value)
|
info.magnolia.cms.security.User |
registerUser(UserProfile userProfile,
PublicUserRegistrationConfig config)
Registers a user and delegates to a RegistrationStrategy. |
protected void |
setExtraUserProperties(info.magnolia.cms.security.User user,
UserProfile userProfile)
Override this method to set extra properties from your custom UserProfile subclass. |
protected void |
updateExtraUserProperties(info.magnolia.cms.security.User user,
UserProfile userProfile)
Override this method to set extra properties from your custom UserProfile subclass. |
void |
updateProfile(UserProfile userProfile,
PublicUserRegistrationConfig config)
Updates a user's profile and delegates to a RegistrationStrategy. |
Map<String,String> |
validateForCreation(UserProfile userProfile,
PublicUserRegistrationConfig config)
Validates the given profile and returns a map of error messages, per field. |
Map<String,String> |
validateForUpdate(UserProfile userProfile,
PublicUserRegistrationConfig config)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUserRegistrar()
Method Detail |
---|
public Map<String,String> validateForCreation(UserProfile userProfile, PublicUserRegistrationConfig config)
UserRegistrar
validateForCreation
in interface UserRegistrar
public Map<String,String> validateForUpdate(UserProfile userProfile, PublicUserRegistrationConfig config)
validateForUpdate
in interface UserRegistrar
protected void extraCreationValidation(Map<String,String> errorMessages, UserProfile userProfile)
errorMessages
- the Map where subclasses should add their error messages.protected void extraUpdateValidation(Map<String,String> errorMessages, UserProfile userProfile)
errorMessages
- the Map where subclasses should add their error messages.protected void mandatory(Map<String,String> errorMessages, String fieldName, String value)
public info.magnolia.cms.security.User registerUser(UserProfile userProfile, PublicUserRegistrationConfig config)
UserRegistrar
registerUser
in interface UserRegistrar
protected void setExtraUserProperties(info.magnolia.cms.security.User user, UserProfile userProfile)
public void updateProfile(UserProfile userProfile, PublicUserRegistrationConfig config)
UserRegistrar
updateProfile
in interface UserRegistrar
protected void updateExtraUserProperties(info.magnolia.cms.security.User user, UserProfile userProfile)
protected info.magnolia.cms.security.UserManager getUserManager(PublicUserRegistrationConfig config)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |