use of com.cas.sim.tis.services.UserService in project TeachingInSimulation by ScOrPiOzzy.
the class RMITest method testGetObject.
@Test
public void testGetObject() throws Exception {
UserService userService = (UserService) userServiceFactory.getObject();
Assert.assertNotNull(userService);
userService.findAll().forEach(System.out::println);
ResourceService resourceService = (ResourceService) resourceServiceFactory.getObject();
Assert.assertNotNull(resourceService);
resourceService.findAll().forEach(System.out::println);
ElecCompService elecCompService = (ElecCompService) elecCompServiceFactory.getObject();
Assert.assertNotNull(elecCompService);
elecCompService.findAll().forEach(System.out::println);
}
use of com.cas.sim.tis.services.UserService in project TeachingInSimulation by ScOrPiOzzy.
the class UserAction method deleteUser.
public void deleteUser(int id) {
UserService service = getService();
User user = service.findById(id);
if (user != null) {
user.setDel(true);
modifyUser(user);
}
}
Aggregations