it.openutils.mgnltasks
Class ChangeDefaultPasswordTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.AbstractRepositoryTask
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
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 interface info.magnolia.module.delta.Task |
execute, getDescription, getName |
ChangeDefaultPasswordTask
public ChangeDefaultPasswordTask(String user,
String defaultPassword,
String newpassword)
- Parameters:
user
- User path (e.g. /system/superuser)defaultPassword
- default passwordnewpassword
- new password, will be set only if the current password matches the default one
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.