public class SitemapContext extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
_pageIds |
private AmetysObjectResolver |
_resolver |
private SitemapContextType |
_type |
| Constructor and Description |
|---|
SitemapContext(SitemapContextType type,
List<String> pages,
AmetysObjectResolver resolver)
Creates a SitemapContext
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Optional<List<Page>> |
getPages()
Gets the pages of the context.
|
SitemapContextType |
getType()
Gets the type
|
int |
hashCode() |
private SitemapContextType _type
private AmetysObjectResolver _resolver
public SitemapContext(SitemapContextType type, List<String> pages, AmetysObjectResolver resolver)
type - the typepages - the pages of the context. Must be non-null if type is SitemapContextType.CHILD_PAGES_OF or SitemapContextType.DIRECT_CHILD_PAGES_OF, must be null otherwise.resolver - The ametys object resolverpublic SitemapContextType getType()
public Optional<List<Page>> getPages()
getType() returns SitemapContextType.CHILD_PAGES_OF or SitemapContextType.DIRECT_CHILD_PAGES_OF, must be empty otherwise.