Class DalInitializingTask

  • All Implemented Interfaces:
    Direct Known Subclasses:
    ActivationTask, ApplyModuleTask, CheckLocalConsistency, ExtractModuleTask, SystemValidationTask

    public class DalInitializingTask
    This class can be sub-classed by java ant tasks which need to make use of the Data Access Layer. This class reads the and initializes the Dal. The user context is set using the userid. Then the doExecute method is called. This method should be implemented by the subclass.
    • Field Detail

      • propertiesFile

        protected String propertiesFile
      • userId

        protected String userId
    • Constructor Detail

      • DalInitializingTask

        public DalInitializingTask()
    • Method Detail

      • getPropertiesFile

        public String getPropertiesFile()
      • setPropertiesFile

        public void setPropertiesFile​(String propertiesFile)
        Sets the path to the file.
        propertiesFile - the full filesystem path to the file
      • getUserId

        public String getUserId()
        The user used to run the task.
        the id of the user
      • setUserId

        public void setUserId​(String userId)
        Sets the user which will be used to run the task.
        userId - the id of the user which will be used to run the task
      • execute

        public void execute()
        Performs Dal layer initialization and then calls the doExecute method.
        execute in class
      • doExecute

        protected void doExecute()
        The method which should be implemented by the subclass
      • getProviderConfigDirectory

        public String getProviderConfigDirectory()
      • setProviderConfigDirectory

        public void setProviderConfigDirectory​(String providerConfigDirectory)
      • isReInitializeModel

        public boolean isReInitializeModel()
      • setReInitializeModel

        public void setReInitializeModel​(boolean reInitializeModel)
      • isAdminMode

        public boolean isAdminMode()
      • setAdminMode

        public void setAdminMode​(boolean adminMode)