@Path(value="/migrations") @Consumes(value="application/json") @Produces(value="application/json") @ApplicationScoped public class MigrationResource extends Object
| Constructor and Description |
|---|
MigrationResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
delete(Long id) |
javax.ws.rs.core.Response |
findAll() |
javax.ws.rs.core.Response |
get(Long id) |
javax.ws.rs.core.Response |
getResults(Long id) |
javax.ws.rs.core.Response |
submit(javax.ws.rs.core.HttpHeaders headers,
MigrationDefinition definition) |
javax.ws.rs.core.Response |
update(javax.ws.rs.core.HttpHeaders headers,
Long id,
MigrationDefinition definition) |
@GET public javax.ws.rs.core.Response findAll()
@GET
@Path(value="/{id}")
public javax.ws.rs.core.Response get(@PathParam(value="id")
Long id)
throws MigrationNotFoundException
MigrationNotFoundException@GET
@Path(value="/{id}/results")
public javax.ws.rs.core.Response getResults(@PathParam(value="id")
Long id)
throws MigrationNotFoundException
MigrationNotFoundException@POST
public javax.ws.rs.core.Response submit(@Context
javax.ws.rs.core.HttpHeaders headers,
MigrationDefinition definition)
throws InvalidMigrationException
InvalidMigrationException@PUT
@Path(value="/{id}")
public javax.ws.rs.core.Response update(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id")
Long id,
MigrationDefinition definition)
throws MigrationNotFoundException,
InvalidMigrationException,
ReScheduleException
@DELETE
@Path(value="/{id}")
public javax.ws.rs.core.Response delete(@PathParam(value="id")
Long id)
throws MigrationNotFoundException
MigrationNotFoundExceptionCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.