Class SitemapContext
- java.lang.Object
-
- org.ametys.web.frontoffice.search.instance.model.SitemapContext
-
public class SitemapContext extends Object
A sitemap context
-
-
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 boolean
equals(Object obj)
Optional<List<Page>>
getPages()
Gets the pages of the context.SitemapContextType
getType()
Gets the typeint
hashCode()
-
-
-
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_OF
orSitemapContextType.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_OF
orSitemapContextType.DIRECT_CHILD_PAGES_OF
, must be empty otherwise.- Returns:
- the pages of the context
-
-