pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.accesscontrol
Class UserSelfEditController

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.accesscontrol.UserSelfEditController
All Implemented Interfaces:
DeprecatedConfigurable

public class UserSelfEditController
extends Controller
implements DeprecatedConfigurable

TODO: refactor to this to LoggedInUserSelfEditor manages the self-edit of a User.

Version:
$Revision: 1914 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
UserSelfEditController()
           
 
Method Summary
 void init(ConfigBean conf)
          initializes the UserSelfEditController with its ConfigBean.
 UserSelfEditControllerResult initEditor(Bundle bundle, ServiceRequest request)
          starts the self-edit-process.
 UserSelfEditControllerResult saveEditor(Bundle bundle, ServiceRequest request)
          saves changes made by the User during the self-edit-process.
 java.lang.Object saveEmailChange(Bundle bundle, ServiceRequest request)
          final step of the change-email-process.
 UserSelfEditControllerResult userChangeEmail(Bundle bundle, ServiceRequest request)
          starts the change-email-process for a logged-in User.
 UserSelfEditControllerResult userChangePassword(Bundle bundle, ServiceRequest request)
          starts / saves the change-password-process for a logged-in User.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSelfEditController

public UserSelfEditController()
Method Detail

initEditor

@Action(value="initUserSelfEdit", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="initUserSelfEdit")
@RequireToken
public final UserSelfEditControllerResult initEditor(Bundle bundle, ServiceRequest request)
starts the self-edit-process.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to start the self-edit-process

saveEditor

@Action(value="saveUserSelfEdit", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="saveUserSelfEdit")
@RequireToken
public final UserSelfEditControllerResult saveEditor(Bundle bundle, ServiceRequest request)
saves changes made by the User during the self-edit-process.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to start the self-edit-process

userChangePassword

@Action(value="userChangePassword", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="userChangePassword")
@RequireToken
public final UserSelfEditControllerResult userChangePassword(Bundle bundle, ServiceRequest request)
starts / saves the change-password-process for a logged-in User.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to start the change-password-process for a logged-in User

userChangeEmail

@Action(value="userChangeEmail", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="userChangeEmail")
@RequireToken
public final UserSelfEditControllerResult userChangeEmail(Bundle bundle, ServiceRequest request)
starts the change-email-process for a logged-in User.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to start the change-email-process for a logged-in User

saveEmailChange

@Action(value="saveEmailChange", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="saveEmailChange")
public final java.lang.Object saveEmailChange(Bundle bundle, ServiceRequest request)
final step of the change-email-process.

Parameters:
bundle - the bundle
request - the current request
Returns:
null

init

public void init(ConfigBean conf)
initializes the UserSelfEditController with its ConfigBean.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
conf - the ConfigBean