Methods
| Modifier and Type |
Method and Description |
protected void |
addActions(Object obj,
SchemaFactory schemaFactory,
Schema schema,
Resource resource) |
protected void |
addFilters(CollectionImpl collection,
ApiRequest request) |
protected void |
addLinks(Object obj,
SchemaFactory schemaFactory,
Schema schema,
Resource resource) |
protected void |
addPagination(List<?> list,
CollectionImpl collection,
ApiRequest request) |
protected void |
addResourceToCreateResponse(Class<?> clz) |
protected void |
addSort(CollectionImpl collection,
ApiRequest request) |
protected Object |
authorize(Object object) |
Object |
collectionAction(String type,
ApiRequest request) |
protected abstract Object |
collectionActionInternal(Object resources,
ApiRequest request) |
protected Resource |
constructResource(IdFormatter idFormatter,
SchemaFactory schemaFactory,
Schema schema,
Object obj) |
Collection |
convertResponse(List<?> list,
ApiRequest request) |
Resource |
convertResponse(Object obj,
ApiRequest request) |
Object |
create(String type,
ApiRequest request) |
protected Collection |
createCollection(List<?> list,
ApiRequest request) |
protected abstract Object |
createInternal(String type,
ApiRequest request) |
protected Resource |
createResource(Object obj,
IdFormatter idFormatter,
ApiRequest apiRequest) |
Object |
delete(String type,
String id,
ApiRequest request) |
protected abstract Object |
deleteInternal(String type,
String id,
Object obj,
ApiRequest request) |
Object |
getById(String type,
String id,
ListOptions options) |
protected Object |
getByIdInternal(String type,
String id,
ListOptions options) |
protected String |
getCollectionType(List<?> list,
ApiRequest request) |
protected Map<Object,Object> |
getDefaultCriteria(boolean byId,
String type) |
static Object |
getFirstFromList(Object obj) |
Object |
getLink(String type,
String id,
String link,
ApiRequest request) |
protected abstract Object |
getLinkInternal(String type,
String id,
String link,
ApiRequest request) |
protected Map<String,String> |
getLinks(SchemaFactory schemaFactory,
Resource resource) |
ResourceManagerLocator |
getLocator() |
protected Object |
getMarker(Pagination pagination) |
protected Schema |
getSchemaForDisplay(SchemaFactory schemaFactory,
Object obj) |
protected Set<String> |
getSortLinks(SchemaFactory schemaFactory,
String type) |
boolean |
handleException(Throwable t,
ApiRequest request) |
Object |
list(String type,
ApiRequest request) |
List<?> |
list(String type,
Map<Object,Object> criteria,
ListOptions options) |
protected abstract Object |
listInternal(SchemaFactory schemaFactory,
String type,
Map<Object,Object> criteria,
ListOptions options) |
protected Map<Object,Object> |
mergeCriteria(Map<Object,Object> criteria,
Map<Object,Object> other) |
Object |
resourceAction(String type,
ApiRequest request) |
protected abstract Object |
resourceActionInternal(Object obj,
ApiRequest request) |
void |
setLocator(ResourceManagerLocator locator) |
Object |
update(String type,
String id,
ApiRequest request) |
protected abstract Object |
updateInternal(String type,
String id,
Object obj,
ApiRequest request) |