public class DeploymentUtils extends Object
Constructor and Description |
---|
DeploymentUtils() |
Modifier and Type | Method and Description |
---|---|
static fr.paris.lutece.util.ReferenceList |
addEmptyRefenceItem(fr.paris.lutece.util.ReferenceList referenceList) |
static void |
addTechnicalError(CommandResult commandResult,
String strError) |
static void |
addTechnicalError(CommandResult commandResult,
String strError,
Exception e) |
static String |
buildQueryWithFilter(StringBuilder sbSQL,
List<String> listFilter,
String strOrder)
Builds a query with filters placed in parameters
|
static String |
buildRequetteWithFilter(String strSelect,
List<String> listStrFilter,
String strOrder)
Builds a query with filters placed in parameters.
|
static String |
callPlateformEnvironmentWs(String strUrl)
This method calls Rest WS archive
|
static String |
deleteLocalRepository(WorkflowDeploySiteContext context,
Application application)
Delete the local repository of the application sources
|
static String |
getActionKey(String strCode,
String strServerType) |
static ActionParameter[] |
getActionParameters(javax.servlet.http.HttpServletRequest request,
List<String> listParameterNames) |
static ActionParameter[] |
getActionParameters(WorkflowDeploySiteContext workkflowContext) |
static String |
getContextDirectoryTarget(String strCodeApplication,
ServerApplicationInstance serverApplicationInstance) |
static String |
getDeployDirectoryTarget(String strCodeApplication,
ServerApplicationInstance serverApplicationInstance) |
static String |
getDumpFileDirectory(String strCodeApplication,
ServerApplicationInstance serverApplicationInstance) |
static int |
getIdWorkflowSiteDeploy(WorkflowDeploySiteContext workflowDeploySiteContext) |
static int |
getIntegerParameter(String strParameter)
convert a string to int
|
static List<String> |
getJSONDictionary(String dictionaryName,
String strJSONFlux) |
static List<String> |
getJSONDictionary(String objectName,
String dictionaryName,
String strJSONFlux) |
static net.sf.json.JSONObject |
getJSONForCommandResult(CommandResult result) |
static net.sf.json.JSONObject |
getJSONForServerAction(int nIdApplication,
String strCodeEnvironment,
String strServerCodeInstance,
String strServerApplicationType,
String strJspForceRedirect,
CommandResult result,
List<IAction> listServersActions,
Integer newServerStatus) |
static net.sf.json.JSONObject |
getJSONForWorkflowAction(String strJspForceRedirect,
String strFormError,
CommandResult result,
fr.paris.lutece.plugins.workflowcore.business.state.State state,
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listAction) |
static net.sf.json.JSONObject |
getJSONOBject(String strJSONFlux) |
static String |
getPathArchiveGenerated(String strPathSite,
String strWarName,
String strExtension)
Retourne l'emplacement du pom
|
static String |
getPathCheckoutSite(String strSiteName)
Retourne l'emplacement du pom
|
static String |
getPathPomFile(String strPathSite)
Retourne l'emplacement du pom
|
static String |
getPathUpgradeFile(String strPathSite,
String strFileName)
Retourne l'emplacement du pom
|
static String |
getPathUpgradeFiles(String strPathSite)
Retourne l'emplacement du pom
|
static String |
getPlateformUrlApplication(String strCodeApplication) |
static String |
getPlateformUrlDatabases(String strCodeApplication,
ServerApplicationInstance serverApplicationInstance) |
static String |
getPlateformUrlEnvironments(String strCodeApplication,
String strArea) |
static String |
getPlateformUrlServerApplicationAction(String strCodeApplication,
ServerApplicationInstance serverApplicationInstance,
String strCodeAction) |
static String |
getPlateformUrlServerApplicationActions(String strCodeApplication,
ServerApplicationInstance serverApplicationInstance) |
static String |
getPlateformUrlServerApplicationInstances(String strCodeApplication,
String strCodeEnvironment,
String strServerApplicationType) |
static fr.paris.lutece.util.ReferenceList |
getReferenceListAction(List<IAction> listAction) |
static fr.paris.lutece.util.ReferenceList |
getReferenceListServerType(Locale locale) |
static fr.paris.lutece.util.ReferenceList |
getSimpleReferenceList(List<String> list) |
static SvnUser |
getSvnUser(int nIdAdminUser,
Locale locale) |
static IVCSService |
getVCSService(String strKey)
Get the VCS service from the repo type
|
static AbstractVCSUser |
getVCSUser(Application application)
Get an empty VCS user based on the repo type of the provided application
|
static AbstractVCSUser |
getVCSUser(javax.servlet.http.HttpServletRequest request,
Application application)
Get the VCS user from the request and the given application
|
static void |
startCommandResult(CommandResult commandResult) |
static void |
startCommandResult(WorkflowDeploySiteContext context) |
static void |
stopCommandResult(CommandResult commandResult) |
static void |
stopCommandResult(WorkflowDeploySiteContext context) |
public static String buildRequetteWithFilter(String strSelect, List<String> listStrFilter, String strOrder)
buildQueryWithFilter(StringBuilder, List, String)
instead.strSelect
- the select of the querylistStrFilter
- the list of filter to add in the querystrOrder
- the order by of the querypublic static String buildQueryWithFilter(StringBuilder sbSQL, List<String> listFilter, String strOrder)
sbSQL
- the beginning of the querylistFilter
- the list of filter to add in the querystrOrder
- the order by of the querypublic static String callPlateformEnvironmentWs(String strUrl) throws fr.paris.lutece.util.httpaccess.HttpAccessException
strUrl
- the urlparams
- the params to pass in the postlistElements
- the list of elements to include in the signaturefr.paris.lutece.util.httpaccess.HttpAccessException
- the exception if there is a problempublic static List<String> getJSONDictionary(String dictionaryName, String strJSONFlux)
public static List<String> getJSONDictionary(String objectName, String dictionaryName, String strJSONFlux)
public static net.sf.json.JSONObject getJSONOBject(String strJSONFlux)
public static String getPathPomFile(String strPathSite)
strBasePath
- strPluginName
- public static String getPathUpgradeFiles(String strPathSite)
strBasePath
- strPluginName
- public static String getPathUpgradeFile(String strPathSite, String strFileName)
strBasePath
- strPluginName
- public static String getPathArchiveGenerated(String strPathSite, String strWarName, String strExtension)
strBasePath
- strPluginName
- public static String getPathCheckoutSite(String strSiteName)
strBasePath
- strPluginName
- public static String getPlateformUrlApplication(String strCodeApplication)
public static String getPlateformUrlEnvironments(String strCodeApplication, String strArea)
public static String getPlateformUrlServerApplicationInstances(String strCodeApplication, String strCodeEnvironment, String strServerApplicationType)
public static String getPlateformUrlServerApplicationActions(String strCodeApplication, ServerApplicationInstance serverApplicationInstance)
public static String getPlateformUrlDatabases(String strCodeApplication, ServerApplicationInstance serverApplicationInstance)
public static String getPlateformUrlServerApplicationAction(String strCodeApplication, ServerApplicationInstance serverApplicationInstance, String strCodeAction)
public static String getDeployDirectoryTarget(String strCodeApplication, ServerApplicationInstance serverApplicationInstance)
public static String getContextDirectoryTarget(String strCodeApplication, ServerApplicationInstance serverApplicationInstance)
public static String getDumpFileDirectory(String strCodeApplication, ServerApplicationInstance serverApplicationInstance)
public static int getIntegerParameter(String strParameter)
strParameter
- the string parameter to convertpublic static net.sf.json.JSONObject getJSONForCommandResult(CommandResult result)
public static net.sf.json.JSONObject getJSONForWorkflowAction(String strJspForceRedirect, String strFormError, CommandResult result, fr.paris.lutece.plugins.workflowcore.business.state.State state, Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listAction)
public static net.sf.json.JSONObject getJSONForServerAction(int nIdApplication, String strCodeEnvironment, String strServerCodeInstance, String strServerApplicationType, String strJspForceRedirect, CommandResult result, List<IAction> listServersActions, Integer newServerStatus)
public static int getIdWorkflowSiteDeploy(WorkflowDeploySiteContext workflowDeploySiteContext)
public static void startCommandResult(WorkflowDeploySiteContext context)
public static void startCommandResult(CommandResult commandResult)
public static void stopCommandResult(WorkflowDeploySiteContext context)
public static void stopCommandResult(CommandResult commandResult)
public static void addTechnicalError(CommandResult commandResult, String strError, Exception e)
public static void addTechnicalError(CommandResult commandResult, String strError)
public static fr.paris.lutece.util.ReferenceList addEmptyRefenceItem(fr.paris.lutece.util.ReferenceList referenceList)
public static ActionParameter[] getActionParameters(javax.servlet.http.HttpServletRequest request, List<String> listParameterNames)
public static ActionParameter[] getActionParameters(WorkflowDeploySiteContext workkflowContext)
public static fr.paris.lutece.util.ReferenceList getReferenceListServerType(Locale locale)
public static fr.paris.lutece.util.ReferenceList getReferenceListAction(List<IAction> listAction)
public static fr.paris.lutece.util.ReferenceList getSimpleReferenceList(List<String> list)
public static IVCSService getVCSService(String strKey)
strKey
- the repo type keypublic static AbstractVCSUser getVCSUser(Application application)
application
- the Applicationpublic static AbstractVCSUser getVCSUser(javax.servlet.http.HttpServletRequest request, Application application)
request
- the HttpServletRequestapplication
- the Applicationpublic static String deleteLocalRepository(WorkflowDeploySiteContext context, Application application)
context
- application
- Copyright © 2018 City of Paris. All rights reserved.