Class SchemaServiceImpl

    • 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 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 SchemaTOList<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