Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.webengine.blogs.fragments
Class RecentBlogPostsFragment

java.lang.Object
  extended by org.nuxeo.theme.nodes.AbstractNode
      extended by org.nuxeo.theme.elements.AbstractElement
          extended by org.nuxeo.theme.fragments.AbstractFragment
              extended by org.nuxeo.webengine.blogs.fragments.RecentBlogPostsFragment
All Implemented Interfaces:
Element, Fragment, Node, Relate, Identifiable

public class RecentBlogPostsFragment
extends AbstractFragment

Action fragment for initializing the fragment related to retrieving a certain number of blog posts with information about the last BlogPost-s that are made under an BlogSite.

Author:
rux

Field Summary
static int noForBlogPost
           
static int noForBlogSite
           
 
Constructor Summary
RecentBlogPostsFragment()
           
 
Method Summary
 Model getModel()
          Retrieves a certain number of blog posts with information about the last BlogPost-s that are made under an BlogSite that is received as parameter.
 
Methods inherited from class org.nuxeo.theme.fragments.AbstractFragment
getFragmentType, getVisibilityPerspectives, isDynamic, isVisibleInPerspective, setAlwaysVisible, setFragmentType, setVisibleInPerspective
 
Methods inherited from class org.nuxeo.theme.elements.AbstractElement
computeXPath, getChildrenInContext, getCssClassName, getDescription, getElementType, getName, getNodeTypeFamily, getUid, hash, isEmpty, setCssClassName, setDescription, setElementType, setName, setUid
 
Methods inherited from class org.nuxeo.theme.nodes.AbstractNode
addChild, clearParent, collectDescendants, getChildren, getDescendants, getNextNode, getOrder, getParent, getPreviousNode, hasChildren, hasSiblings, insertAfter, isChildOf, isLeaf, moveTo, removeChild, removeDescendants, setChildren, setOrder, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.theme.elements.Element
computeXPath, getChildrenInContext, getCssClassName, getDescription, getElementType, isEmpty, setCssClassName, setDescription, setElementType
 
Methods inherited from interface org.nuxeo.theme.relations.Relate
hash
 
Methods inherited from interface org.nuxeo.theme.nodes.Node
addChild, clearParent, collectDescendants, getChildren, getDescendants, getNextNode, getNodeTypeFamily, getOrder, getParent, getPreviousNode, hasChildren, hasSiblings, insertAfter, isChildOf, isLeaf, moveTo, removeChild, removeDescendants, setChildren, setOrder, setParent
 
Methods inherited from interface org.nuxeo.theme.uids.Identifiable
getName, getUid, setName, setUid
 

Field Detail

noForBlogSite

public static final int noForBlogSite
See Also:
Constant Field Values

noForBlogPost

public static final int noForBlogPost
See Also:
Constant Field Values
Constructor Detail

RecentBlogPostsFragment

public RecentBlogPostsFragment()
Method Detail

getModel

public Model getModel()
               throws ModelException
Retrieves a certain number of blog posts with information about the last BlogPost-s that are made under an BlogSite that is received as parameter.

Specified by:
getModel in interface Fragment
Specified by:
getModel in class AbstractFragment
Throws:
ModelException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.