it.openutils.mgnltasks
Class ChangeDefaultPasswordTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by it.openutils.mgnltasks.ChangeDefaultPasswordTask
All Implemented Interfaces:
info.magnolia.module.delta.Task

public class ChangeDefaultPasswordTask
extends info.magnolia.module.delta.AbstractRepositoryTask
implements info.magnolia.module.delta.Task

A task that changes the password of an user if the current password is the default one. Useful to forbide superuser/superuser accounts on a live instance ;)

Version:
$Id: ChangeDefaultPasswordTask.java 1830 2010-02-07 10:16:00Z fgiust $
Author:
fgiust

Constructor Summary
ChangeDefaultPasswordTask(String user, String defaultPassword, String newpassword)
           
 
Method Summary
protected  void doExecute(info.magnolia.module.InstallContext installContext)
          
 
Methods inherited from class info.magnolia.module.delta.AbstractRepositoryTask
execute
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.magnolia.module.delta.Task
execute, getDescription, getName
 

Constructor Detail

ChangeDefaultPasswordTask

public ChangeDefaultPasswordTask(String user,
                                 String defaultPassword,
                                 String newpassword)
Parameters:
user - User path (e.g. /system/superuser)
defaultPassword - default password
newpassword - new password, will be set only if the current password matches the default one
Method Detail

doExecute

protected void doExecute(info.magnolia.module.InstallContext installContext)
                  throws javax.jcr.RepositoryException,
                         info.magnolia.module.delta.TaskExecutionException

Specified by:
doExecute in class info.magnolia.module.delta.AbstractRepositoryTask
Throws:
javax.jcr.RepositoryException
info.magnolia.module.delta.TaskExecutionException


Copyright © 2008-2010 Openmind. All Rights Reserved.