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