C# Class SenseNet.Portal.Portlets.PublicRegistrationPortlet

Public registration portlet. Feel free to change it, but consider that there might be some cases when it is only sufficient to override some methods. TODO: ResetPassword and ForgottenPassword terms should be simplified.
Inheritance: SenseNet.Portal.UI.PortletFramework.PortletBase
Show file Open project: maxpavlov/FlexNet

Public Properties

Property Type Description
_originalUser IUser

Private Properties

Property Type Description
AddToSecurityGroups void
ChangePasswordHandler void
CheckMailSetting void
CreateNewUserContent SenseNet.ContentRepository.Content
CreateUserChangePasswordUI void
EnableAndActivateUser void
GetActivateByAdminMailMessage System.Net.Mail.MailMessage
GetActivationMailMessage System.Net.Mail.MailMessage
GetChangePasswordUrl string
GetDomainName string
GetMailFromValue string
GetRegisteredUser SenseNet.ContentRepository.User
GetResetMailMessage System.Net.Mail.MailMessage
GetUserByActivationId Node
GetUserByActivationIdInternal List
GetUserChangePasswordState bool
GetUserFromQueryString SenseNet.ContentRepository.User
InitCheckGuid System.Text.RegularExpressions.Regex
IsCurrentUserAnAdministrator bool
IsGuid bool
IsValidPassword bool
ProcessUpdateProfile void
ResetPasswordHandler void
SaveUser void
SendActivateByAdminEmailInternal void
SendActivateByAdminEmails void
SetDefaultDomainValue void

Public Methods

Method Description
ChangeToAdminAccount ( ) : void
PublicRegistrationPortlet ( ) : System
RestoreOriginalUser ( ) : void
SendEmail ( MailMessage mailMessage ) : void

Protected Methods

Method Description
ChangeCurrentUserPassword ( string pwd, string newPwd, UserChangePassword control ) : bool
ChangePassword_Click ( object sender, EventArgs e ) : void
ChecksDuplicatedUser ( UserActionEventArgs e ) : bool
ContentHandler_Created ( object sender, NodeEventArgs e ) : void
ContentView_UserAction_New ( object sender, UserActionEventArgs e ) : void
ContentView_UserAction_Update ( object sender, UserActionEventArgs e ) : void
CreateChildControls ( ) : void
GenerateActivationId ( ) : void
OnCreatedUser ( NodeEventArgs e ) : void
OnUserAction ( UserActionEventArgs e, bool createNew ) : void
ProcessActivateByAdmin ( Node registeredUser ) : void
ProcessActivation ( ) : bool
ProcessChangePassword ( ) : void
ProcessRegistration ( ) : void
ProcessResetPassword ( ) : void
ReadConfiguration ( ) : bool
ResetPassword_Click ( object sender, EventArgs e ) : void
SendActivationEmail ( NodeEventArgs e ) : void
SendResetPasswordEmail ( string resetEmail ) : bool
WriteActivationSuccessfull ( ) : void
WriteAlreadyActivatedMessage ( ) : void
WriteDuplactedUserErrorMessage ( ) : void
WriteErrorMessageInsideView ( string message ) : void
WriteErrorMessageOnly ( string message ) : void
WriteMessage ( string message ) : void

Private Methods

Method Description
AddToSecurityGroups ( UserActionEventArgs e ) : void
ChangePasswordHandler ( object sender ) : void
CheckMailSetting ( ) : void
CreateNewUserContent ( string parentPath ) : SenseNet.ContentRepository.Content
CreateUserChangePasswordUI ( ) : void
EnableAndActivateUser ( ) : void
GetActivateByAdminMailMessage ( User adminUser, string registeredUserPath ) : MailMessage
GetActivationMailMessage ( ) : MailMessage
GetChangePasswordUrl ( SenseNet.Portal changePwdPage, string siteRepositoryPath ) : string
GetDomainName ( ) : string
GetMailFromValue ( ) : string
GetRegisteredUser ( string resetEmail, string domain ) : User
GetResetMailMessage ( string resetEmail, User u, string resetKeyGuid ) : MailMessage
GetUserByActivationId ( ) : Node
GetUserByActivationIdInternal ( string activationId ) : List
GetUserChangePasswordState ( ) : bool
GetUserFromQueryString ( ) : User
InitCheckGuid ( ) : Regex
IsCurrentUserAnAdministrator ( ) : bool
IsGuid ( string source ) : bool
IsValidPassword ( string pwd, string newPwd, UserChangePassword control ) : bool
ProcessUpdateProfile ( ) : void
ResetPasswordHandler ( object sender ) : void
SaveUser ( UserActionEventArgs e, bool createNew ) : void
SendActivateByAdminEmailInternal ( User adminUser, string registeredUserPath ) : void
SendActivateByAdminEmails ( IEnumerable listOfAdmins, Node registeredUser ) : void
SetDefaultDomainValue ( UserActionEventArgs e ) : void

