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 {
/**
*/
private static final long serialVersionUID = 5875058140682652964L;
- /**
- * Injected project settings service.
- */
- private ProjectSettingsService _projectSettings;
-
// ==============================================================================================================================
// Action execution
// ==============================================================================================================================
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();
}
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