Class EntityTemplateTasks.TemplateEntityToUri

java.lang.Object
ch.tocco.nice2.persist.entity.spi.template.EntityTemplateTasks.TemplateEntityToUri
All Implemented Interfaces:
OptionalTask<Entity,URI>, PersistTask<Entity,URI>
Enclosing class:
EntityTemplateTasks

public static class EntityTemplateTasks.TemplateEntityToUri extends Object implements OptionalTask<Entity,URI>
A task that expects a template entity (of model Entity_template) or a "normal" entity and creates an URI for it. The URI is of form

 [entity|entity-template]://<entitymodel>/<id>
 
where `id` is either the primary key (in case of normal entity) or the template id (in case of template entity).