public class ScmWebEditorBaseAction
extends org.nuiton.web.struts2.BaseAction
| Constructor and Description |
|---|
ScmWebEditorBaseAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkout(SvnConnection svnSess,
File checkoutdir) |
void |
checkout(SvnConnection svnSess,
File checkoutdir,
String numVersion) |
protected void |
convertToUnicode(File... files)
Convert all files to UTF-8.
|
void |
delTempDirectory(File checkoutdir)
Use to delete the checkout temp directory
|
protected info.monitorenter.cpdetector.io.CodepageDetectorProxy |
getCodepageDetector() |
String |
getHeadcommiter(String address,
String login,
String password) |
String |
getHeadNumberRevision(String address,
String login,
String password) |
String |
getHeadRevision(String address,
String login,
String password) |
protected String |
getMimeType(File file) |
protected String |
getMimeType(String content,
String filename) |
protected String[] |
getMimeTypes(String content,
String filename) |
String |
getPassword(String url) |
ScmSession |
getScmSession() |
protected SvnConnection |
getSvnSession(javax.servlet.http.HttpSession httpSession) |
protected File |
getTempDir(javax.servlet.http.HttpSession httpSession) |
String |
getUsername(String url) |
static Properties |
loadProperties(InputStream inStream)
Recuperation des propriétés dans un fichier properties
|
static Properties |
loadProperties(String file)
Recuperation des propriétés dans un fichier properties
|
protected void |
setSvnSession(javax.servlet.http.HttpSession httpSession,
SvnConnection svnSess) |
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, 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 AUTH_ERROR
public static final String ERROR_PATH
protected static final String CONTEXT_ACTION_KEY
protected static final String PARAMETER_ADDRESS
protected static final String PARAMETER_SCM_EDITOR_URL
protected static final String PARAMETER_PROJECT_URL
protected static final String PARAMETER_FILE_NAME
protected static final String PARAMETER_LANG
protected static final String PARAMETER_DEFAULT_LANG
protected static final String PARAMETER_FORMAT
protected static final String PARAMETER_USERNAME
protected static final String PARAMETER_PW
protected static final String PARAMETER_MYTEXT
protected static final String PARAMETER_ORIG_TEXT
protected static final String PARAMETER_COMMIT_MESSAGE
protected static final String PARAMETER_TEXT
protected static final String ATTRIBUTE_REDIRECTION_URL
protected static final String ATTRIBUTE_ORIG_TEXT
protected static final String ATTRIBUTE_INVALIDATE_MAX_TIME
protected static final String ATTRIBUTE_LOGIN
protected static final String ATTRIBUTE_IS_LOGIN
protected static final String ATTRIBUTE_BAD_LOGIN
protected static final String ATTRIBUTE_PROJECT_URL
protected static final String ATTRIBUTE_SCM_EDITOR_URI
protected static final String ATTRIBUTE_PREVIEW_SERVLET_URL
protected static final String ATTRIBUTE_FILESEARCH_SERVLET_URL
protected static final String ATTRIBUTE_REDIRECT_URL
protected static final String ATTRIBUTE_PRIVATE_SERVLET_URI
protected static final String PROPERTIESFILES
protected static final String EDITABLESFILES
protected static info.monitorenter.cpdetector.io.CodepageDetectorProxy detector
protected info.monitorenter.cpdetector.io.CodepageDetectorProxy getCodepageDetector()
protected void convertToUnicode(File... files)
files - fiels to convertpublic void checkout(SvnConnection svnSess, File checkoutdir, String numVersion) throws org.tmatesoft.svn.core.SVNException
svnSess - checkoutdir - numVersion - org.tmatesoft.svn.core.SVNExceptionpublic void checkout(SvnConnection svnSess, File checkoutdir) throws org.tmatesoft.svn.core.SVNException
svnSess - checkoutdir - org.tmatesoft.svn.core.SVNExceptionpublic String getHeadRevision(String address, String login, String password) throws org.tmatesoft.svn.core.SVNException, IllegalArgumentException
address - login - password - org.tmatesoft.svn.core.SVNExceptionIllegalArgumentExceptionpublic String getHeadNumberRevision(String address, String login, String password) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNExceptionpublic String getHeadcommiter(String address, String login, String password) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNExceptionpublic void delTempDirectory(File checkoutdir)
checkoutdir - The dir temp directoryprotected SvnConnection getSvnSession(javax.servlet.http.HttpSession httpSession)
protected void setSvnSession(javax.servlet.http.HttpSession httpSession,
SvnConnection svnSess)
protected File getTempDir(javax.servlet.http.HttpSession httpSession)
protected String getMimeType(File file) throws IOException, SAXException, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionprotected String getMimeType(String content, String filename) throws IOException
IOExceptionprotected String[] getMimeTypes(String content, String filename) throws IOException, SAXException, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionpublic static Properties loadProperties(String file) throws IOException
file - le fichier contenant les propriétésIOExceptionpublic static Properties loadProperties(InputStream inStream) throws IOException, NullPointerException
inStream - le fichier contenant les propriétésIOExceptionNullPointerExceptionpublic ScmSession getScmSession()
Copyright © 2009–2014 CodeLutin. All rights reserved.