Class ConnectorServiceImpl
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.ConnectorServiceImpl
- All Implemented Interfaces:
ConnectorService,JAXRSService
-
Field Summary
FieldsFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfoFields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildObjectClassInfo(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.voidcheck(ConnInstanceTO connInstanceTO) Checks whether the connection to resource could be established.create(ConnInstanceTO connInstanceTO) Creates a new connector instance.voidDeletes the connector instance matching the provided key.getBundles(String lang) Returns available connector bundles with property keys in selected language.Returns a list of all connector instances with property keys in the matching language.Returns connector instance with matching key.readByResource(String resourceName, String lang) Returns connector instance for matching resource.voidreload()Reload all connector bundles and instances.voidupdate(ConnInstanceTO connInstanceTO) Updates the connector instance matching the provided key.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
-
Field Details
-
logic
-
-
Constructor Details
-
ConnectorServiceImpl
-
-
Method Details
-
create
Description copied from interface:ConnectorServiceCreates a new connector instance.- Specified by:
createin interfaceConnectorService- Parameters:
connInstanceTO- connector instance to be created- Returns:
- Response object featuring Location header of created connector instance
-
delete
Description copied from interface:ConnectorServiceDeletes the connector instance matching the provided key.- Specified by:
deletein interfaceConnectorService- Parameters:
key- connector instance key to be deleted
-
getBundles
Description copied from interface:ConnectorServiceReturns available connector bundles with property keys in selected language.- Specified by:
getBundlesin interfaceConnectorService- Parameters:
lang- language to select property keys; default language is English- Returns:
- available connector bundles with property keys in selected language
-
buildObjectClassInfo
public List<ConnIdObjectClass> buildObjectClassInfo(ConnInstanceTO connInstanceTO, boolean includeSpecial) Description copied from interface:ConnectorServiceBuilds the list of ConnId object classes information for the connector bundle matching the given connector instance key, with the provided configuration.- Specified by:
buildObjectClassInfoin interfaceConnectorService- Parameters:
connInstanceTO- connector instance object providing configuration propertiesincludeSpecial- if set to true, special schema names (like '__PASSWORD__') will be included; default is false- Returns:
- supported object classes info for the connector bundle matching the given connector instance key, with the provided configuration
-
list
Description copied from interface:ConnectorServiceReturns a list of all connector instances with property keys in the matching language.- Specified by:
listin interfaceConnectorService- Parameters:
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.- Returns:
- list of all connector instances with property keys in the matching language
-
read
Description copied from interface:ConnectorServiceReturns connector instance with matching key.- Specified by:
readin interfaceConnectorService- Parameters:
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.- Returns:
- connector instance with matching key
-
readByResource
Description copied from interface:ConnectorServiceReturns connector instance for matching resource.- Specified by:
readByResourcein interfaceConnectorService- Parameters:
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.- Returns:
- connector instance for matching resource
-
update
Description copied from interface:ConnectorServiceUpdates the connector instance matching the provided key.- Specified by:
updatein interfaceConnectorService- Parameters:
connInstanceTO- connector instance to be stored
-
check
Description copied from interface:ConnectorServiceChecks whether the connection to resource could be established.- Specified by:
checkin interfaceConnectorService- Parameters:
connInstanceTO- connector instance to be used for connection check
-
reload
public void reload()Description copied from interface:ConnectorServiceReload all connector bundles and instances.- Specified by:
reloadin interfaceConnectorService
-