Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nectar.action
Class AbstractCommentAction  view AbstractCommentAction download AbstractCommentAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bynectar.action.BasePageAction
          extended bynectar.action.AbstractCommentAction
Direct Known Subclasses:
AbstractSupportAction, CommentDeleteAction, CommentDeleteSubmitAction, CommentEditAction, CommentEditSubmitAction, CommentPostAction, CommentPostSubmitAction, CommentReplyAction, CommentReplySubmitAction, ForumAction, NewsAction

public abstract class AbstractCommentAction
extends BasePageAction

Abstract action for comment displays.


Field Summary
 
Fields inherited from class nectar.action.BasePageAction
ERROR_KEY, FAILURE, SUCCESS
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AbstractCommentAction()
           
 
Method Summary
protected  boolean checkDeleteAccess(ActionKit kit, nectar.form.BaseCommentActionForm form)
           
protected  boolean checkEditAccess(ActionKit kit, nectar.form.BaseCommentActionForm form)
           
protected  boolean checkPostAccess(ActionKit kit, nectar.form.BaseCommentActionForm form)
           
protected  java.lang.Long createNewComment(java.lang.Long project, java.lang.String subject, java.lang.String comment, java.lang.Long creator, java.lang.Long owner)
           
protected  nectar.view.beans.CommentBean getComments(java.lang.String actionPath, java.lang.Long project, java.lang.Long id)
           
protected  java.lang.String getPostRights(ActionKit kit, nectar.view.CommentableView view)
           
protected  void loadAuthorsToTreeRecurse(java.lang.String actionPath, java.lang.Long forumId, nectar.view.beans.CommentBean tb)
           
 
Methods inherited from class nectar.action.BasePageAction
execute, executeInternal
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCommentAction

public AbstractCommentAction()
Method Detail

getComments

protected nectar.view.beans.CommentBean getComments(java.lang.String actionPath,
                                                    java.lang.Long project,
                                                    java.lang.Long id)
                                             throws nectar.data.DataException

loadAuthorsToTreeRecurse

protected void loadAuthorsToTreeRecurse(java.lang.String actionPath,
                                        java.lang.Long forumId,
                                        nectar.view.beans.CommentBean tb)
                                 throws nectar.data.DataException

getPostRights

protected java.lang.String getPostRights(ActionKit kit,
                                         nectar.view.CommentableView view)
                                  throws nectar.services.AuthenticationException,
                                         nectar.data.DataException

createNewComment

protected java.lang.Long createNewComment(java.lang.Long project,
                                          java.lang.String subject,
                                          java.lang.String comment,
                                          java.lang.Long creator,
                                          java.lang.Long owner)
                                   throws nectar.NectarException

checkPostAccess

protected boolean checkPostAccess(ActionKit kit,
                                  nectar.form.BaseCommentActionForm form)
                           throws nectar.data.DataException,
                                  nectar.services.AuthenticationException

checkEditAccess

protected boolean checkEditAccess(ActionKit kit,
                                  nectar.form.BaseCommentActionForm form)
                           throws nectar.data.DataException,
                                  nectar.services.AuthenticationException

checkDeleteAccess

protected boolean checkDeleteAccess(ActionKit kit,
                                    nectar.form.BaseCommentActionForm form)
                             throws nectar.data.DataException,
                                    nectar.services.AuthenticationException