public interface BackendIdConverter extends org.springframework.plugin.core.Plugin<Class<?>>
Modifier and Type | Interface and Description |
---|---|
static class |
BackendIdConverter.DefaultIdConverter
The default
BackendIdConverter that will simply use ids as they are. |
Modifier and Type | Method and Description |
---|---|
Serializable |
fromRequestId(String id,
Class<?> entityType)
Returns the id of the entity to be looked up eventually.
|
String |
toRequestId(Serializable id,
Class<?> entityType)
Returns the id to be used in the URI generated to point to an entity of the given type with the given id.
|
Serializable fromRequestId(String id, Class<?> entityType)
id
- the source id as it was parsed from the incoming request, will never be null.entityType
- the type of the object to be resolved, will never be null.String toRequestId(Serializable id, Class<?> entityType)
id
- the entity's id, will never be null.entityType
- the type of the entity to expose.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.