public class PostFilter extends DefaultWebContentFilter
Modifier and Type | Class and Description |
---|---|
class |
PostFilter.PostFilterSearchContext
FilterSearchContext specific to the post filter.
|
DefaultWebContentFilter.ContentComparator, DefaultWebContentFilter.DefaultFilterSearchContext
WebContentFilter.AccessLimitation, WebContentFilter.Context, WebContentFilter.FilterSearchContext
ContentFilter.Condition, ContentFilter.ContextLanguage
Modifier and Type | Field and Description |
---|---|
protected String |
_site
The site name or blank to search in all sites.
|
static String |
BLOG_SITE_TYPE
The blog site type.
|
_accessLimitation, _description, _logger, _maskOrphan, _searchContexts, _siteManager, _tagProviderEP, _title
_additionalFilterExpression, _contentTypeEP, _contentTypes, _contextLang, _id, _length, _metadata, _metadataCondition, _metadataSetName, _resolver, _sortCriteria, _srcResolver
Constructor and Description |
---|
PostFilter()
Create a new filter.
|
PostFilter(String id,
AmetysObjectResolver resolver,
ContentTypeExtensionPoint contentTypeExtensionPoint,
SiteManager siteManager,
TagProviderExtensionPoint tagProviderEP)
Create a new filter.
|
Modifier and Type | Method and Description |
---|---|
WebContentFilter.FilterSearchContext |
createSeachContext()
Create a search context.
|
String |
getSite()
Get the site name.
|
void |
setSite(String site)
Set the site name.
|
addMetadata, addSearchContext, getAccessLimitation, getContextLanguage, getDescription, getFilterExpression, getMatchingContents, getMatchingContents, getSearchContexts, getTitle, getXPathQuery, getXPathQuery, maskOrphanContents, setAccessLimitation, setContextLanguage, setDescription, setMaskOrphanContents, setTitle
addContentType, addSortCriteria, getAdditionalFilterExpression, getContentTypes, getContentTypesExpression, getContextLanguagesExpression, getFilterExpression, getId, getLength, getMatchingContents, getMatchingContents, getMetadataCondition, getMetadataExpression, getMetadataValues, getSortCriteria, getView, getXPathQuery, getXPathQuery, setAdditionalFilterExpression, setId, setLength, setMetadataCondition, setResolver, setView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContentType, addSortCriteria, getAdditionalFilterExpression, getContentTypes, getId, getLength, getMatchingContents, getMatchingContents, getMetadataCondition, getMetadataValues, getSortCriteria, getView, setAdditionalFilterExpression, setId, setLength, setMetadataCondition, setResolver, setView
public static final String BLOG_SITE_TYPE
public PostFilter()
public PostFilter(String id, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeExtensionPoint, SiteManager siteManager, TagProviderExtensionPoint tagProviderEP)
id
- The filter unique identifierresolver
- The ametys object resolvercontentTypeExtensionPoint
- The extension point for content typessiteManager
- the site manager.tagProviderEP
- The tag provider extension pointpublic String getSite()
public void setSite(String site)
site
- the site name or blank to search in all sites.public WebContentFilter.FilterSearchContext createSeachContext()
DefaultWebContentFilter
createSeachContext
in class DefaultWebContentFilter