import org.hibernate.Session;
import org.hibernate.Transaction;
import org.splat.som.ApplicationRights;
-import org.splat.som.Database;
-import org.splat.som.ProjectSettings;
+import org.splat.dal.dao.som.Database;
+import org.splat.service.technical.ProjectSettingsService;
public class StartAction extends Action implements ServletRequestAware {
private HttpServletRequest request = null;
+
+ private ProjectSettingsService _projectSettingsService;
+ private ApplicationSettings _ApplicationSettings;
private static final long serialVersionUID = 5875058140682652964L;
logger.info( new StringBuffer("Initializing ").append(wappurl).append("...").toString() );
try {
- ProjectSettings project = ProjectSettings.getMe();
- ApplicationSettings wapp = new ApplicationSettings(wappurl.toString(), this.getLocale());
+ ProjectSettingsService project = getProjectSettings();
+ ApplicationSettings wapp = getApplicationSettings().init(wappurl.toString(), this.getLocale());
String root = wapp.getApplicationRootPath();
// Database configuration
// ----------------------------------------------------------
this.request = request;
}
+ /**
+ * Get project settings.
+ * @return Project settings service
+ */
+ private ProjectSettingsService getProjectSettings() {
+ return _projectSettingsService;
+ }
+
+ /**
+ * Set project settings service.
+ * @param projectSettingsService project settings service
+ */
+ public void setProjectSettings(
+ ProjectSettingsService projectSettingsService) {
+ _projectSettingsService = projectSettingsService;
+ }
+
+ /**
+ * Get the applicationSettings.
+ * @return the applicationSettings
+ */
+ public ApplicationSettings getApplicationSettings() {
+ return _ApplicationSettings;
+ }
+
+ /**
+ * Set the applicationSettings.
+ * @param applicationSettings the applicationSettings to set
+ */
+ public void setApplicationSettings(ApplicationSettings applicationSettings) {
+ _ApplicationSettings = applicationSettings;
+ }
}
\ No newline at end of file