org.silverpeas.file
Class AbstractSilverpeasFileProcessor

java.lang.Object
  extended by org.silverpeas.file.AbstractSilverpeasFileProcessor
All Implemented Interfaces:
Comparable<SilverpeasFileProcessor>, SilverpeasFileProcessor
Direct Known Subclasses:
AttachmentUrlLinkProcessor, FileExistenceCheckingProcessor, ImageResizingProcessor

public abstract class AbstractSilverpeasFileProcessor
extends Object
implements SilverpeasFileProcessor

Author:
Yohann Chastagnier

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.silverpeas.file.SilverpeasFileProcessor
SilverpeasFileProcessor.ProcessingContext
 
Constructor Summary
AbstractSilverpeasFileProcessor()
           
 
Method Summary
 int compareTo(SilverpeasFileProcessor o)
           
 int getPriority()
          Gets the priority that permits to sort the processor list to execute.
 void registerItself()
          Registers itself among the SilverpeasFileFactory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.silverpeas.file.SilverpeasFileProcessor
processAfter, processBefore
 

Constructor Detail

AbstractSilverpeasFileProcessor

public AbstractSilverpeasFileProcessor()
Method Detail

registerItself

@PostConstruct
public final void registerItself()
Registers itself among the SilverpeasFileFactory instance.


getPriority

public int getPriority()
Description copied from interface: SilverpeasFileProcessor
Gets the priority that permits to sort the processor list to execute.
The more the value of the priority is high, the more the processor is executed first.
The chained execution of processors that have the same priority could be known.
By default, the priority is set to 50.

Specified by:
getPriority in interface SilverpeasFileProcessor
Returns:
the priority value.

compareTo

public int compareTo(SilverpeasFileProcessor o)
Specified by:
compareTo in interface Comparable<SilverpeasFileProcessor>


Copyright © 2016 Silverpeas. All Rights Reserved.