Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.action
Class OldEditAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.jivesoftware.base.action.JiveActionSupport
          extended by com.jivesoftware.forum.action.ForumActionSupport
              extended by com.jivesoftware.forum.action.OldPostAction
                  extended by com.jivesoftware.forum.action.OldEditAction
All Implemented Interfaces:
AuthTokenAware, EntityAware, UserAware, ForumFactoryAware, com.opensymphony.webwork.interceptor.ServletRequestAware, com.opensymphony.webwork.interceptor.ServletResponseAware, com.opensymphony.webwork.interceptor.SessionAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable

public class OldEditAction
extends OldPostAction

Action for handling logic of editing forum content.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jivesoftware.forum.action.OldPostAction
ATTACH, PREVIEW, REJECTED, SPELLCHECK
 
Fields inherited from class com.jivesoftware.forum.action.ForumActionSupport
CANCEL, DISABLED, FATAL, NOTFOUND, SESSION_REFERRER_KEY, UNAUTHORIZED
 
Fields inherited from class com.jivesoftware.base.action.JiveActionSupport
pageUser, response
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
OldEditAction()
           
 
Method Summary
 java.lang.String doDefault()
          Loads specified Jive objects (the forum, parent message, etc) and checks that the user has posting permission in this forum.
 java.lang.String execute()
          Loads specified Jive objects (the forum, parent message, etc) and checks that the user has posting permission in this forum.
 java.lang.String getComment()
           
 boolean isAddComment()
           
protected  boolean isEdit()
          Returns true always to indicate that this action is for message editing.
 boolean isEditStampRequired()
           
protected  boolean loadJiveObjects()
          Loads Jive objects used in this actions (ie, forum, thread, message objects).
 void setAddComment(boolean addComment)
           
 void setComment(java.lang.String comment)
           
 
Methods inherited from class com.jivesoftware.forum.action.OldPostAction
cleanSession, createMessage, doPost, doRemoveAttach, doReply, getAssignPoints, getAttachmentCount, getAttachments, getBody, getDoAttach, getDoGoBack, getDoPost, getDoPreview, getDoQuoteOriq, getDoSpellCheck, getDraft, getEmail, getEntityDescriptor, getForum, getForumID, getFrom, getMessage, getMessageID, getName, getNewMessage, getNewMessageIsModerated, getPartialURL, getPreviewedMessage, getReplySubject, getResolution, getSessionSuffix, getSubject, getTempAttachmentID, getThread, getThreadID, getTid, getToHex, isCancel, isDraftEnabled, isDraftExists, isMarkAsQuestion, isQuote, isReply, isShortTermQueryCacheEnabled, loadToSession, removeFromSession, retrieveFromSession, setAssignPoints, setBody, setCancel, setDoAttach, setDoGoBack, setDoPost, setDoPreview, setDoQuoteOriq, setDoSpellCheck, setDraft, setDraftEnabled, setDraftExists, setEmail, setForum, setForumID, setFrom, setMarkAsQuestion, setMessage, setMessageID, setName, setNewMessage, setQuote, setReply, setResolution, setServletRequest, setSession, setSubject, setTempAttachmentID, setThread, setThreadID, setTid, setUseDraft, useDraft, validate
 
Methods inherited from class com.jivesoftware.forum.action.ForumActionSupport
getCanAttach, getCanCreateMessage, getCanCreatePoll, getCanCreatePoll, getCanCreateThread, getCanCreateThread, getCanEdit, getCanEditAttach, getCanEditPoll, getCanEditPoll, getCanEditProfile, getCanEditTags, getCanPostAnnounce, getCanPostAnnounce, getCanRead, getCanRead, getForumFactory, getPageUser, getReadStatus, getSkinProperty, getThemeName, isAdmin, isAdmin, isAuthor, isAuthor, isMessageModerationOn, isModerator, isModerator, isResourceInTheme, isSystemAdmin, isThreadModerationOn, setForumFactory, setUser
 
Methods inherited from class com.jivesoftware.base.action.JiveActionSupport
getAuthToken, getGuestProperty, getJiveProperty, getLocales, getPageURL, getSession, getText, getText, getTimeZone, getTimeZones, isFailedLookup, isGuest, setAuthToken, setGuestProperty, setLoginAttributes, setPageUser, setServletResponse
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OldEditAction

public OldEditAction()
Method Detail

isAddComment

public boolean isAddComment()

setAddComment

public void setAddComment(boolean addComment)

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

isEditStampRequired

public boolean isEditStampRequired()

isEdit

protected boolean isEdit()
Returns true always to indicate that this action is for message editing.

Overrides:
isEdit in class OldPostAction
Returns:
false always. Subclasses should override this.

doDefault

public java.lang.String doDefault()
Description copied from class: OldPostAction
Loads specified Jive objects (the forum, parent message, etc) and checks that the user has posting permission in this forum. If there are errors loading the objects, Action.ERROR is returned and if the user doesn't have permission to post, Action.LOGIN is returned.

This method will also add info messages - views can display them by getting Iterators from the ActionSupport.getActionMessages() method.

Overrides:
doDefault in class OldPostAction
Returns:
Action.ERROR if an error occurs, Action.INPUT otherwise.

execute

public java.lang.String execute()
Description copied from class: OldPostAction
Loads specified Jive objects (the forum, parent message, etc) and checks that the user has posting permission in this forum. If there are errors loading the objects, Action.ERROR is returned and if the user doesn't have permission to post, Action.LOGIN is returned.

This method also validates all message fields and, depending on what the user wants to do (post, preview, etc), executes the appropriate course of action.

If the user wants to post the message and all fields validate, this method will post the message and return Action.SUCCESS;

Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class OldPostAction
Returns:
Action.ERROR if an error occurs, action.INPUT if there is an error with the input or Action.SUCCESS if the edit was successful.

loadJiveObjects

protected boolean loadJiveObjects()
                           throws UnauthorizedException
Description copied from class: OldPostAction
Loads Jive objects used in this actions (ie, forum, thread, message objects). Returns true if there were no errors loading the objects, false otherwise.

Overrides:
loadJiveObjects in class OldPostAction
Throws:
UnauthorizedException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.