Class CmsGitConfiguration

java.lang.Object
org.opencms.ui.apps.git.CmsGitConfiguration

public class CmsGitConfiguration extends Object
Access to a single git configuration file.
  • Method Details

    • getConfigurationFile

      Returns the wrapped configuration file.
      Returns:
      the wrapped configuration file.
    • getConfiguredModules

      Returns the modules specified in the config file.
      Returns:
      the modules specified in the config file.
    • getDefaultAutoCommit

      public boolean getDefaultAutoCommit()
      Returns a flag, indicating if automatic commit is enabled by default.
      Returns:
      a flag, indicating if automatic commit is enabled by default.
    • getDefaultAutoPullAfter

      public boolean getDefaultAutoPullAfter()
      Returns a flag, indicating if automatic pulling after the commit is enabled by default.
      Returns:
      a flag, indicating if automatic pulling after the commit is enabled by default.
    • getDefaultAutoPullBefore

      public boolean getDefaultAutoPullBefore()
      Returns a flag, indicating if automatic pulling first is enabled by default.
      Returns:
      a flag, indicating if automatic pulling first is enabled by default.
    • getDefaultAutoPush

      public boolean getDefaultAutoPush()
      Returns a flag, indicating if automatic pushing is enabled by default.
      Returns:
      a flag, indicating if automatic pushing is enabled by default.
    • getDefaultCommitMessage

      Returns the default commit message.
      Returns:
      the default commit message.
    • getDefaultCopyAndUnzip

      public boolean getDefaultCopyAndUnzip()
      Returns the default copy-and-unzip flag.
      Returns:
      the default copy-and-unzip flag.
    • getDefaultExcludeLibs

      public boolean getDefaultExcludeLibs()
      Returns the default exclude libs flag.
      Returns:
      the default exclude libs flag.
    • getDefaultGitUserEmail

      Returns the configured default git user email, or null if the email is by default not adjusted at all.
      Returns:
      the configured default git user email, or null if the email is by default not adjusted at all.
    • getDefaultGitUserName

      Returns the configured default git user name, or null if the name is by default not adjusted at all.
      Returns:
      the configured default git user name, or null if the name is by default not adjusted at all.
    • getDefaultIngoreUnclean

      public boolean getDefaultIngoreUnclean()
      Returns the default ignore-unclean flag.
      Returns:
      the default ignore-unclean flag.
    • getExportMode

      public int getExportMode()
      Returns the export mode.
      Returns:
      the export mode.
    • getFilePath

      public String getFilePath()
      Returns the path to the config file that is wrapped.
      Returns:
      the path to the config file that is wrapped.
    • getModuleExportPath

      Returns the RFS path where module .zip-files are read before check in.
      Returns:
      the RFS path where module .zip-files are read before check in.
    • getModulesPath

      Returns the path to where modules are stored in the repository.
      Returns:
      the path to where modules are stored in the repository.
    • getName

      public String getName()
      Returns the name of the configuration.
      Returns:
      the name of the configuration.
    • getRepositoryPath

      Returns the path to the home directory of the repository where the modules are checked in.
      Returns:
      the path to the home directory of the repository where the modules are checked in.
    • getResourcesSubFolder

      Returns the subfolder where module resources are placed inside the modules main folder in the repository.
      Returns:
      the subfolder where module resources are placed inside the modules main folder in the repository.
    • isValid

      public boolean isValid()
      Returns a flag, indicating if the config file could be read.
      Returns:
      a flag, indicating if the config file could be read.