Class TerminatorWorker
- java.lang.Object
-
- com.identityworksllc.iiq.common.threads.SailPointWorker
-
- com.identityworksllc.iiq.common.threads.TerminatorWorker
-
- All Implemented Interfaces:
Serializable
,Runnable
public class TerminatorWorker extends SailPointWorker implements Serializable
A serializable worker to delete a single SailPoint object or a list of objects.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.identityworksllc.iiq.common.threads.SailPointWorker
SailPointWorker.ExceptionHandler
-
-
Field Summary
-
Fields inherited from class com.identityworksllc.iiq.common.threads.SailPointWorker
monitor, MULTI_SERIALIZED_WORKERS_ATTR, outcome
-
-
Constructor Summary
Constructors Constructor Description TerminatorWorker()
Required by Externalizable; don’t use this pleaseTerminatorWorker(Class<sailpoint.object.SailPointObject> className, String id)
Creates a worker to terminate the given SailPointObject by IDTerminatorWorker(Class<sailpoint.object.SailPointObject> className, List<String> ids)
Creates a worker to terminate a list of SailPointObjects by IDTerminatorWorker(List<sailpoint.object.Reference> objects)
A new worker that will terminate a list of objectsTerminatorWorker(sailpoint.object.Reference singleObject)
A new worker that will terminate a single object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(sailpoint.api.SailPointContext context, org.apache.commons.logging.Log logger)
Invokes the Terminator on each object in the list of references.static TerminatorWorker
forObject(sailpoint.object.SailPointObject object)
Returns a TerminatorWorker for the given SailPointObjectstatic TerminatorWorker
forObjects(List<? extends sailpoint.object.SailPointObject> objects)
Returns a TerminatorWorker for the given list of SailPointObjects-
Methods inherited from class com.identityworksllc.iiq.common.threads.SailPointWorker
addChild, addDependency, addTaskCallback, checkCancel, getDependencyOutput, getDependentPhase, getExceptionHandler, getMonitor, getParent, getPhase, getWorkerName, isTerminated, isTimedOut, run, runnable, setCompletedCounter, setDependentPhase, setExceptionHandler, setFailedCounter, setMonitor, setParent, setPhase, setTimeout, submitWithListeners, terminate, toCallable, toForkJoinTask, toFutureTask, toRequest, toRequest, toString
-
-
-
-
Constructor Detail
-
TerminatorWorker
public TerminatorWorker()
Required by Externalizable; don’t use this please
-
TerminatorWorker
public TerminatorWorker(Class<sailpoint.object.SailPointObject> className, String id)
Creates a worker to terminate the given SailPointObject by ID- Parameters:
className
- The class name of the object to terminateid
- The ID of the object to terminate
-
TerminatorWorker
public TerminatorWorker(Class<sailpoint.object.SailPointObject> className, List<String> ids)
Creates a worker to terminate a list of SailPointObjects by ID- Parameters:
className
- The class name of the objects to terminateids
- The list of IDs of the objects to terminate
-
TerminatorWorker
public TerminatorWorker(sailpoint.object.Reference singleObject)
A new worker that will terminate a single object- Parameters:
singleObject
- The single object reference to terminate
-
TerminatorWorker
public TerminatorWorker(List<sailpoint.object.Reference> objects)
A new worker that will terminate a list of objects- Parameters:
objects
- The list of objects
-
-
Method Detail
-
forObject
public static TerminatorWorker forObject(sailpoint.object.SailPointObject object)
Returns a TerminatorWorker for the given SailPointObject- Parameters:
object
- The object- Returns:
- The worker
-
forObjects
public static TerminatorWorker forObjects(List<? extends sailpoint.object.SailPointObject> objects)
Returns a TerminatorWorker for the given list of SailPointObjects- Parameters:
objects
- The SailPointObjects- Returns:
- the worker
-
execute
public Object execute(sailpoint.api.SailPointContext context, org.apache.commons.logging.Log logger) throws Exception
Invokes the Terminator on each object in the list of references.- Specified by:
execute
in classSailPointWorker
- Parameters:
context
- The private context to use for this thread workerlogger
- The log attached to this Worker- Returns:
- Null; can be ignored
- Throws:
Exception
- if any failures occur
-
-