com.github.magrifle.data.searchapi.SearchConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of data-search-api Show documentation
Show all versions of data-search-api Show documentation
A library that helps you instantly turn your Spring powered endpoints into a query engine. It makes use
of AOP to intercept the calls to your Controller or RestController endpoints and then builds a Specification
from the provided query parameters
package com.github.magrifle.data.searchapi;
import com.github.magrifle.data.searchapi.data.SearchKey;
import java.lang.reflect.ParameterizedType;
import java.text.SimpleDateFormat;
import java.util.List;
public abstract class SearchConfigurer {
private static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd";
public abstract List getSearchKeys();
@Deprecated //you can use the SearchKey.customization instead
protected SimpleDateFormat getDateKeyFormat() {
return new SimpleDateFormat(DEFAULT_DATE_FORMAT);
}
public final Class getType() {
return (Class) ((ParameterizedType) this.getClass()
.getGenericSuperclass()).getActualTypeArguments()[0];
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy