public class FilteredContentsInputData extends AbstractLogEnabled implements InputData, Serviceable, Contextualizable, ThreadSafe, PluginAware
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_contentTypeEP
The extension point for content types
|
protected Context |
_context
The avalon context.
|
private ContentFilterHelper |
_filterHelper |
protected String |
_pluginName
The plugin name
|
protected AmetysObjectResolver |
_resolver
The repository
|
protected SiteManager |
_siteManager
The site manager
|
protected SourceResolver |
_sourceResolver
The source resolver
|
protected TagProviderExtensionPoint |
_tagProviderEP
The tag provider EP
|
Constructor and Description |
---|
FilteredContentsInputData() |
Modifier and Type | Method and Description |
---|---|
protected List<WebContentFilter> |
configureFilters()
Retrieves the configured filters
|
void |
contextualize(Context context) |
boolean |
isCacheable(Site site,
Page page)
Returns true if this
InputData is cacheable for the current site and if possible page. |
protected void |
saxFilter(ContentHandler contentHandler,
WebContentFilter filter,
String siteName,
String lang,
Page page)
SAX a filter
|
void |
service(ServiceManager smanager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
void |
toSAX(ContentHandler contentHandler)
Generates SAX events for providing data.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected String _pluginName
protected SourceResolver _sourceResolver
protected AmetysObjectResolver _resolver
protected ContentTypeExtensionPoint _contentTypeEP
protected SiteManager _siteManager
protected TagProviderExtensionPoint _tagProviderEP
private ContentFilterHelper _filterHelper
public FilteredContentsInputData()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean isCacheable(Site site, Page page)
InputData
InputData
is cacheable for the current site and if possible page.isCacheable
in interface InputData
site
- the current Site
.page
- the current Page
. Can be null.InputData
is cacheable for the current site or page.public void toSAX(ContentHandler contentHandler) throws SAXException, ProcessingException
InputData
toSAX
in interface InputData
contentHandler
- the content handler to SAX into.SAXException
- if an error occurs while SAXing.ProcessingException
- if an error occurs during processing.protected List<WebContentFilter> configureFilters() throws ProcessingException
ProcessingException
- If an error occurred while parsing the file.protected void saxFilter(ContentHandler contentHandler, WebContentFilter filter, String siteName, String lang, Page page) throws SAXException, IOException
contentHandler
- The content handlerfilter
- The filter to SAXsiteName
- The current site namelang
- The current languagepage
- The current pageSAXException
- If an errors occurs while SAXingIOException
- If an errors occurspublic void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component