Salome HOME
ProjectSettings are now configured when the bean is created (without call to a struts...
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / StartAction.java
index 64a6ed507c4d6b8d7b40f86558982f53ebcf4e99..be27e295c660b845ffd8c5a9754c46eb1bebda7d 100644 (file)
@@ -2,12 +2,11 @@ package org.splat.simer;
 
 import java.util.Map;
 
-import org.splat.service.technical.ProjectSettingsService;
 import org.splat.som.ApplicationRights;
 import org.splat.wapp.Constants;
 
 /**
- * Start application action.
+ * Start application action. Initializes application settings.
  */
 public class StartAction extends Action {
        /**
@@ -15,11 +14,6 @@ public class StartAction extends Action {
         */
        private static final long serialVersionUID = 5875058140682652964L;
 
-       /**
-        * Injected project settings service.
-        */
-       private ProjectSettingsService _projectSettings;
-
        // ==============================================================================================================================
        // Action execution
        // ==============================================================================================================================
@@ -36,17 +30,11 @@ public class StartAction extends Action {
                LOG.info(new StringBuffer("Initializing ").append(wappurl)
                                .append("...").toString());
                try {
-                       ProjectSettingsService project = getProjectSettings();
                        ApplicationSettings wapp = getApplicationSettings();
                        wapp.setLocale(this.getLocale());
                        String root = ApplicationSettings.getApplicationRootPath();
                        LOG.debug("Application root: " + root);
 
-                       // Database configuration
-                       project.configure(root
-                                       + ApplicationSettings
-                                                       .getApplicationProperty("wapp.configuration"));
-
                        // Configure menus for the current user
                        wapp.configure();
 
@@ -71,28 +59,4 @@ public class StartAction extends Action {
                }
                return res;
        }
-
-       // ==============================================================================================================================
-       // Setter
-       // ==============================================================================================================================
-
-       /**
-        * Get project settings.
-        * 
-        * @return Project settings service
-        */
-       private ProjectSettingsService getProjectSettings() {
-               return _projectSettings;
-       }
-
-       /**
-        * Set project settings service.
-        * 
-        * @param projectSettingsService
-        *            project settings service
-        */
-       public void setProjectSettings(
-                       final ProjectSettingsService projectSettingsService) {
-               _projectSettings = projectSettingsService;
-       }
 }
\ No newline at end of file