public class CollectStatisticsCommand
extends info.magnolia.commands.MgnlCommand
Constructor and Description |
---|
CollectStatisticsCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
createMapEntry(org.apache.commons.collections4.map.MultiKeyMap mkm,
javax.jcr.Node blogEntry)
Add blog entries from the planet archive to a multi key map.
|
protected void |
createStatisticsNodes(org.apache.commons.collections4.map.MultiKeyMap statEntries,
javax.jcr.Node topNode)
Store collected statistics in JCR tree.
|
boolean |
execute(info.magnolia.context.Context context) |
protected Date |
getStatisticsStartDate()
Get relevant date for statistics from Magnolia config workspace.
|
public boolean execute(info.magnolia.context.Context context) throws Exception
execute
in class info.magnolia.commands.MgnlCommand
Exception
protected Date getStatisticsStartDate()
protected void createMapEntry(org.apache.commons.collections4.map.MultiKeyMap mkm, javax.jcr.Node blogEntry)
mkm
- Map with blog entries stored with a key consisting of author name and rss feed link.blogEntry
- Single blog entry retrieved from planet archive.protected void createStatisticsNodes(org.apache.commons.collections4.map.MultiKeyMap statEntries, javax.jcr.Node topNode)
statEntries
- Map with author and feed key containing blog entries.topNode
- Top node for the planet statistics feed.Copyright © 2016 Magnolia International Ltd.. All rights reserved.