org.silverpeas.file
Class AbstractSilverpeasFileProcessor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSilverpeasFileProcessor
public AbstractSilverpeasFileProcessor()
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.