Class LocaleItemFilter
- java.lang.Object
-
- org.craftercms.engine.navigation.impl.LocaleItemFilter
-
- All Implemented Interfaces:
org.craftercms.core.service.ItemFilter
public class LocaleItemFilter extends Object implements org.craftercms.core.service.ItemFilter
Implementation ofItemFilter
that checks if a givenItem
is compatible with the configured locales- Since:
- 4.0.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected org.craftercms.core.service.ContentStoreService
contentStoreService
protected String
localeCodeXPathQuery
-
Constructor Summary
Constructors Constructor Description LocaleItemFilter(String localeCodeSelector, org.craftercms.core.service.ContentStoreService contentStoreService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(org.craftercms.core.service.Item item, List<org.craftercms.core.service.Item> acceptedItems, List<org.craftercms.core.service.Item> rejectedItems, boolean runningBeforeProcessing)
boolean
runAfterProcessing()
boolean
runBeforeProcessing()
-
-
-
Field Detail
-
localeCodeXPathQuery
protected String localeCodeXPathQuery
-
contentStoreService
protected org.craftercms.core.service.ContentStoreService contentStoreService
-
-
Constructor Detail
-
LocaleItemFilter
@ConstructorProperties({"localeCodeSelector","contentStoreService"}) public LocaleItemFilter(String localeCodeSelector, org.craftercms.core.service.ContentStoreService contentStoreService)
-
-