public class BrowseAction extends AbstractScmWebEditorAction implements org.apache.struts2.interceptor.ServletResponseAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
address
the repository's address
|
protected boolean |
error
equals true when an error occured
|
protected String |
headBranchName
the name of the head branch on the SCM
|
protected String |
id
the SCM's identifier
|
protected List<com.jgeppert.struts2.jquery.tree.result.TreeNode> |
nodes
the nodes for the tree showing the repository's files and directories
|
protected String |
pw
the password to connect with
|
protected javax.servlet.http.HttpServletResponse |
response
the HTTP response to send to the client
|
static String |
ROOT |
protected boolean |
scmSupportsBranches
equals true if the SCM is able to use branches
|
protected String |
selectedBranch
the selected branch's name
|
protected String |
username
the username to connect with
|
ATTRIBUTE_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 |
|---|
BrowseAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute()
Execution of the browse action
|
String |
getAddress() |
boolean |
getError() |
String |
getHeadBranchName() |
String |
getId() |
List<com.jgeppert.struts2.jquery.tree.result.TreeNode> |
getNodes() |
String |
getPw() |
String |
getSelectedBranch() |
String |
getUsername() |
boolean |
isScmSupportsBranches() |
void |
setAddress(String address) |
void |
setError(boolean error) |
void |
setHeadBranchName(String headBranchName) |
void |
setId(String id) |
void |
setPw(String pw) |
void |
setScmSupportsBranches(boolean scmSupportsBranches) |
void |
setSelectedBranch(String selectedBranch) |
void |
setServletResponse(javax.servlet.http.HttpServletResponse response) |
void |
setUsername(String username) |
convertToUnicode, getCodepageDetector, getMimeType, getMimeType, getMimeTypes, getPassword, getRequest, getScmSession, getScmType, getSweVersion, getUsername, getUsernamePwFromSession, loadProperties, loadProperties, setScmType, setServletRequestaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, 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, validatepublic static final String ROOT
protected String address
protected String username
protected String pw
protected boolean error
protected List<com.jgeppert.struts2.jquery.tree.result.TreeNode> nodes
protected String id
protected String selectedBranch
protected String headBranchName
protected boolean scmSupportsBranches
protected transient javax.servlet.http.HttpServletResponse response
public boolean getError()
public void setError(boolean error)
public String getAddress()
public void setAddress(String address)
public String getUsername()
public void setUsername(String username)
public String getPw()
public void setPw(String pw)
public String getId()
public String getHeadBranchName()
public String getSelectedBranch()
public void setSelectedBranch(String selectedBranch)
public void setHeadBranchName(String headBranchName)
public boolean isScmSupportsBranches()
public void setScmSupportsBranches(boolean scmSupportsBranches)
public List<com.jgeppert.struts2.jquery.tree.result.TreeNode> getNodes()
public void setId(String id)
public String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportpublic void setServletResponse(javax.servlet.http.HttpServletResponse response)
setServletResponse in interface org.apache.struts2.interceptor.ServletResponseAwareCopyright © 2009–2016 CodeLutin. All rights reserved.