/** * @see * org.telscenter.sail.webapp.service.offering.RunService#addRolesToSharedTeacher(java.lang.Long, * java.lang.Long, java.util.Set) */ public void addRolesToSharedTeacher(Long runId, Long userId, Set<String> roles) throws ObjectNotFoundException { // TODO Auto-generated method stub Run run = runDao.getById(runId); User user = userDao.getById(userId); // user.getUserDetails(). // aclService.addPermission(run, permission) }
/** @see org.telscenter.sail.webapp.service.offering.RunService#retrieveById(java.lang.Long) */ public Run retrieveById(Long runId) throws ObjectNotFoundException { return runDao.getById(runId); }
/** * @see * org.telscenter.sail.webapp.service.offering.RunService#retrieveRunByRuncode(java.lang.String) */ public Run retrieveRunByRuncode(String runcode) throws ObjectNotFoundException { return runDao.retrieveByRunCode(runcode); }
/** @see org.telscenter.sail.webapp.service.offering.RunService#getAllRunList() */ @Transactional() public List<Run> getAllRunList() { return runDao.getList(); }
/** @see net.sf.sail.webapp.service.offering.OfferingService#getRunListByOwner() */ @Transactional() public List<Run> getRunListBySharedOwner(User owner) { // for some reason, runDao.getList returns all runs, when it should // only return runs with the right privileges according to Acegi. return runDao.getRunListBySharedOwner(owner); }