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 Details

  • Constructor Details

    • SchemaServiceImpl

      public SchemaServiceImpl(SchemaLogic logic)
  • Method Details

    • create

      public Response create(SchemaType schemaType, SchemaTO schemaTO)
      Description copied from interface: SchemaService
      Creates a new schema.
      Specified by:
      create in interface SchemaService
      Parameters:
      schemaType - type for schema to be created
      schemaTO - 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 interface SchemaService
      Parameters:
      schemaType - type for schema to be deleted
      key - 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 interface SchemaService
      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 interface SchemaService
      Type Parameters:
      T - actual SchemaTO
      Parameters:
      schemaType - type for schemas to be read
      key - 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 interface SchemaService
      Parameters:
      schemaType - type for schemas to be updated
      schemaTO - updated schema to be stored
    • getDropdownValues

      public Attr getDropdownValues(String key, AnyTO anyTO)
      Specified by:
      getDropdownValues in interface SchemaService