Class GrouperDdlEngine

java.lang.Object
edu.internet2.middleware.grouper.ddl.GrouperDdlEngine

public class GrouperDdlEngine extends Object
runs ddl updates
  • Field Details

    • everythingRightVersion

      public static boolean everythingRightVersion
      if everything is the right version
    • installedGrouperFromScratchWithRunScript

      public static boolean installedGrouperFromScratchWithRunScript
  • Constructor Details

    • GrouperDdlEngine

      public GrouperDdlEngine()
  • Method Details

    • assignCallFromCommandLine

      public GrouperDdlEngine assignCallFromCommandLine(boolean callFromCommandLine1)
    • assignFromUnitTest

      public GrouperDdlEngine assignFromUnitTest(boolean fromUnitTest1)
      true if just testing this method
    • assignCompareFromDbVersion

      public GrouperDdlEngine assignCompareFromDbVersion(boolean theCompareFromDbVersion1)
    • assignDropBeforeCreate

      public GrouperDdlEngine assignDropBeforeCreate(boolean theDropBeforeCreate)
    • assignWriteAndRunScript

      public GrouperDdlEngine assignWriteAndRunScript(boolean theWriteAndRunScript)
    • assignDropOnly

      public GrouperDdlEngine assignDropOnly(boolean dropOnly1)
      just drop stuff, e.g. for unit test
    • assignInstallDefaultGrouperData

      public GrouperDdlEngine assignInstallDefaultGrouperData(boolean installDefaultGrouperData1)
      if registry install should be called afterwards
    • assignMaxVersions

      public GrouperDdlEngine assignMaxVersions(Map<String,DdlVersionable> maxVersions1)
      if unit testing, and not going to max, then associate object name with max version
    • assignPromptUser

      public GrouperDdlEngine assignPromptUser(boolean promptUser1)
      promptUser to see if they want to do this... if they havent been prompted already and if not configured not to prompt
    • assignFromStartup

      public GrouperDdlEngine assignFromStartup(boolean fromStartup1)
      if being called when grouper starts up to check DDL
      Parameters:
      fromStartup1 -
      Returns:
      this for chaining
    • assignUseDdlUtils

      public GrouperDdlEngine assignUseDdlUtils(boolean theUseDdlUtils)
    • assignDeepCheck

      public GrouperDdlEngine assignDeepCheck(boolean theDeepCheck)
    • addDllWorkerTableIfNeeded

      public static void addDllWorkerTableIfNeeded(Boolean runScriptOverride)
    • updateDdlIfNeededWithStaticSql

      public boolean updateDdlIfNeededWithStaticSql(Boolean runScriptOverride)
      return if up to date
      Returns:
      true if up to date
    • runUpgradeTasks

      public void runUpgradeTasks()
    • runDdl

      public boolean runDdl()
      Returns:
      true if up to date, false if needs to run a script
    • getGrouperDdlCompareResult

      public GrouperDdlCompareResult getGrouperDdlCompareResult()