Class PomVersionDecision

java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PomVersionDecision
All Implemented Interfaces:
Serializable

public class PomVersionDecision extends Object implements 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 Classes
    Modifier and Type
    Class
    Description
    static enum 
    The reasons the version referenced by the POM is refused.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns 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.
    boolean
    Whether the step is blocked by this version : a problem exists and no choice solves it.
    boolean
    Whether the expected version was released by the campaign (true) or is the last one published (false).
    boolean
    Whether keeping the version of the POM is an acceptable choice.
    boolean
    Whether the user chose to keep the version of the POM.
    void
    setBlocked(boolean bBlocked)
    Sets whether the step is blocked by this version.
    void
    setCurrent(String strCurrent)
    Sets the version referenced by the POM.
    void
    setExpected(String strExpected)
    Sets the expected version.
    void
    setExpectedReleased(boolean bExpectedReleased)
    Sets whether the expected version was released by the campaign.
    void
    setKeepAllowed(boolean bKeepAllowed)
    Sets whether keeping the version of the POM is acceptable.
    void
    setKept(boolean bKept)
    Sets whether the version of the POM is kept.
    void
    Sets the problem.
    void
    setTarget(String strTarget)
    Sets the target version.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PomVersionDecision

      public PomVersionDecision()
  • Method Details

    • getCurrent

      public String getCurrent()
      Returns the version referenced by the POM.
      Returns:
      the current version
    • setCurrent

      public void setCurrent(String strCurrent)
      Sets the version referenced by the POM.
      Parameters:
      strCurrent - the current version
    • getExpected

      public String getExpected()
      Returns the expected version : released by the campaign, or the last one published.
      Returns:
      the expected version, null when none is known
    • setExpected

      public void setExpected(String strExpected)
      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

      public PomVersionDecision.Problem getProblem()
      Returns the problem of the version referenced by the POM.
      Returns:
      the problem, null when the version is acceptable
    • setProblem

      public void setProblem(PomVersionDecision.Problem problem)
      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

      public String 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

      public void setTarget(String strTarget)
      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