@Path(value="schemas/{type}")
public interface SchemaService
extends JAXRSService
PARAM_ANYTYPE_KIND, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_RESOURCE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(SchemaType type,
AbstractSchemaTO schemaTO)
Creates a new schema.
|
void |
delete(SchemaType type,
String key)
Deletes the schema matching the given type and key.
|
<T extends AbstractSchemaTO> |
list(SchemaQuery query)
Returns a list of schemas matching the given query.
|
<T extends AbstractSchemaTO> |
read(SchemaType type,
String key)
Returns schema matching the given type and key.
|
void |
update(SchemaType type,
AbstractSchemaTO schemaTO)
Updates the schema matching the given type and key.
|
@GET
@Path(value="{key}")
@Produces(value={"application/json","application/xml"})
<T extends AbstractSchemaTO> T read(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull @PathParam(value="key")
String key)
T - actual SchemaTOtype - type for schemas to be readkey - name of schema to be read@GET
@Produces(value={"application/json","application/xml"})
<T extends AbstractSchemaTO> List<T> list(@BeanParam
SchemaQuery query)
T - actual SchemaTOquery - query conditions@POST
@Consumes(value={"application/json","application/xml"})
javax.ws.rs.core.Response create(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull
AbstractSchemaTO schemaTO)
type - type for schema to be createdschemaTO - schema to be created@PUT
@Path(value="{key}")
@Consumes(value={"application/json","application/xml"})
void update(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull
AbstractSchemaTO schemaTO)
type - type for schemas to be updatedschemaTO - updated schema to be stored@DELETE
@Path(value="{key}")
void delete(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull @PathParam(value="key")
String key)
type - type for schema to be deletedkey - name of schema to be deletedCopyright © 2010–2016 The Apache Software Foundation. All rights reserved.