Package | Description |
---|---|
com.jalios.jcms.fileprocessor | |
com.jalios.jcms.fileprocessor.repository | |
com.jalios.jcms.fileprocessor.test | |
com.jalios.jcms.fileprocessor.ui |
Modifier and Type | Interface and Description |
---|---|
interface |
FileParser
A class that implements this interface is a parser for at least one kind of files.
|
interface |
FileProcessor
A class that implements this interface is a processor for at least one kind of files.
|
Modifier and Type | Method and Description |
---|---|
static FileActionComponent |
FPUtil.getActionComponentInstance(java.lang.Class<? extends FileActionComponent> clazz)
Returns a new instance of a FileActionComponent of the class specified in parameter.
|
FileActionComponent |
ProcessingEvent.getComponent() |
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<FileActionComponent> |
FPUtil.getActionComponentComparator()
This comparator is to order FileActionComponent in regard with getOrder.
|
java.lang.Class<? extends FileActionComponent> |
ProcessingException.getProcessorBlackListedClass()
For certain reason, one file may be blacklisted only for a FileActionComponent,
not to cause the same exception, at each iteration.
|
Modifier and Type | Method and Description |
---|---|
static FileActionComponent |
FPUtil.getActionComponentInstance(java.lang.Class<? extends FileActionComponent> clazz)
Returns a new instance of a FileActionComponent of the class specified in parameter.
|
static void |
FileProcessorReplicaMessageManager.sendActionMsg(FileProcessorAction action,
Repository repository,
java.lang.String[] filesShortName,
java.lang.Class<? extends FileActionComponent> actionComponentClass) |
void |
ProcessingException.setProcessorBlackListedClass(java.lang.Class<? extends FileActionComponent> processorBlackListedClass) |
Constructor and Description |
---|
ProcessingEvent(Repository repository,
FileActionComponent component,
java.io.File file,
ProcessingType type,
ProcessingData.Type processingDataType)
Create a new Action with information that never change
|
Constructor and Description |
---|
ProcessingException(java.lang.String message,
java.lang.Class<? extends FileActionComponent> processorBlackListedClass) |
ProcessingException(java.lang.Throwable cause,
java.lang.Class<? extends FileActionComponent> processorBlackListedClass) |
Modifier and Type | Method and Description |
---|---|
FileActionComponent |
Repository.getActionComponent(java.lang.Class<? extends FileActionComponent> componentClass)
Retrieve any instance already created for the specified FileActionComponent class.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<? extends FileActionComponent>> |
Repository.getActionComponentClassSet()
Retrieve a Set of all class FileActionComponent class registered and enabled for this repository
|
java.util.Map<java.lang.Class<? extends FileActionComponent>,java.util.SortedSet<java.lang.String>> |
Repository.getComponentClassToExtensionSetMap()
Retrieve a map of all component class to the extensions registered for them.
|
Modifier and Type | Method and Description |
---|---|
FileProcessingLog |
Repository.addFileProcessingLog(java.io.File file,
FileActionComponent component,
ProcessingType type,
ProcessingStatus status,
long duration,
java.lang.Exception exception,
int attempt)
Create a new instance of FileProcessingLog with the specified parameters and store it.
|
Modifier and Type | Method and Description |
---|---|
void |
Repository.addActionComponent(java.lang.Class<? extends FileActionComponent> componentClazz,
java.lang.String[] extensions)
Add the specified FileActionComponent (parser or processor) to this repository for the specified extensions.
|
FileProcessingLog |
Repository.addFileProcessingLog(java.lang.String filename,
java.lang.Class<? extends FileActionComponent> componentClass,
ProcessingType type,
ProcessingStatus status,
long duration,
java.lang.String message,
int attempt) |
void |
Repository.blacklistFile(java.lang.String filename,
java.lang.Class<? extends FileActionComponent> actionComponentClass)
Blacklist the specified file.
|
void |
Repository.deleteFileProcessingLog(java.lang.String filename,
java.lang.Class<? extends FileActionComponent> actionComponentClass)
Remove all log and info for the specified filename and component.
|
FileActionComponent |
Repository.getActionComponent(java.lang.Class<? extends FileActionComponent> componentClass)
Retrieve any instance already created for the specified FileActionComponent class.
|
boolean |
Repository.isProcessedByActionComponentClass(java.io.File file,
java.lang.Class<? extends FileActionComponent> clazz)
Test whether a file may be processed by a FileActionComponent.
|
boolean |
Repository.removeActionComponent(java.lang.Class<? extends FileActionComponent> componentClass)
Remove the specified component class from this repository configuration.
|
boolean |
Repository.removeActionComponent(java.lang.Class<? extends FileActionComponent> componentClass,
java.lang.String[] extensions)
Remove the specified component class from this repository configuration for the specified extension (if any).
|
void |
Repository.unBlacklistFile(java.lang.String filename,
java.lang.Class<? extends FileActionComponent> actionComponentClass)
Unblacklist the specified file.
|
Modifier and Type | Class and Description |
---|---|
class |
SampleProcessor
Sample FileProcessor and FileParse which can be used for testing.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
FileProcessorAction.process(boolean first,
Repository repository,
java.lang.String[] filesShortName,
java.lang.Class<? extends FileActionComponent> actionComponentClass)
Process the action.
|
Copyright © 2001-2018 Jalios SA. All Rights Reserved.