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).-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
TemplateEntityToUri
public TemplateEntityToUri()
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
URI> - Throws:
Exception
-