@Path(value="schemas/{kind}/{type}")
public interface SchemaService
extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractSchemaTO> |
create(AttributableType attrType,
SchemaType schemaType,
T schemaTO)
Creates a new schema.
|
void |
delete(AttributableType attrType,
SchemaType schemaType,
String schemaName)
Deletes the schema matching the given kind, type and name.
|
<T extends AbstractSchemaTO> |
list(AttributableType attrType,
SchemaType schemaType)
Returns a list of schemas with matching kind and type.
|
<T extends AbstractSchemaTO> |
read(AttributableType attrType,
SchemaType schemaType,
String schemaName)
Returns schema matching the given kind, type and name.
|
<T extends AbstractSchemaTO> |
update(AttributableType attrType,
SchemaType schemaType,
String schemaName,
T schemaTO)
Updates the schema matching the given kind, type and name.
|
@GET
@Path(value="{name}")
@Produces(value={"application/xml","application/json"})
<T extends AbstractSchemaTO> T read(@NotNull@PathParam(value="kind")
AttributableType attrType,
@NotNull@PathParam(value="type")
SchemaType schemaType,
@NotNull@PathParam(value="name")
String schemaName)
T - actual SchemaTOattrType - kind for schemas to be readschemaType - type for schemas to be readschemaName - name of schema to be read@GET
@Produces(value={"application/xml","application/json"})
<T extends AbstractSchemaTO> List<T> list(@NotNull@PathParam(value="kind")
AttributableType attrType,
@NotNull@PathParam(value="type")
SchemaType schemaType)
T - actual SchemaTOattrType - kind for schemas to be listedschemaType - type for schemas to be listed@POST
@Consumes(value={"application/xml","application/json"})
<T extends AbstractSchemaTO> javax.ws.rs.core.Response create(@NotNull@PathParam(value="kind")
AttributableType attrType,
@NotNull@PathParam(value="type")
SchemaType schemaType,
@NotNull
T schemaTO)
T - actual SchemaTOattrType - kind for schema to be createdschemaType - type for schema to be createdschemaTO - schema to be created@PUT
@Path(value="{name}")
@Consumes(value={"application/xml","application/json"})
<T extends AbstractSchemaTO> void update(@NotNull@PathParam(value="kind")
AttributableType attrType,
@NotNull@PathParam(value="type")
SchemaType schemaType,
@NotNull@PathParam(value="name")
String schemaName,
@NotNull
T schemaTO)
T - actual SchemaTOattrType - kind for schemas to be updatedschemaType - type for schemas to be updatedschemaName - name of schema to be updatedschemaTO - updated schema to be stored@DELETE
@Path(value="{name}")
void delete(@NotNull@PathParam(value="kind")
AttributableType attrType,
@NotNull@PathParam(value="type")
SchemaType schemaType,
@NotNull@PathParam(value="name")
String schemaName)
attrType - kind for schema to be deletedschemaType - type for schema to be deletedschemaName - name of schema to be deletedCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.