ome.util.tasks.admin
Class AdminTask

java.lang.Object
  extended by ome.util.tasks.Task
      extended by ome.util.tasks.SimpleTask
          extended by ome.util.tasks.admin.AdminTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AddGroupTask, AddUserTask, AddUserToGroupTask, ChangePasswordTask, DeleteGroupTask, DeleteUserTask, RemoveUserFromGroupTask

public abstract class AdminTask
extends SimpleTask

Simplest possible concrete subclass of Task which has null methods for all of the required methods. Therefore, does nothing by default (though it logs the nothing that it's doing). Task writers can override any or all of the 4 methods.

Since:
3.0-Beta1
Version:
$Revision: 1208 $, $Date: 2007-01-24 17:23:09 +0100 (Wed, 24 Jan 2007) $
Author:
Josh Moore, josh.moore at gmx.de
See Also:
Task

Constructor Summary
AdminTask(ServiceFactory serviceFactory, Properties properties)
          Sole constructor.
 
Method Summary
 void handleException(RuntimeException re)
          Rethrows the RuntimeException.
 void init()
          Does nothing.
 
Methods inherited from class ome.util.tasks.SimpleTask
close, doTask
 
Methods inherited from class ome.util.tasks.Task
completedSuccessfully, enumValue, getLogger, getProperties, getServiceFactory, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminTask

public AdminTask(ServiceFactory serviceFactory,
                 Properties properties)
Sole constructor. Delegates to Task

See Also:
Task#Task(ServiceFactory, Properties)
Method Detail

init

public void init()
Does nothing.

Overrides:
init in class SimpleTask

handleException

public void handleException(RuntimeException re)
Rethrows the RuntimeException.

Overrides:
handleException in class SimpleTask
Parameters:
re - Non-null.


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.