info.magnolia.module.googlesitemap
Class SiteMapNodeTypes.SiteMap

java.lang.Object
  extended by info.magnolia.module.googlesitemap.SiteMapNodeTypes.SiteMap
Enclosing class:
SiteMapNodeTypes

public static class SiteMapNodeTypes.SiteMap
extends Object

Represents the node type mgnl:siteMap.


Field Summary
static String DEFAULT_CHANGEFREQ
           
static String DEFAULT_PRIORITY
           
static String DISPLAY_NAME
           
static String INCLUDE_VIRTUAL_URI
           
static String NAME
           
static String PAGES
           
static String TYPE
           
static String URL
           
 
Constructor Summary
SiteMapNodeTypes.SiteMap()
           
 
Method Summary
static String getDefaultChangeFreq(javax.jcr.Node node)
          Returns the change frequency of the site map page or null if no change frequency has been stored on the node.
static Double getDefaultPriority(javax.jcr.Node node)
          Returns the priority of the site map page or null if no priority has been stored on the node.
static String getDisplayName(javax.jcr.Node node)
          Returns the displayName of the site map or null if no displayName has been stored on the node.
static List<String> getPages(javax.jcr.Node node)
          Returns the pages linked to the site map or null if no pages has been stored on the node.
static String getType(javax.jcr.Node node)
          Returns the type of the site map or null if no type has been stored on the node.
static String getUrl(javax.jcr.Node node)
          Returns the URL of the site map or null if no URL has been stored on the node.
static boolean isVirtualUriMappingIncluded(javax.jcr.Node node)
          Returns the value of INCLUDE_VIRTUAL_URI stored or false in the property is empty.
static void update(javax.jcr.Node node, String type, String url, String displayName, boolean includeVirtualUri, String defaultChangeFrq, Double defaultPriority, List<String> pages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

DISPLAY_NAME

public static final String DISPLAY_NAME
See Also:
Constant Field Values

INCLUDE_VIRTUAL_URI

public static final String INCLUDE_VIRTUAL_URI
See Also:
Constant Field Values

URL

public static final String URL
See Also:
Constant Field Values

PAGES

public static final String PAGES
See Also:
Constant Field Values

DEFAULT_CHANGEFREQ

public static final String DEFAULT_CHANGEFREQ
See Also:
Constant Field Values

DEFAULT_PRIORITY

public static final String DEFAULT_PRIORITY
See Also:
Constant Field Values
Constructor Detail

SiteMapNodeTypes.SiteMap

public SiteMapNodeTypes.SiteMap()
Method Detail

getType

public static String getType(javax.jcr.Node node)
                      throws javax.jcr.RepositoryException
Returns the type of the site map or null if no type has been stored on the node.

Throws:
javax.jcr.RepositoryException

getDisplayName

public static String getDisplayName(javax.jcr.Node node)
                             throws javax.jcr.RepositoryException
Returns the displayName of the site map or null if no displayName has been stored on the node.

Throws:
javax.jcr.RepositoryException

isVirtualUriMappingIncluded

public static boolean isVirtualUriMappingIncluded(javax.jcr.Node node)
                                           throws javax.jcr.RepositoryException
Returns the value of INCLUDE_VIRTUAL_URI stored or false in the property is empty.

Throws:
javax.jcr.RepositoryException

getUrl

public static String getUrl(javax.jcr.Node node)
                     throws javax.jcr.RepositoryException
Returns the URL of the site map or null if no URL has been stored on the node.

Throws:
javax.jcr.RepositoryException

getDefaultChangeFreq

public static String getDefaultChangeFreq(javax.jcr.Node node)
                                   throws javax.jcr.RepositoryException
Returns the change frequency of the site map page or null if no change frequency has been stored on the node.

Throws:
javax.jcr.RepositoryException

getDefaultPriority

public static Double getDefaultPriority(javax.jcr.Node node)
                                 throws javax.jcr.RepositoryException
Returns the priority of the site map page or null if no priority has been stored on the node.

Throws:
javax.jcr.RepositoryException

getPages

public static List<String> getPages(javax.jcr.Node node)
                             throws javax.jcr.RepositoryException
Returns the pages linked to the site map or null if no pages has been stored on the node.

Throws:
javax.jcr.RepositoryException

update

public static void update(javax.jcr.Node node,
                          String type,
                          String url,
                          String displayName,
                          boolean includeVirtualUri,
                          String defaultChangeFrq,
                          Double defaultPriority,
                          List<String> pages)
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2015 Magnolia International Ltd.. All rights reserved.