public final class PlanetUtil extends Object
Modifier and Type | Method and Description |
---|---|
static javax.jcr.Node |
findAuthorNode(javax.jcr.Node searchNode,
String authorName,
String feedLink,
int count)
Search for an author / feed combination in planet statistics and return the authors node if found.
|
static String |
formatDescription(String origDescription,
Integer abbreviation)
Format and sanitize description input.
|
static String |
formatName(javax.jcr.Node node,
String propName)
Format node content containing author and channel names.
|
static boolean |
isPlanetNode(javax.jcr.Node feedNode)
Determine if a combined feed has the planet attribute set to true.
|
public static boolean isPlanetNode(javax.jcr.Node feedNode) throws javax.jcr.RepositoryException
feedNode
- Feed node to checkjavax.jcr.RepositoryException
public static String formatName(javax.jcr.Node node, String propName) throws javax.jcr.RepositoryException
node
- the node where the name property is stored.propName
- the name property to be formatted.javax.jcr.RepositoryException
public static String formatDescription(String origDescription, Integer abbreviation)
origDescription
- original description as delivered by feed fetcher.abbreviation
- gives the amount of characters used for abbreviation.public static javax.jcr.Node findAuthorNode(javax.jcr.Node searchNode, String authorName, String feedLink, int count)
searchNode
- Starting node for the search.authorName
- Name of the author to search for.feedLink
- Link identifying the blog.count
- Internal counter to create unique node names.Copyright © 2016 Magnolia International Ltd.. All rights reserved.