info.magnolia.module.publicuserregistration
Interface UserRegistrar

All Known Implementing Classes:
DefaultUserRegistrar

public interface UserRegistrar

TODO dlipp - add proper comment.

Version:
$Id$

Nested Class Summary
static class UserRegistrar.Factory
          Use this to retrieve the configured impl of UserRegistrar.
 
Method Summary
 info.magnolia.cms.security.User registerUser(UserProfile userProfile, PublicUserRegistrationConfig config)
          Registers a user and delegates to a RegistrationStrategy.
 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)
           
 

Method Detail

validateForCreation

Map<String,String> validateForCreation(UserProfile userProfile,
                                       PublicUserRegistrationConfig config)
Validates the given profile and returns a map of error messages, per field. Should return a writable empty map if the profile is valid, to allow the caller to do any additional checks. TODO : return a > ?


registerUser

info.magnolia.cms.security.User registerUser(UserProfile userProfile,
                                             PublicUserRegistrationConfig config)
Registers a user and delegates to a RegistrationStrategy.


validateForUpdate

Map<String,String> validateForUpdate(UserProfile userProfile,
                                     PublicUserRegistrationConfig config)

updateProfile

void updateProfile(UserProfile userProfile,
                   PublicUserRegistrationConfig config)
Updates a user's profile and delegates to a RegistrationStrategy.



Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.