@ApiSign @RepositoryRestController @RequestMapping(value="/{repository}") public class RepositoryEntityController extends BaseController
BASE_NAME, ID_URI| 构造器和说明 |
|---|
RepositoryEntityController() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
batchDestroy(RootResourceInformation resourceInformation,
java.lang.String... id)
删除多个资源
|
java.lang.Object |
create(RootResourceInformation resourceInformation,
PersistentEntityResource resource)
创建资源
|
java.lang.Object |
destroy(RootResourceInformation resourceInformation,
java.lang.String id)
删除资源
|
org.springframework.http.ResponseEntity<?> |
headCollectionResource(RootResourceInformation resourceInformation)
HEAD /{repsoitory} |
org.springframework.http.ResponseEntity<?> |
headForItemResource(RootResourceInformation resourceInformation,
java.lang.String id)
HEAD /{repsoitory}/{id} |
java.lang.Object |
index(RootResourceInformation resourceInformation,
org.springframework.data.domain.Pageable pageable,
boolean all)
查看资源列表
|
org.springframework.http.ResponseEntity<?> |
optionsForCollectionResource(RootResourceInformation information)
OPTIONS /{repository}. |
org.springframework.http.ResponseEntity<?> |
optionsForItemResource(RootResourceInformation information)
OPTIONS /{repository}/{id}. |
java.lang.Object |
searchMethod(RootResourceInformation resourceInformation,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.Object> parameters,
java.lang.String search,
org.springframework.data.domain.Pageable pageable)
Repository方法搜索
|
java.lang.Object |
show(RootResourceInformation resourceInformation,
java.lang.String id)
查看单个资源
|
java.lang.Object |
update(RootResourceInformation resourceInformation,
PersistentEntityResource resource,
java.lang.String id,
ETag eTag)
修改资源
|
getDefaultPageable, getDefaultPageable, getDeviceInfo, getOldModel, getRealPath, getText, getTextDefaultNull, getUserAgent, hasParameter, hasParameterKey, setRelatedProperty, versionEndsWith, versionEqualscacheControl, created, getBaseLinkBuilder, getEntitySelfLink, getId, getPersistentEntity, noCache, noCache, noContent, ok, prepareHeaders, updated@RequestMapping(method=HEAD) public org.springframework.http.ResponseEntity<?> headCollectionResource(RootResourceInformation resourceInformation)
HEAD /{repsoitory}resourceInformation - resourceInformation@RequestMapping(value="/{id}",
method=HEAD)
public org.springframework.http.ResponseEntity<?> headForItemResource(RootResourceInformation resourceInformation,
@PathVariable
java.lang.String id)
HEAD /{repsoitory}/{id}resourceInformation - resourceInformationid - id@RequestMapping(method=OPTIONS) public org.springframework.http.ResponseEntity<?> optionsForCollectionResource(RootResourceInformation information)
OPTIONS /{repository}.information - information@RequestMapping(value="/{id}",
method=OPTIONS)
public org.springframework.http.ResponseEntity<?> optionsForItemResource(RootResourceInformation information)
OPTIONS /{repository}/{id}.information - information@RequestMapping(value="/search/{search}",
method=GET)
public java.lang.Object searchMethod(RootResourceInformation resourceInformation,
@RequestParam
org.springframework.util.MultiValueMap<java.lang.String,java.lang.Object> parameters,
@PathVariable
java.lang.String search,
org.springframework.data.domain.Pageable pageable)
throws java.lang.NoSuchMethodException
resourceInformation - resourceInformationparameters - parameterssearch - searchpageable - pageablejava.lang.NoSuchMethodException - NoSuchMethodException@RequestMapping(method=GET) public java.lang.Object index(RootResourceInformation resourceInformation, org.springframework.data.domain.Pageable pageable, boolean all)
resourceInformation - resourceInformationpageable - 分页参数all - 是否返回所有结果@RequestMapping(value="/{id}",
method=GET)
public java.lang.Object show(RootResourceInformation resourceInformation,
@PathVariable
java.lang.String id)
resourceInformation - resourceInformationid - id@RequestMapping(method=POST) public java.lang.Object create(RootResourceInformation resourceInformation, PersistentEntityResource resource)
resourceInformation - resourceInformationresource - 要创建的资源@RequestMapping(value="/{id}",
method=PUT)
public java.lang.Object update(RootResourceInformation resourceInformation,
PersistentEntityResource resource,
@PathVariable
java.lang.String id,
ETag eTag)
resourceInformation - resourceInformationresource - resourceid - ideTag - eTag@RequestMapping(value="/{id}",
method=DELETE)
public java.lang.Object destroy(RootResourceInformation resourceInformation,
@PathVariable
java.lang.String id)
resourceInformation - resourceInformationid - id@RequestMapping(method=DELETE) public java.lang.Object batchDestroy(RootResourceInformation resourceInformation, java.lang.String... id) throws java.lang.IllegalAccessException, java.lang.InstantiationException
resourceInformation - resourceInformationid - idjava.lang.IllegalAccessException - IllegalAccessExceptionjava.lang.InstantiationException - InstantiationException