info.magnolia.module.forum.frontend.action
Class ThreadView<RD extends info.magnolia.rendering.template.RenderableDefinition>

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.forum.frontend.action.AbstractThreadAction<RD>
          extended by info.magnolia.module.forum.frontend.action.ThreadView<RD>
Type Parameters:
RD - - an instance of RenderableDefinition
All Implemented Interfaces:
info.magnolia.rendering.model.RenderingModel<RD>

public class ThreadView<RD extends info.magnolia.rendering.template.RenderableDefinition>
extends AbstractThreadAction<RD>

Action to see all messages on a thread.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Field Summary
protected static String PROPERTYNAME
           
 
Fields inherited from class info.magnolia.module.forum.frontend.action.AbstractThreadAction
forum, forumConfig, forumId, forumManager, PROPERTYNAME_FORUMID, PROPERTYNAME_THREADID, thread, threadId
 
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl
content, contentMap, definition, parentModel
 
Fields inherited from interface info.magnolia.rendering.model.RenderingModel
SKIP_RENDERING
 
Constructor Summary
ThreadView(javax.jcr.Node content, RD renderable, info.magnolia.rendering.model.RenderingModel<?> parent)
           
ThreadView(javax.jcr.Node content, RD renderable, info.magnolia.rendering.model.RenderingModel<?> parent, ForumManager forumManager, ForumConfiguration config)
           
 
Method Summary
 String execute()
          Initializes forum and thread properties with given ids.
 Collection<javax.jcr.Node> getMessages()
           
 String getmissingDataExceptionMessage()
           
 long getPageCount()
           
protected  void setMessages(PagedResult messages)
           
 void setPage(long page)
           
 
Methods inherited from class info.magnolia.module.forum.frontend.action.AbstractThreadAction
getForum, getForumId, getThread, getThreadId, isAllowedToPost, isAnonymous, isShowingUnvalidatedMessages, setForumId, setThreadId, setupForumIdFromContent, setupThreadIdFromContent
 
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl
getContent, getDef, getDefinition, getNode, getParent, getRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME

protected static final String PROPERTYNAME
See Also:
Constant Field Values
Constructor Detail

ThreadView

public ThreadView(javax.jcr.Node content,
                  RD renderable,
                  info.magnolia.rendering.model.RenderingModel<?> parent)

ThreadView

public ThreadView(javax.jcr.Node content,
                  RD renderable,
                  info.magnolia.rendering.model.RenderingModel<?> parent,
                  ForumManager forumManager,
                  ForumConfiguration config)
Method Detail

setMessages

protected void setMessages(PagedResult messages)

setPage

public void setPage(long page)

execute

public String execute()
Description copied from class: AbstractThreadAction
Initializes forum and thread properties with given ids.

Specified by:
execute in interface info.magnolia.rendering.model.RenderingModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
Overrides:
execute in class AbstractThreadAction<RD extends info.magnolia.rendering.template.RenderableDefinition>

getMessages

public Collection<javax.jcr.Node> getMessages()
                                       throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getPageCount

public long getPageCount()

getmissingDataExceptionMessage

public String getmissingDataExceptionMessage()


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.