Method Details

ChangeCurrentUserPassword() protected method

protected ChangeCurrentUserPassword ( string pwd, string newPwd, UserChangePassword control ) : bool
pwd string
newPwd string
control SenseNet.Portal.Portlets.Controls.UserChangePassword
return bool

ChangePassword_Click() protected method

protected ChangePassword_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ChangeToAdminAccount() public method

public ChangeToAdminAccount ( ) : void
return void

ChecksDuplicatedUser() protected method

protected ChecksDuplicatedUser ( UserActionEventArgs e ) : bool
e SenseNet.Portal.UI.UserActionEventArgs
return bool

ContentHandler_Created() protected method

protected ContentHandler_Created ( object sender, NodeEventArgs e ) : void
sender object
e SenseNet.ContentRepository.Storage.Events.NodeEventArgs
return void

ContentView_UserAction_New() protected method

protected ContentView_UserAction_New ( object sender, UserActionEventArgs e ) : void
sender object
e SenseNet.Portal.UI.UserActionEventArgs
return void

ContentView_UserAction_Update() protected method

protected ContentView_UserAction_Update ( object sender, UserActionEventArgs e ) : void
sender object
e SenseNet.Portal.UI.UserActionEventArgs
return void

CreateChildControls() protected method

protected CreateChildControls ( ) : void
return void

GenerateActivationId() protected method

protected GenerateActivationId ( ) : void
return void

OnCreatedUser() protected method

protected OnCreatedUser ( NodeEventArgs e ) : void
e SenseNet.ContentRepository.Storage.Events.NodeEventArgs
return void

OnUserAction() protected method

protected OnUserAction ( UserActionEventArgs e, bool createNew ) : void
e SenseNet.Portal.UI.UserActionEventArgs
createNew bool
return void

ProcessActivateByAdmin() protected method

protected ProcessActivateByAdmin ( Node registeredUser ) : void
registeredUser Node
return void

ProcessActivation() protected method

protected ProcessActivation ( ) : bool
return bool

ProcessChangePassword() protected method

protected ProcessChangePassword ( ) : void
return void

ProcessRegistration() protected method

protected ProcessRegistration ( ) : void
return void

ProcessResetPassword() protected method

protected ProcessResetPassword ( ) : void
return void

PublicRegistrationPortlet() public method

public PublicRegistrationPortlet ( ) : System
return System

ReadConfiguration() protected method

protected ReadConfiguration ( ) : bool
return bool

ResetPassword_Click() protected method

protected ResetPassword_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RestoreOriginalUser() public method

public RestoreOriginalUser ( ) : void
return void

SendActivationEmail() protected method

protected SendActivationEmail ( NodeEventArgs e ) : void
e SenseNet.ContentRepository.Storage.Events.NodeEventArgs
return void

SendEmail() public method

public SendEmail ( MailMessage mailMessage ) : void
mailMessage System.Net.Mail.MailMessage
return void

SendResetPasswordEmail() protected method

protected SendResetPasswordEmail ( string resetEmail ) : bool
resetEmail string
return bool

WriteActivationSuccessfull() protected method

protected WriteActivationSuccessfull ( ) : void
return void

WriteAlreadyActivatedMessage() protected method

protected WriteAlreadyActivatedMessage ( ) : void
return void

WriteDuplactedUserErrorMessage() protected method

protected WriteDuplactedUserErrorMessage ( ) : void
return void

WriteErrorMessageInsideView() protected method

protected WriteErrorMessageInsideView ( string message ) : void
message string
return void

WriteErrorMessageOnly() protected method

protected WriteErrorMessageOnly ( string message ) : void
message string
return void

WriteMessage() protected method

protected WriteMessage ( string message ) : void
message string
return void

Property Details

_originalUser public property

public IUser _originalUser
return IUser