Class SchemaServiceImpl
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.SchemaServiceImpl
- All Implemented Interfaces:
JAXRSService
,SchemaService
-
Field Summary
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SchemaType schemaType, SchemaTO schemaTO) Creates a new schema.void
delete
(SchemaType schemaType, String key) Deletes the schema matching the given type and key.getDropdownValues
(String key, AnyTO anyTO) <T extends SchemaTO>
Tread
(SchemaType schemaType, String key) Returns schema matching the given type and key.search
(SchemaQuery query) Returns a list of schemas matching the given query.void
update
(SchemaType schemaType, SchemaTO schemaTO) Updates the schema matching the given type and 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
-
SchemaServiceImpl
-
-
Method Details
-
create
Description copied from interface:SchemaService
Creates a new schema.- Specified by:
create
in interfaceSchemaService
- Parameters:
schemaType
- type for schema to be createdschemaTO
- schema to be created- Returns:
- Response object featuring Location header of created schema
-
delete
Description copied from interface:SchemaService
Deletes the schema matching the given type and key.- Specified by:
delete
in interfaceSchemaService
- Parameters:
schemaType
- type for schema to be deletedkey
- name of schema to be deleted
-
search
Description copied from interface:SchemaService
Returns a list of schemas matching the given query.- Specified by:
search
in interfaceSchemaService
- Type Parameters:
T
- actual SchemaTO- Parameters:
query
- query conditions- Returns:
- list of schemas with matching type, for the given anyTypeClass if provided, with keys containing keyword if provided
-
read
Description copied from interface:SchemaService
Returns schema matching the given type and key.- Specified by:
read
in interfaceSchemaService
- Type Parameters:
T
- actual SchemaTO- Parameters:
schemaType
- type for schemas to be readkey
- name of schema to be read- Returns:
- schema matching the given type and name
-
update
Description copied from interface:SchemaService
Updates the schema matching the given type and key.- Specified by:
update
in interfaceSchemaService
- Parameters:
schemaType
- type for schemas to be updatedschemaTO
- updated schema to be stored
-
getDropdownValues
- Specified by:
getDropdownValues
in interfaceSchemaService
-