class ScreenService extends BasicService implements OwnerAPISupport<Screen> {

	@DELETE
	@Path("/screens/{screenId}")
	public Response deleteScreen(@PathParam("screenId") long screenId) {
		Screen existingScreen = getExistingScreen(screenId, true);

		for (Owner owner : existingScreen.getOwners()) {
			new OwnerDAO().deleteById(owner.getId());
		}

		return new ScreenDAO().deleteById(screenId) ? RESPONSE_OK : RESPONSE_BAD;
	}

}