Exemplo 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)
  }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo n.º 4
0
 /** @see org.telscenter.sail.webapp.service.offering.RunService#getAllRunList() */
 @Transactional()
 public List<Run> getAllRunList() {
   return runDao.getList();
 }
Exemplo 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);
 }