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
@Service public class SchemaServiceImpl extends AbstractService implements SchemaService
-
-
Field Summary
Fields Modifier and Type Field Description protected SchemaLogic
logic
-
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
Constructors Constructor Description SchemaServiceImpl(SchemaLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(SchemaType schemaType, SchemaTO schemaTO)
Creates a new schema.void
delete(SchemaType schemaType, String key)
Deletes the schema matching the given type and key.<T extends SchemaTO>
Tread(SchemaType schemaType, String key)
Returns schema matching the given type and key.<T extends SchemaTO>
List<T>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, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final SchemaLogic logic
-
-
Constructor Detail
-
SchemaServiceImpl
public SchemaServiceImpl(SchemaLogic logic)
-
-
Method Detail
-
create
public javax.ws.rs.core.Response create(SchemaType schemaType, SchemaTO schemaTO)
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
public void delete(SchemaType schemaType, String key)
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
public <T extends SchemaTO> List<T> search(SchemaQuery query)
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
public <T extends SchemaTO> T read(SchemaType schemaType, String key)
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
public void update(SchemaType schemaType, SchemaTO schemaTO)
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
-
-