public class EntityWrapper<T> extends Entity implements org.springframework.hateoas.Identifiable<java.lang.String>
| Modifier | Constructor and Description |
|---|---|
|
EntityWrapper(EntityWrapper<T> src) |
protected |
EntityWrapper(java.lang.String path,
T properties,
java.lang.String label,
java.lang.String... natures) |
protected |
EntityWrapper(T properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(NavigationalRelationship navigationalRelationship) |
Action<?> |
getAction(java.lang.String identifier) |
com.google.common.collect.ImmutableSet<Action<?>> |
getActions() |
java.net.URI |
getAddress() |
java.util.concurrent.CompletableFuture<java.util.Collection<EntityRelationship>> |
getEntities() |
java.util.concurrent.CompletableFuture<java.util.Collection<EntityRelationship>> |
getEntities(int page) |
java.lang.String |
getId() |
Link |
getLink(java.lang.String rel) |
com.google.common.collect.ImmutableSet<NavigationalRelationship> |
getLinks() |
T |
getProperties() |
<K,L extends EntityWrapper<K>> |
reload(java.lang.Class<L> type) |
<K,L extends EntityWrapper<K>> |
resolve(java.lang.Class<L> type) |
<K,L extends EntityWrapper<K>> |
resolve(org.springframework.core.ParameterizedTypeReference<L> type) |
void |
setActions(Action<?>[] actions) |
void |
setEntities(java.util.Collection<EntityRelationship> entityRelationships) |
void |
setRepository(EntityRepository repository) |
LinkedEntity |
toLinkedEntity() |
getLabel, getNatures, hasNature, setNatures, setTitlepublic EntityWrapper(EntityWrapper<T> src)
protected EntityWrapper(java.lang.String path,
T properties,
java.lang.String label,
java.lang.String... natures)
protected EntityWrapper(T properties)
public void add(NavigationalRelationship navigationalRelationship)
public Action<?> getAction(java.lang.String identifier)
public com.google.common.collect.ImmutableSet<Action<?>> getActions()
public java.net.URI getAddress()
getAddress in class Entitypublic java.util.concurrent.CompletableFuture<java.util.Collection<EntityRelationship>> getEntities()
public java.util.concurrent.CompletableFuture<java.util.Collection<EntityRelationship>> getEntities(int page)
public java.lang.String getId()
getId in interface org.springframework.hateoas.Identifiable<java.lang.String>public Link getLink(java.lang.String rel)
public com.google.common.collect.ImmutableSet<NavigationalRelationship> getLinks()
public T getProperties()
public <K,L extends EntityWrapper<K>> L reload(java.lang.Class<L> type)
public <K,L extends EntityWrapper<K>> L resolve(java.lang.Class<L> type)
public <K,L extends EntityWrapper<K>> L resolve(org.springframework.core.ParameterizedTypeReference<L> type)
public void setActions(Action<?>[] actions)
public void setEntities(java.util.Collection<EntityRelationship> entityRelationships)
public void setRepository(EntityRepository repository)
public LinkedEntity toLinkedEntity()
toLinkedEntity in class Entity