Class PomVersionDecision
java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PomVersionDecision
- All Implemented Interfaces:
Serializable
The decision about a version the platform POM references (lutece-core, parent POM) before the platform step : what the POM says, what is
expected, and what the user chose. The pipeline sets the target in the POM before the release ; a blocked decision forbids the launch.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe reasons the version referenced by the POM is refused. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the version referenced by the POM.Returns the expected version : released by the campaign, or the last one published.Returns the problem of the version referenced by the POM.Returns the version the pipeline must set in the POM before the release.booleanWhether the step is blocked by this version : a problem exists and no choice solves it.booleanWhether the expected version was released by the campaign (true) or is the last one published (false).booleanWhether keeping the version of the POM is an acceptable choice.booleanisKept()Whether the user chose to keep the version of the POM.voidsetBlocked(boolean bBlocked) Sets whether the step is blocked by this version.voidsetCurrent(String strCurrent) Sets the version referenced by the POM.voidsetExpected(String strExpected) Sets the expected version.voidsetExpectedReleased(boolean bExpectedReleased) Sets whether the expected version was released by the campaign.voidsetKeepAllowed(boolean bKeepAllowed) Sets whether keeping the version of the POM is acceptable.voidsetKept(boolean bKept) Sets whether the version of the POM is kept.voidsetProblem(PomVersionDecision.Problem problem) Sets the problem.voidSets the target version.
-
Constructor Details
-
PomVersionDecision
public PomVersionDecision()
-
-
Method Details
-
getCurrent
Returns the version referenced by the POM.- Returns:
- the current version
-
setCurrent
Sets the version referenced by the POM.- Parameters:
strCurrent- the current version
-
getExpected
Returns the expected version : released by the campaign, or the last one published.- Returns:
- the expected version, null when none is known
-
setExpected
Sets the expected version.- Parameters:
strExpected- the expected version
-
isExpectedReleased
public boolean isExpectedReleased()Whether the expected version was released by the campaign (true) or is the last one published (false).- Returns:
- true when released by the campaign
-
setExpectedReleased
public void setExpectedReleased(boolean bExpectedReleased) Sets whether the expected version was released by the campaign.- Parameters:
bExpectedReleased- true when released by the campaign
-
getProblem
Returns the problem of the version referenced by the POM.- Returns:
- the problem, null when the version is acceptable
-
setProblem
Sets the problem.- Parameters:
problem- the problem
-
isKeepAllowed
public boolean isKeepAllowed()Whether keeping the version of the POM is an acceptable choice.- Returns:
- true when the version may be kept
-
setKeepAllowed
public void setKeepAllowed(boolean bKeepAllowed) Sets whether keeping the version of the POM is acceptable.- Parameters:
bKeepAllowed- true when the version may be kept
-
getTarget
Returns the version the pipeline must set in the POM before the release.- Returns:
- the target version, null to leave the POM unchanged
-
setTarget
Sets the target version.- Parameters:
strTarget- the target version
-
isKept
public boolean isKept()Whether the user chose to keep the version of the POM.- Returns:
- true when kept
-
setKept
public void setKept(boolean bKept) Sets whether the version of the POM is kept.- Parameters:
bKept- true when kept
-
isBlocked
public boolean isBlocked()Whether the step is blocked by this version : a problem exists and no choice solves it.- Returns:
- true when blocked
-
setBlocked
public void setBlocked(boolean bBlocked) Sets whether the step is blocked by this version.- Parameters:
bBlocked- true when blocked
-