@Path(value="resources") public interface ResourceService 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 |
|---|---|
BulkActionResult |
bulkDeassociation(ResourceDeassociationPatch patch)
De-associate any objects from the given resource.
|
void |
check(ResourceTO resourceTO)
Checks whether the connection to resource could be established.
|
javax.ws.rs.core.Response |
create(ResourceTO resourceTO)
Creates a new resource.
|
void |
delete(String key)
Deletes the resource matching the given name.
|
List<ResourceTO> |
list()
Returns a list of all resources.
|
PagedConnObjectTOResult |
listConnObjects(String key,
String anyTypeKey,
ConnObjectTOListQuery listQuery)
Returns a paged list of connector objects from external resource, for the given type, matching
page/size conditions.
|
ResourceTO |
read(String key)
Returns the resource with matching name.
|
ConnObjectTO |
readConnObject(String key,
String anyTypeKey,
String anyKey)
Returns connector object from the external resource, for the given type and key.
|
void |
removeSyncToken(String key,
String anyTypeKey)
Removes the sync token value associated to the given any type from the given resource.
|
void |
setLatestSyncToken(String key,
String anyTypeKey)
Queries the connector underlying the given resource for the latest sync token value associated to the given any
type and stores the value internally, for later usage.
|
void |
update(ResourceTO resourceTO)
Updates the resource matching the given name.
|
@GET
@Path(value="{key}/{anyTypeKey}/{anyKey}")
@Produces(value={"application/json","application/yaml","application/xml"})
ConnObjectTO readConnObject(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="anyTypeKey")
String anyTypeKey,
@NotNull @PathParam(value="anyKey")
String anyKey)
key - name of resource to read connector object fromanyTypeKey - any object typeanyKey - any object key@GET
@Path(value="{key}/{anyTypeKey}")
@Produces(value={"application/json","application/yaml","application/xml"})
PagedConnObjectTOResult listConnObjects(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="anyTypeKey")
String anyTypeKey,
@BeanParam
ConnObjectTOListQuery listQuery)
key - name of resource to read connector object fromanyTypeKey - any object typelistQuery - query conditions@GET
@Path(value="{key}")
@Produces(value={"application/json","application/yaml","application/xml"})
ResourceTO read(@NotNull @PathParam(value="key")
String key)
key - Name of resource to be read@GET
@Produces(value={"application/json","application/yaml","application/xml"})
List<ResourceTO> list()
@POST
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
javax.ws.rs.core.Response create(@NotNull
ResourceTO resourceTO)
resourceTO - Resource to be created@PUT
@Path(value="{key}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
void update(@NotNull
ResourceTO resourceTO)
resourceTO - resource to be stored@POST
@Path(value="{key}/{anyTypeKey}")
@Produces(value={"application/json","application/yaml","application/xml"})
void setLatestSyncToken(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="anyTypeKey")
String anyTypeKey)
key - resourceanyTypeKey - any type@DELETE
@Path(value="{key}/{anyTypeKey}")
@Produces(value={"application/json","application/yaml","application/xml"})
void removeSyncToken(@NotNull @PathParam(value="key")
String key,
@NotNull @PathParam(value="anyTypeKey")
String anyTypeKey)
key - resourceanyTypeKey - any type@DELETE
@Path(value="{key}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
void delete(@NotNull @PathParam(value="key")
String key)
key - name of resource to be deleted@POST
@Path(value="check")
@Produces(value={"application/json","application/yaml","application/xml"})
@Consumes(value={"application/json","application/yaml","application/xml"})
void check(@NotNull
ResourceTO resourceTO)
resourceTO - resource to be checked@POST
@Path(value="{key}/bulkDeassociation/{anyTypeKey}/{action}")
@Produces(value={"application/json","application/yaml","application/xml"})
@Consumes(value={"application/json","application/yaml","application/xml"})
BulkActionResult bulkDeassociation(@NotNull
ResourceDeassociationPatch patch)
patch - any objects to be used for propagation-related operationsCopyright © 2010–2020 The Apache Software Foundation. All rights reserved.