org.alfresco.repo.web.scripts.discussion
Class ForumTopicsHotGet

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractWebScript
      extended by org.springframework.extensions.webscripts.DeclarativeWebScript
          extended by org.alfresco.repo.web.scripts.discussion.AbstractDiscussionWebScript
              extended by org.alfresco.repo.web.scripts.discussion.ForumTopicsHotGet
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript

public class ForumTopicsHotGet
extends AbstractDiscussionWebScript

This class is the controller for the discussions topics fetching forum-posts-hot.get webscript.

Since:
4.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
 
Field Summary
protected static long ONE_DAY_MS
           
protected static int RECENT_POSTS_PERIOD_DAYS
           
 
Fields inherited from class org.alfresco.repo.web.scripts.discussion.AbstractDiscussionWebScript
activityService, DISCUSSIONS_SERVICE_ACTIVITY_APP_NAME, discussionService, KEY_AUTHOR, KEY_CAN_EDIT, KEY_IS_TOPIC_POST, KEY_POST, KEY_POSTDATA, KEY_TOPIC, MAX_QUERY_ENTRY_COUNT, nodeService, permissionService, personService, siteService
 
Constructor Summary
ForumTopicsHotGet()
           
 
Method Summary
protected  java.util.Map executeImpl(org.alfresco.service.cmr.site.SiteInfo site, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.discussion.TopicInfo topic, org.alfresco.service.cmr.discussion.PostInfo post, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
           
 
Methods inherited from class org.alfresco.repo.web.scripts.discussion.AbstractDiscussionWebScript
addActivityEntry, buildCommonModel, buildPagingRequest, buildPerson, canUserEditPost, executeImpl, getOrNull, getTags, renderPost, renderTopic, renderTopics, renderTopics, setActivityService, setDiscussionService, setNodeService, setPermissionService, setPersonService, setSiteService
 
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
 
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RECENT_POSTS_PERIOD_DAYS

protected static final int RECENT_POSTS_PERIOD_DAYS
See Also:
Constant Field Values

ONE_DAY_MS

protected static final long ONE_DAY_MS
See Also:
Constant Field Values
Constructor Detail

ForumTopicsHotGet

public ForumTopicsHotGet()
Method Detail

executeImpl

protected java.util.Map executeImpl(org.alfresco.service.cmr.site.SiteInfo site,
                                    org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                    org.alfresco.service.cmr.discussion.TopicInfo topic,
                                    org.alfresco.service.cmr.discussion.PostInfo post,
                                    org.springframework.extensions.webscripts.WebScriptRequest req,
                                    org.json.simple.JSONObject json,
                                    org.springframework.extensions.webscripts.Status status,
                                    org.springframework.extensions.webscripts.Cache cache)
Specified by:
executeImpl in class AbstractDiscussionWebScript


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.