|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.rssaggregator.util.PlanetUtil
public final class PlanetUtil
Utility methods for Planet RSS.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isPlanetNode(javax.jcr.Node feedNode) throws javax.jcr.RepositoryException
feedNode
- Feed node to check
javax.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |