Class SitemapContext
- java.lang.Object
-
- org.ametys.web.frontoffice.search.instance.model.SitemapContext
-
public class SitemapContext extends Object
A sitemap context
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>_pageIdsprivate AmetysObjectResolver_resolverprivate SitemapContextType_type
-
Constructor Summary
Constructors Constructor Description SitemapContext(SitemapContextType type, List<String> pages, AmetysObjectResolver resolver)Creates a SitemapContext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Optional<List<Page>>getPages()Gets the pages of the context.SitemapContextTypegetType()Gets the typeinthashCode()
-
-
-
Field Detail
-
_type
private SitemapContextType _type
-
_resolver
private AmetysObjectResolver _resolver
-
-
Constructor Detail
-
SitemapContext
public SitemapContext(SitemapContextType type, List<String> pages, AmetysObjectResolver resolver)
Creates a SitemapContext- Parameters:
type- the typepages- the pages of the context. Must be non-null if type isSitemapContextType.CHILD_PAGES_OForSitemapContextType.DIRECT_CHILD_PAGES_OF, must be null otherwise.resolver- The ametys object resolver
-
-
Method Detail
-
getType
public SitemapContextType getType()
Gets the type- Returns:
- the type
-
getPages
public Optional<List<Page>> getPages()
Gets the pages of the context. Must be non-empty ifgetType()returnsSitemapContextType.CHILD_PAGES_OForSitemapContextType.DIRECT_CHILD_PAGES_OF, must be empty otherwise.- Returns:
- the pages of the context
-
-