Class CmsAutoSetup


  • public class CmsAutoSetup
    extends java.lang.Object
    A bean to perform a OpenCms setup automatically.

    Since:
    9.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initSetupBean()
      Initializes the setup bean with the auto setup properties.
      static void main​(java.lang.String[] args)
      Main program entry point when started via the command line.
      void run()
      Performs the setup.
      void setupDB()
      Creates DB and tables when necessary.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Main program entry point when started via the command line.

        Parameters:
        args - parameters passed to the application via the command line
      • initSetupBean

        public void initSetupBean()
        Initializes the setup bean with the auto setup properties.

      • run

        public void run()
                 throws java.lang.Exception
        Performs the setup.

        Throws:
        java.lang.Exception - in case the setup fails
      • setupDB

        public void setupDB()
                     throws java.lang.Exception
        Creates DB and tables when necessary.

        Throws:
        java.lang.Exception - in case creating DB or tables fails