Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.action
Class ObjectRedirectAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.jivesoftware.base.action.ObjectRedirectAction
All Implemented Interfaces:
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 ObjectRedirectAction
extends com.opensymphony.xwork.ActionSupport

A simple action which helps with redirects from objectIDs and objectTypes.

See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT
          Return code for the default redirect action.
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ObjectRedirectAction()
           
 
Method Summary
 java.lang.String execute()
          Returns "category", "forum", "user", "group", "thread" or "message" depending on the objectType.
 long getObjectID()
           
 int getObjectType()
           
 void setObjectID(long objectID)
           
 void setObjectType(int objectType)
           
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doDefault, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final java.lang.String DEFAULT
Return code for the default redirect action.

See Also:
Constant Field Values
Constructor Detail

ObjectRedirectAction

public ObjectRedirectAction()
Method Detail

getObjectID

public long getObjectID()

setObjectID

public void setObjectID(long objectID)

getObjectType

public int getObjectType()

setObjectType

public void setObjectType(int objectType)

execute

public java.lang.String execute()
Returns "category", "forum", "user", "group", "thread" or "message" depending on the objectType. If the object type doesn't exist or isn't recognized then "default" is returned.

Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.