public class EditAction extends ScmWebEditorMainAction
| Modifier and Type | Field and Description |
|---|---|
protected int |
autoSaveInterval
the interval between two automatic saves
|
protected boolean |
fileDirectlyAccessible
equals true if this file is directly accessible from its address
|
protected static String |
NOT_EDITABLE |
protected String |
repositoryRoot
the full path to the root of the repository
|
protected String |
revision1
one of the revisions to use to get the differences
|
protected String |
revision2
the other revision to use to get the differences
|
protected Map<ScmRevision,String> |
revisions
a list of the revision which can be used to view the file's history
|
protected boolean |
scmSupportsBranches
equals true if the SCM is able to use branches
|
protected boolean |
scmSupportsPush
equals true if the SCM allows to choose when the commits are pushed to the server
|
protected String |
selectedBranch
the name of the selected branch
|
address, badLogin, EDIT_PAGE, format, fromLoginPage, mimeType, NO_PARAMETER, numRevision, origText, projectUrl, pw, repositoryId, response, saveCookie, usernameATTRIBUTE_BAD_LOGIN, ATTRIBUTE_FILESEARCH_SERVLET_URL, ATTRIBUTE_INVALIDATE_MAX_TIME, ATTRIBUTE_IS_LOGIN, ATTRIBUTE_LOGIN, ATTRIBUTE_ORIG_TEXT, ATTRIBUTE_PREVIEW_SERVLET_URL, ATTRIBUTE_PRIVATE_SERVLET_URI, ATTRIBUTE_PROJECT_URL, ATTRIBUTE_REDIRECT_URL, ATTRIBUTE_REDIRECTION_URL, ATTRIBUTE_SCM_EDITOR_URI, AUTH_ERROR, CONTEXT_ACTION_KEY, detector, EDITABLESFILES, ENCODING, ERROR_PATH, PARAMETER_ADDRESS, PARAMETER_COMMIT_MESSAGE, PARAMETER_DEFAULT_LANG, PARAMETER_FILE_NAME, PARAMETER_FORMAT, PARAMETER_LANG, PARAMETER_MYTEXT, PARAMETER_ORIG_TEXT, PARAMETER_PROJECT_URL, PARAMETER_PW, PARAMETER_SCM_EDITOR_URL, PARAMETER_TEXT, PARAMETER_USERNAME, PROPERTIESFILES, request, scmType, session| Constructor and Description |
|---|
EditAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute()
Execution of the edit action
|
int |
getAutoSaveInterval() |
String |
getCodeMirrorVersion() |
String |
getRepositoryRoot() |
String |
getRevision1() |
String |
getRevision2() |
Map<ScmRevision,String> |
getRevisions() |
String |
getSelectedBranch() |
boolean |
isFileDirectlyAccessible() |
boolean |
isScmSupportsBranches() |
boolean |
isScmSupportsPush() |
void |
setAutoSaveInterval(int autoSaveInterval) |
void |
setFileDirectlyAccessible(boolean fileDirectlyAccessible) |
void |
setRepositoryRoot(String repositoryRoot) |
void |
setRevision1(String revision1) |
void |
setRevision2(String revision2) |
void |
setRevisions(Map<ScmRevision,String> revisions) |
void |
setScmSupportsBranches(boolean scmSupportsBranches) |
void |
setScmSupportsPush(boolean scmSupportsPush) |
void |
setSelectedBranch(String selectedBranch) |
getAddress, getFormat, getMimeType, getNumRevision, getOrigText, getProjectUrl, getPw, getRepositoryId, getSupportedScmsName, getUsername, isBadLogin, setAddress, setFormat, setFromLoginPage, setProjectUrl, setPw, setRepositoryId, setServletResponse, setUsernameconvertToUnicode, getCodepageDetector, getMimeType, getMimeType, getMimeTypes, getPassword, getRequest, getScmSession, getScmType, getSweVersion, getUsername, getUsernamePwFromSession, loadProperties, loadProperties, setScmType, setServletRequestaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected static final String NOT_EDITABLE
protected String selectedBranch
protected boolean scmSupportsBranches
protected boolean scmSupportsPush
protected String repositoryRoot
protected int autoSaveInterval
protected Map<ScmRevision,String> revisions
protected String revision1
protected String revision2
protected boolean fileDirectlyAccessible
public String getCodeMirrorVersion()
public String getSelectedBranch()
public void setSelectedBranch(String selectedBranch)
public boolean isScmSupportsBranches()
public void setScmSupportsBranches(boolean scmSupportsBranches)
public boolean isScmSupportsPush()
public void setScmSupportsPush(boolean scmSupportsPush)
public String getRepositoryRoot()
public void setRepositoryRoot(String repositoryRoot)
public int getAutoSaveInterval()
public void setAutoSaveInterval(int autoSaveInterval)
public Map<ScmRevision,String> getRevisions()
public void setRevisions(Map<ScmRevision,String> revisions)
public String getRevision1()
public void setRevision1(String revision1)
public String getRevision2()
public void setRevision2(String revision2)
public boolean isFileDirectlyAccessible()
public void setFileDirectlyAccessible(boolean fileDirectlyAccessible)
public String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class ScmWebEditorMainActionCopyright © 2009–2017 CodeLutin. All rights reserved.