public class EntityWrapper<T> extends Entity
| Modifier | Constructor and Description |
|---|---|
protected |
EntityWrapper(EntityRepository repository,
java.lang.String path,
T properties,
java.lang.String title,
java.lang.String... classes) |
protected |
EntityWrapper(T properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(NavigationalRelationship navigationalRelationship) |
java.util.concurrent.CompletableFuture<EntityWrapper<T>> |
addEntity(EntityRelationship entityRelationship) |
Action<?> |
getAction(java.lang.String name) |
com.google.common.collect.ImmutableSet<Action<?>> |
getActions() |
Address |
getAddress() |
com.google.common.collect.ImmutableSet<EntityRelationship> |
getEntities() |
java.lang.String |
getId() |
Link |
getLink(java.lang.String rel) |
com.google.common.collect.ImmutableSet<NavigationalRelationship> |
getLinks() |
java.lang.String |
getPath() |
T |
getProperties() |
EntityRepository |
getRepository() |
<K,L extends EntityWrapper<K>> |
reload(java.lang.Class<L> type) |
<L extends EntityWrapper<?>> |
resolve(java.lang.Class<L> type) |
<K,L extends EntityWrapper<K>> |
resolve(org.springframework.core.ParameterizedTypeReference<L> type) |
void |
setActions(Action<?>[] actions) |
void |
setEntities(EntityRelationship[] entities) |
LinkedEntity |
toLinkedEntity() |
getClasses, getTitle, hasNature, setClasses, setTitleprotected EntityWrapper(EntityRepository repository, java.lang.String path, T properties, java.lang.String title, java.lang.String... classes)
protected EntityWrapper(T properties)
public void add(NavigationalRelationship navigationalRelationship)
public Action<?> getAction(java.lang.String name)
public com.google.common.collect.ImmutableSet<Action<?>> getActions()
public com.google.common.collect.ImmutableSet<EntityRelationship> getEntities()
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 <L extends EntityWrapper<?>> java.util.concurrent.CompletableFuture<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(EntityRelationship[] entities)
public java.util.concurrent.CompletableFuture<EntityWrapper<T>> addEntity(EntityRelationship entityRelationship)
public LinkedEntity toLinkedEntity()
toLinkedEntity in class Entitypublic Address getAddress()
getAddress in class Entitypublic java.lang.String getPath()
public EntityRepository getRepository()
public java.lang.String getId()