public class EditBean extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CANCEL_VALUE
Value of the save parameter that indicates we wish to cancel this edit
|
static String |
CONTENT_PARAM
Parameter name for the content to save
|
static String |
EMBED_ATTACHMENT_VALUE
Value of the save parameter that indicates we wish to embed an
attachment.
|
static String |
LINK_ATTACHMENT_VALUE
Value of the save parameter that indicates we wish to add an attachment.
|
static String |
OVERWRITE_VALUE
Value of the save parameter that indicates we should overwrite with the
submittedContent.
|
static String |
PREVIEW_VALUE
Value of the save parameter that indicates we wish to preview the content
(NOTE must be lowercase!)
|
static String |
SAVE_VALUE
Value of the save parameter that indicates we wish to save the content
|
static String |
STORED_CARET_POSITION
Last position of the caret or highlights, (if available)
|
static String |
SUBMITTED_CONTENT_PARAM
Parameter name for content that we want resubmit after a
VersionException |
static String |
VERSION_PARAM
Parameter name for version.
|
| Constructor and Description |
|---|
EditBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPreviousContent() |
int |
getPreviousRevision()
Get the previous revision number used by the last save, if any
|
String |
getPreviousVersion() |
String |
getSaveType() |
void |
setPreviousContent(String previousContent)
Set the content sent in the last save
|
void |
setPreviousRevision(int previousRevision)
Set the revision used for the last save
|
void |
setPreviousVersion(String version)
Set the version string sent in the last save
|
void |
setSaveType(String saveType)
Sets the save type used by the last save.
|
public static final String VERSION_PARAM
VersionExceptionpublic static final String SUBMITTED_CONTENT_PARAM
VersionExceptionpublic static final String OVERWRITE_VALUE
public static final String CONTENT_PARAM
public static final String PREVIEW_VALUE
public static final String SAVE_VALUE
public static final String CANCEL_VALUE
public static final String LINK_ATTACHMENT_VALUE
public static final String EMBED_ATTACHMENT_VALUE
public static final String STORED_CARET_POSITION
public String getPreviousContent()
public void setPreviousContent(String previousContent)
previousContent - the previous contentpublic String getPreviousVersion()
public void setPreviousVersion(String version)
version - the version stringpublic String getSaveType()
public void setSaveType(String saveType)
saveType - public void setPreviousRevision(int previousRevision)
previousRevision - the revision numberpublic int getPreviousRevision()
Copyright © 2003-2014 Sakai Project. All Rights Reserved.