@Path(value="connectors") public interface ConnectorService extends JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
Modifier and Type | Method and Description |
---|---|
List<ConnIdObjectClassTO> |
buildObjectClassInfo(@NotNull ConnInstanceTO connInstanceTO,
boolean includeSpecial)
Builds the list of ConnId object classes information for the connector bundle matching the given connector
instance key, with the provided configuration.
|
void |
check(@NotNull ConnInstanceTO connInstanceTO)
Checks whether the connection to resource could be established.
|
javax.ws.rs.core.Response |
create(@NotNull ConnInstanceTO connInstanceTO)
Creates a new connector instance.
|
void |
delete(@NotNull String key)
Deletes the connector instance matching the provided key.
|
List<ConnBundleTO> |
getBundles(String lang)
Returns available connector bundles with property keys in selected language.
|
List<ConnInstanceTO> |
list(String lang)
Returns a list of all connector instances with property keys in the matching language.
|
ConnInstanceTO |
read(@NotNull String key,
String lang)
Returns connector instance with matching key.
|
ConnInstanceTO |
readByResource(@NotNull String resourceName,
String lang)
Returns connector instance for matching resource.
|
void |
reload()
Reload all connector bundles and instances.
|
void |
update(@NotNull ConnInstanceTO connInstanceTO)
Updates the connector instance matching the provided key.
|
@GET @Path(value="bundles") @Produces(value={"application/json","application/yaml","application/xml"}) List<ConnBundleTO> getBundles(@QueryParam(value="lang") String lang)
lang
- language to select property keys; default language is English@POST @Path(value="{key}/supportedObjectClasses") @Produces(value={"application/json","application/yaml","application/xml"}) @Consumes(value={"application/json","application/yaml","application/xml"}) List<ConnIdObjectClassTO> buildObjectClassInfo(@NotNull @NotNull ConnInstanceTO connInstanceTO, @QueryParam(value="includeSpecial") @DefaultValue(value="false") boolean includeSpecial)
connInstanceTO
- connector instance object providing configuration propertiesincludeSpecial
- if set to true, special schema names (like '__PASSWORD__') will be included;
default is false@GET @Path(value="{key}") @Produces(value={"application/json","application/yaml","application/xml"}) ConnInstanceTO read(@NotNull @PathParam(value="key") @NotNull String key, @QueryParam(value="lang") String lang)
key
- connector instance key to be readlang
- language to select property keys, null for default (English).
An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length.@GET @Path(value="byResource/{resourceName}") @Produces(value={"application/json","application/yaml","application/xml"}) ConnInstanceTO readByResource(@NotNull @PathParam(value="resourceName") @NotNull String resourceName, @QueryParam(value="lang") String lang)
resourceName
- resource name to be used for connector lookuplang
- language to select property keys, null for default (English).
An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length.@GET @Produces(value={"application/json","application/yaml","application/xml"}) List<ConnInstanceTO> list(@QueryParam(value="lang") String lang)
lang
- language to select property keys, null for default (English).
An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length.@POST @Consumes(value={"application/json","application/yaml","application/xml"}) @Produces(value={"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response create(@NotNull @NotNull ConnInstanceTO connInstanceTO)
connInstanceTO
- connector instance 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 @NotNull ConnInstanceTO connInstanceTO)
connInstanceTO
- connector instance to be stored@DELETE @Path(value="{key}") @Produces(value={"application/json","application/yaml","application/xml"}) void delete(@NotNull @PathParam(value="key") @NotNull String key)
key
- connector instance key to be deleted@POST @Path(value="check") @Consumes(value={"application/json","application/yaml","application/xml"}) @Produces(value={"application/json","application/yaml","application/xml"}) void check(@NotNull @NotNull ConnInstanceTO connInstanceTO)
connInstanceTO
- connector instance to be used for connection check@POST @Path(value="reload") @Produces(value={"application/json","application/yaml","application/xml"}) void reload()
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.