Interface CurrentInstallState

All Superinterfaces:
Component, InitializableComponent
All Known Implementing Classes:
CurrentInstallStateImpl

public interface CurrentInstallState
extends InitializableComponent
Tells the installers about the current install state.
  • Field Details

  • Method Details

    • getInstalledVersion

      @Nullable String getInstalledVersion() throws org.apache.tools.ant.BuildException
      What is the installer version.
      Returns:
      "3" for a V3 install, null for a new install or the value we wrote during last install.
      Throws:
      org.apache.tools.ant.BuildException - if we find an inconsistency
    • isIdPPropertiesPresent

      boolean isIdPPropertiesPresent()
      Was idp.properties present in the target file when we started the install?
      Returns:
      if it was.
    • isLDAPPropertiesPresent

      boolean isLDAPPropertiesPresent()
      Was ldapp.properties present in the target file when we started the install?
      Returns:
      if it was.
    • getCurrentlyInstalledProperties

      @Nullable Properties getCurrentlyInstalledProperties()
      Get the properties associated with the current configuration. This comes idp.properties and anything it points to via "idp.additionalProperties".
      Returns:
      the properties, or null if this is a new install.
    • getPathsToBeDeleted

      @Nonnull List<Path> getPathsToBeDeleted()
      Return the list of paths of files which were not there prior to the install but which might be created by the installed but to no purpose.
      Returns:
      the list of paths.
    • isSystemPresent

      default boolean isSystemPresent()
      If this is an upgrade were there files in %{idp.home}system? If so then we need to copy the files in. Otherwise not. For new installs this is false
      Returns:
      whether the old install has %{idp.home}\system
    • getEnabledModules

      @Nonnull default Collection<String> getEnabledModules()
      Which modules (by ID) are enabled for this release.
      Returns:
      those modules enabled.