public class ReleaserUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
REGEX_ID
The Constant REGEX_ID.
|
| Constructor and Description |
|---|
ReleaserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addInfoError(CommandResult commandResult,
String strError,
Exception e)
Adds the info error.
|
static void |
addTechnicalError(CommandResult commandResult,
String strError)
Adds the technical error.
|
static void |
addTechnicalError(CommandResult commandResult,
String strError,
Exception e)
Adds the technical error.
|
static String |
cleanPWDInLog(String strLog) |
static int |
compareVersion(String strVersion1,
String strVersion2)
Compare version.
|
static int |
convertStringToInt(String strParameter)
convert a string to int.
|
static String |
getBranchReleaseFrom(WorkflowReleaseContext context) |
static String |
getComponentName(String strScmDeveloperConnection,
String strArtifactId)
Gets the component name.
|
static String |
getLastReleaseNextSnapshotVersionDataKey(String strArtifactId)
Gets the last release next snapshot version data key.
|
static String |
getLastReleaseVersionDataKey(String strArtifactId)
Gets the last release version data key.
|
static String |
getLocalPath(WorkflowReleaseContext context)
Gets the local path.
|
static String |
getLocalPomPath(WorkflowReleaseContext context)
Gets the local pom path.
|
static String |
getLocalSitePath(Site site)
Gets the local site path.
|
static String |
getLocalSitePomPath(Site site)
Gets the local site pom path.
|
static ReleaserUser |
getReleaserUser(javax.servlet.http.HttpServletRequest request,
Locale locale)
Gets the releaser user.
|
static String |
getSiteTagName(Site site)
Gets the site tag name.
|
static String |
getWorklowContextDataKey(String strArtifactId,
int nContextId)
Gets the worklow context data key.
|
static boolean |
isApplicationAccountEnable()
Checks if is application account enable.
|
static void |
logEndAction(WorkflowReleaseContext context,
String strActionName)
Log end action.
|
static void |
logStartAction(WorkflowReleaseContext context,
String strActionName)
Log start action.
|
static void |
populateReleaserUser(javax.servlet.http.HttpServletRequest request,
ReleaserUser user)
Populate releaser user.
|
static void |
setReleaserUser(javax.servlet.http.HttpServletRequest request,
ReleaserUser releaserUser)
Sets the releaser user.
|
static void |
startCommandResult(WorkflowReleaseContext context)
Start command result.
|
static void |
stopCommandResult(WorkflowReleaseContext context)
Stop command result.
|
public static final String REGEX_ID
public static String getWorklowContextDataKey(String strArtifactId, int nContextId)
strArtifactId - the str artifact idnContextId - the n context idpublic static String getLastReleaseVersionDataKey(String strArtifactId)
strArtifactId - the str artifact idpublic static String getLastReleaseNextSnapshotVersionDataKey(String strArtifactId)
strArtifactId - the str artifact idpublic static String getLocalPath(WorkflowReleaseContext context)
context - the contextpublic static String getLocalPomPath(WorkflowReleaseContext context)
context - the contextpublic static String getLocalSitePath(Site site)
site - the sitepublic static String getLocalSitePomPath(Site site)
site - the sitepublic static String getComponentName(String strScmDeveloperConnection, String strArtifactId)
strScmDeveloperConnection - the str scm developer connectionstrArtifactId - the str artifact idpublic static String getSiteTagName(Site site)
site - the sitepublic static void addInfoError(CommandResult commandResult, String strError, Exception e)
commandResult - the command resultstrError - the str errore - the epublic static void addTechnicalError(CommandResult commandResult, String strError, Exception e) throws fr.paris.lutece.portal.service.util.AppException
commandResult - the command resultstrError - the str errore - the efr.paris.lutece.portal.service.util.AppException - the app exceptionpublic static void addTechnicalError(CommandResult commandResult, String strError) throws fr.paris.lutece.portal.service.util.AppException
commandResult - the command resultstrError - the str errorfr.paris.lutece.portal.service.util.AppException - the app exceptionpublic static void startCommandResult(WorkflowReleaseContext context)
context - the contextpublic static void logStartAction(WorkflowReleaseContext context, String strActionName)
context - the contextstrActionName - the str action namepublic static void logEndAction(WorkflowReleaseContext context, String strActionName)
context - the contextstrActionName - the str action namepublic static void stopCommandResult(WorkflowReleaseContext context)
context - the contextpublic static int convertStringToInt(String strParameter)
strParameter - the string parameter to convertpublic static ReleaserUser getReleaserUser(javax.servlet.http.HttpServletRequest request, Locale locale)
request - the requestlocale - the localepublic static void populateReleaserUser(javax.servlet.http.HttpServletRequest request,
ReleaserUser user)
request - the requestuser - the userpublic static void setReleaserUser(javax.servlet.http.HttpServletRequest request,
ReleaserUser releaserUser)
request - the requestreleaserUser - the releaser userpublic static boolean isApplicationAccountEnable()
public static int compareVersion(String strVersion1, String strVersion2)
strVersion1 - the str version 1strVersion2 - the str version 2public static String getBranchReleaseFrom(WorkflowReleaseContext context)
Copyright © 2022 City of Paris. All rights reserved.