Class EntityTemplateTasks.FindTemplate

java.lang.Object
ch.tocco.nice2.persist.entity.spi.template.EntityTemplateTasks.FindTemplate
All Implemented Interfaces:
PersistTask<Tuple2<String,String>,QueryBuilder>
Enclosing class:
EntityTemplateTasks

public static class EntityTemplateTasks.FindTemplate extends Object implements PersistTask<Tuple2<String,String>,QueryBuilder>
A task that expects an entity model name and a template id in form `Tuple.of(baseModel, id)` and will then perform a query to fetch all template entities with those properties and relUser empty or equal to the current User. The id can be `null` or empty, in this case all template entities of the given base model are fetched. If `id` is not empty the template entity of this id is fetched.