Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/11 12:39:33 (13 years ago)
Author:
ascheibe
Message:

#1233 added Appointment/Schedule ws and dao methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HiveService.cs

    r5602 r5633  
    420420
    421421    #endregion
     422
     423    #region Appointment Methods
     424
     425    // [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     426    public Guid AddAppointment(Appointment appointment) {
     427      using (trans.OpenTransaction()) {
     428        return dao.AddAppointment(appointment);
     429      }
     430    }
     431
     432    // [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     433    public void DeleteAppointment(Guid appointmentId) {
     434      using (trans.OpenTransaction()) {
     435        dao.DeleteAppointment(appointmentId);
     436      }
     437    }
     438
     439    // [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     440    public void UpdateAppointment(Appointment appointment) {
     441      using (trans.OpenTransaction()) {
     442        dao.UpdateAppointment(appointment);
     443      }
     444    }
     445
     446    // [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     447    public IEnumerable<Appointment> GetScheduleForResource(Guid resourceId) {
     448      using (trans.OpenTransaction()) {
     449        return dao.GetAppointments(x => x.ResourceId == resourceId);
     450      }
     451    }
     452    #endregion
    422453  }
    423454}
Note: See TracChangeset for help on using the changeset viewer.