Esempio n. 1
0
  /**
   * @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)
  }
Esempio n. 2
0
 /** @see org.telscenter.sail.webapp.service.offering.RunService#retrieveById(java.lang.Long) */
 public Run retrieveById(Long runId) throws ObjectNotFoundException {
   return runDao.getById(runId);
 }
Esempio n. 3
0
 /**
  * @see
  *     org.telscenter.sail.webapp.service.offering.RunService#retrieveRunByRuncode(java.lang.String)
  */
 public Run retrieveRunByRuncode(String runcode) throws ObjectNotFoundException {
   return runDao.retrieveByRunCode(runcode);
 }
Esempio n. 4
0
 /** @see org.telscenter.sail.webapp.service.offering.RunService#getAllRunList() */
 @Transactional()
 public List<Run> getAllRunList() {
   return runDao.getList();
 }
Esempio n. 5
0
 /** @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);
 }