org.nuiton.wikitty.publication.ui.action
Class PublicationActionEdit

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
          extended by org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
              extended by org.nuiton.wikitty.publication.ui.action.PublicationActionEdit
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.SessionAware

public class PublicationActionEdit
extends PublicationBaseAction

Java class for the edit action that allow to create and edit wikitty.

Author:
mfortun
See Also:
Serialized Form

Field Summary
protected  boolean isDelete
           
protected  boolean isStore
           
protected  WikittyProxy proxy
           
protected  String uploadContentType
           
protected  File uploadedFile
           
protected  String uploadFileName
           
protected  String version
           
protected  Wikitty wikitty
           
protected  HashMap<String,Object> wikittyFieldMap
           
protected  String wikittyId
           
 
Fields inherited from class org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
ARG_CONTENT_FIELD, ARG_MIMETYPE, ARG_QUERY, ARGS_KEY, CONTEXT_ACTION_KEY, CONTEXT_APPS_KEY, CONTEXT_DATA_KEY, contextApps, contextData, SEARCH_SEPARATOR, SEPARATOR, session
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
PublicationActionEdit()
           
 
Method Summary
 void doAction()
           
 String execute()
           
protected  Map<String,Object> formatArgs(Map<String,Object> args)
           
static PublicationActionEdit getAction()
           
 String getFileContentType()
           
 String getFileFileName()
           
 String getMimeType()
           
 String getPostUrl()
           
 Wikitty getWikitty()
           
protected  void putIdArgs(String id)
           
 void setFile(File upload)
           
 void setFileContentType(String uploadContentType)
           
 void setFileFileName(String uploadFileName)
           
 void setWikitty(Wikitty wikitty)
           
 
Methods inherited from class org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
getArgs, getArgument, getContextApps, getContextArgs, getContextData, getError, getWikittyPublicationProxy, getWikittyPublicationSession, searchCriteria, setContextApps, setContextData, setSession
 
Methods inherited from class org.nuiton.web.struts2.BaseAction
_, _
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wikitty

protected Wikitty wikitty

wikittyFieldMap

protected HashMap<String,Object> wikittyFieldMap

proxy

protected WikittyProxy proxy

isDelete

protected boolean isDelete

isStore

protected boolean isStore

wikittyId

protected String wikittyId

version

protected String version

uploadedFile

protected File uploadedFile

uploadFileName

protected String uploadFileName

uploadContentType

protected String uploadContentType
Constructor Detail

PublicationActionEdit

public PublicationActionEdit()
Method Detail

getAction

public static PublicationActionEdit getAction()

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception

doAction

public void doAction()

setFile

public void setFile(File upload)

getFileContentType

public String getFileContentType()

setFileContentType

public void setFileContentType(String uploadContentType)

getFileFileName

public String getFileFileName()

setFileFileName

public void setFileFileName(String uploadFileName)

getWikitty

public Wikitty getWikitty()

setWikitty

public void setWikitty(Wikitty wikitty)

getPostUrl

public String getPostUrl()

formatArgs

protected Map<String,Object> formatArgs(Map<String,Object> args)

putIdArgs

protected void putIdArgs(String id)

getMimeType

public String getMimeType()


Copyright © 2010-2011 CodeLutin. All Rights Reserved.