import org.hibernate.Transaction;
import org.splat.kernel.InvalidPropertyException;
import org.splat.dal.bo.kernel.User;
-import org.splat.kernel.UserDirectory;
import org.splat.dal.dao.som.Database;
import org.splat.dal.bo.som.ProgressState;
import org.splat.service.SearchService;
import org.splat.service.SimulationContextService;
+import org.splat.service.UserService;
import org.splat.service.technical.ProjectSettingsService;
import org.splat.dal.bo.som.SimulationContext;
import org.splat.dal.bo.som.SimulationContextType;
* Injected simulation context service.
*/
private SimulationContextService _simulationContextService;
+ /**
+ * Injected user service.
+ */
+ private UserService _userService;
/**
* Serial version ID.
public String doInitialize () {
// -----------------------------
- Session connex = Database.getSession();
+ Session connex = Database.getCurSession();
Transaction transax = connex.beginTransaction();
try {
loadFilter();
if (context.size() > 0) sprop.setSimulationContexts(context);
int index = Integer.valueOf(author);
if (index > 0) {
- User him = UserDirectory.selectUser(index);
+ User him = getUserService().selectUser(index);
sprop.setManager(him);
}
// Set of the visibility
SimulationContextService simulationContextService) {
_simulationContextService = simulationContextService;
}
+
+ /**
+ * Get the userService.
+ * @return the userService
+ */
+ public UserService getUserService() {
+ return _userService;
+ }
+
+ /**
+ * Set the userService.
+ * @param userService the userService to set
+ */
+ public void setUserService(UserService userService) {
+ _userService = userService;
+ }
}
\ No newline at end of file