package net.sourceforge.fenixedu.applicationTier.Servico.resourceAllocationManager; import pt.ist.fenixWebFramework.services.Service; import pt.ist.fenixWebFramework.security.accessControl.Checked; import net.sourceforge.fenixedu.applicationTier.FenixService; import net.sourceforge.fenixedu.applicationTier.Servico.exceptions.ExistingServiceException; import net.sourceforge.fenixedu.dataTransferObject.InfoRoomEditor; import net.sourceforge.fenixedu.domain.space.AllocatableSpace; public class EditarSala extends FenixService { @Checked("RolePredicates.RESOURCE_ALLOCATION_MANAGER_PREDICATE") @Service public static void run(InfoRoomEditor salaNova) throws ExistingServiceException { if (salaNova != null) { AllocatableSpace room = salaNova.getRoom(); if (room != null) { room.editCapacities(salaNova.getCapacidadeNormal(), salaNova.getCapacidadeExame()); } } } }