public abstract class ScriptFinder
extends java.lang.Object
createJob(ServiceFactory)
method in order to allow
simple creation of processors.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
ScriptFinder(ome.system.Roles roles,
ome.system.Principal principal,
ome.services.util.Executor executor,
java.io.File source) |
ScriptFinder(ome.system.Roles roles,
java.lang.String uuid,
ome.services.util.Executor executor,
java.io.File source) |
Modifier and Type | Method and Description |
---|---|
ScriptJob |
createJob(ome.system.ServiceFactory sf)
Returns a fresh (unsaved)
ScriptJob which can be passed to
acquireProcessor for background processing. |
OriginalFileI |
getFile(ome.system.ServiceFactory sf) |
abstract java.lang.String |
getName()
Subclasses should override to return the name of the file under scripts/
which should be uploaded.
|
protected java.util.List<ome.model.core.OriginalFile> |
loadScripts(ome.system.ServiceFactory sf,
ome.parameters.Parameters p)
Load all scripts that match the name, hash, and format for script
|
public ScriptFinder(ome.system.Roles roles, java.lang.String uuid, ome.services.util.Executor executor, java.io.File source)
public ScriptFinder(ome.system.Roles roles, ome.system.Principal principal, ome.services.util.Executor executor, java.io.File source)
public abstract java.lang.String getName()
public OriginalFileI getFile(ome.system.ServiceFactory sf)
protected java.util.List<ome.model.core.OriginalFile> loadScripts(ome.system.ServiceFactory sf, ome.parameters.Parameters p)