public class EntityTransformer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<? super Entity,EntitySummary> |
FROM_ENTITY |
Constructor and Description |
---|
EntityTransformer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
applicationUri(Application entity) |
static EntityConfigSummary |
entityConfigSummary(ConfigKey<?> config,
java.lang.reflect.Field configKeyField) |
static EntityConfigSummary |
entityConfigSummary(EntityLocal entity,
ConfigKey<?> config)
generates a representation for a given config key,
with label inferred from annoation in the entity class,
and links pointing to the entity and the applicaiton
|
static java.util.List<EntitySummary> |
entitySummaries(java.lang.Iterable<? extends Entity> entities) |
static EntitySummary |
entitySummary(Entity entity) |
static java.lang.String |
entityUri(Entity entity) |
public static final com.google.common.base.Function<? super Entity,EntitySummary> FROM_ENTITY
public static EntitySummary entitySummary(Entity entity)
public static java.util.List<EntitySummary> entitySummaries(java.lang.Iterable<? extends Entity> entities)
public static EntityConfigSummary entityConfigSummary(EntityLocal entity, ConfigKey<?> config)
public static java.lang.String applicationUri(Application entity)
public static java.lang.String entityUri(Entity entity)
public static EntityConfigSummary entityConfigSummary(ConfigKey<?> config, java.lang.reflect.Field configKeyField)