public interface AnyService<TO extends AnyTO> 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 |
associate(AssociationPatch patch)
Executes resource-related operations on given any object.
|
javax.ws.rs.core.Response |
bulk(BulkAction bulkAction)
Executes the provided bulk action.
|
javax.ws.rs.core.Response |
deassociate(DeassociationPatch patch)
Executes resource-related operations on given any object.
|
javax.ws.rs.core.Response |
delete(String key)
Deletes any object matching provided key.
|
void |
delete(String key,
SchemaType schemaType,
String schema)
Deletes the attribute, owned by the given any object, for the given schema type and schema.
|
TO |
read(String key)
Reads the any object matching the provided key.
|
Set<AttrTO> |
read(String key,
SchemaType schemaType)
Reads the list of attributes owned by the given any object for the given schema type.
|
AttrTO |
read(String key,
SchemaType schemaType,
String schema)
Reads the attribute, owned by the given any object, for the given schema type and schema.
|
PagedResult<TO> |
search(AnyQuery anyQuery)
Returns a paged list of any objects matching the given query.
|
javax.ws.rs.core.Response |
update(String key,
SchemaType schemaType,
AttrTO attrTO)
Adds or replaces the attribute, owned by the given any object, for the given schema type and schema.
|
@GET
@Path(value="{key}/{schemaType}")
@Produces(value={"application/json","application/xml"})
Set<AttrTO> read(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="schemaType")
SchemaType schemaType)
key - any object key or nameschemaType - schema type@GET
@Path(value="{key}/{schemaType}/{schema}")
@Produces(value={"application/json","application/xml"})
AttrTO read(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="schemaType")
SchemaType schemaType,
@NotNull @PathParam(value="schema")
String schema)
key - any object key or nameschemaType - schema typeschema - schema@GET
@Path(value="{key}")
@Produces(value={"application/json","application/xml"})
TO read(@NotNull @PathParam(value="key")
String key)
key - if value looks like a UUID then it is interpreted as key, otherwise as a (user)name@GET
@Produces(value={"application/json","application/xml"})
PagedResult<TO> search(@BeanParam
AnyQuery anyQuery)
anyQuery - query conditions@PUT
@Path(value="{key}/{schemaType}/{schema}")
@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
javax.ws.rs.core.Response update(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="schemaType")
SchemaType schemaType,
@NotNull
AttrTO attrTO)
key - any object key or nameschemaType - schema typeattrTO - attribute@DELETE
@Path(value="{key}/{schemaType}/{schema}")
@Produces(value={"application/json","application/xml"})
void delete(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="schemaType")
SchemaType schemaType,
@NotNull @PathParam(value="schema")
String schema)
key - any object key or nameschemaType - schema typeschema - schema@DELETE
@Path(value="{key}")
@Produces(value={"application/json","application/xml"})
javax.ws.rs.core.Response delete(@NotNull @PathParam(value="key")
String key)
key - any object key or name@POST
@Path(value="{key}/deassociate/{action}")
@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
javax.ws.rs.core.Response deassociate(@NotNull
DeassociationPatch patch)
patch - external resources to be used for propagation-related operations@POST
@Path(value="{key}/associate/{action}")
@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
javax.ws.rs.core.Response associate(@NotNull
AssociationPatch patch)
patch - external resources to be used for propagation-related operations@POST
@Path(value="bulk")
@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
javax.ws.rs.core.Response bulk(@NotNull
BulkAction bulkAction)
bulkAction - list of any object ids against which the bulk action will be performed.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.