java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformRelease
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource, Serializable

public class PlatformRelease extends Object implements fr.paris.lutece.portal.service.rbac.RBACResource, Serializable
A platform release campaign : the release of the Lutece platform for one line (7 or 8) and one release type, driven step by step (global-pom, site-pom, core, platform plugins, platform starters).
See Also:
  • Field Details

    • RESOURCE_TYPE

      public static final String RESOURCE_TYPE
      The RBAC resource type.
      See Also:
    • PERMISSION_MANAGE

      public static final String PERMISSION_MANAGE
      The RBAC permission : manage the campaigns (create, prepare and launch steps, export).
      See Also:
  • Constructor Details

    • PlatformRelease

      public PlatformRelease()
  • Method Details

    • getId

      public int getId()
      Returns the id.
      Returns:
      the id
    • setId

      public void setId(int nId)
      Sets the id.
      Parameters:
      nId - the id
    • getName

      public String getName()
      Returns the name.
      Returns:
      the name
    • setName

      public void setName(String strName)
      Sets the name.
      Parameters:
      strName - the name
    • getReleaseType

      public PlatformReleaseType getReleaseType()
      Returns the release type.
      Returns:
      the release type
    • setReleaseType

      public void setReleaseType(PlatformReleaseType releaseType)
      Sets the release type.
      Parameters:
      releaseType - the release type
    • getCoreMajor

      public int getCoreMajor()
      Returns the core version.
      Returns:
      the major of lutece-core (7 or 8)
    • setCoreMajor

      public void setCoreMajor(int nCoreMajor)
      Sets the core version.
      Parameters:
      nCoreMajor - the major of lutece-core (7 or 8)
    • getCurrentStep

      public int getCurrentStep()
      Returns the current step number.
      Returns:
      the current step number
    • setCurrentStep

      public void setCurrentStep(int nCurrentStep)
      Sets the current step number.
      Parameters:
      nCurrentStep - the current step number
    • getStatus

      public PlatformReleaseStatus getStatus()
      Returns the status.
      Returns:
      the status
    • setStatus

      public void setStatus(PlatformReleaseStatus status)
      Sets the status.
      Parameters:
      status - the status
    • isExportVerified

      public boolean isExportVerified()
      Tells whether the export of the plan has been verified.
      Returns:
      true if verified
    • setExportVerified

      public void setExportVerified(boolean bExportVerified)
      Sets whether the export of the plan has been verified.
      Parameters:
      bExportVerified - true if verified
    • getUserName

      public String getUserName()
      Returns the name of the user who created the campaign.
      Returns:
      the user name
    • setUserName

      public void setUserName(String strUserName)
      Sets the name of the user who created the campaign.
      Parameters:
      strUserName - the user name
    • getDateCreation

      public Timestamp getDateCreation()
      Returns the creation date.
      Returns:
      the creation date
    • setDateCreation

      public void setDateCreation(Timestamp dateCreation)
      Sets the creation date.
      Parameters:
      dateCreation - the creation date
    • getDateUpdate

      public Timestamp getDateUpdate()
      Returns the last update date.
      Returns:
      the last update date
    • setDateUpdate

      public void setDateUpdate(Timestamp dateUpdate)
      Sets the last update date.
      Parameters:
      dateUpdate - the last update date
    • getSteps

      public List<PlatformReleaseStep> getSteps()
      Returns the steps.
      Returns:
      the steps, ordered by step number (empty until loaded)
    • setSteps

      public void setSteps(List<PlatformReleaseStep> listSteps)
      Sets the steps.
      Parameters:
      listSteps - the steps
    • getPrecheckStep

      public PlatformReleaseStep getPrecheckStep()
      Returns the step 0 (test of the SNAPSHOT of the campaign), loaded with the steps but kept out of them.
      Returns:
      the step 0, null until loaded or when never launched
    • setPrecheckStep

      public void setPrecheckStep(PlatformReleaseStep precheckStep)
      Sets the step 0.
      Parameters:
      precheckStep - the step 0
    • getResourceTypeCode

      public String getResourceTypeCode()
      Specified by:
      getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
    • getResourceId

      public String getResourceId()
      Specified by:
      getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource