it.openutils.mgnltasks
Class CheckAndCreateUserTask

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

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

Creates a user if not already existing.

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

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
CheckAndCreateUserTask(String user, String bootstrapFile)
           
 
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

CheckAndCreateUserTask

public CheckAndCreateUserTask(String user,
                              String bootstrapFile)
Parameters:
user - User path (e.g. /system/superuser)
bootstrapFile - bootstrap file used to create the user
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.