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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMethods 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.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
FindTemplate
public FindTemplate()
-
-
Method Details
-
run
- Specified by:
run
in interfacePersistTask<Tuple2<String,
String>, QueryBuilder> - Throws:
Exception
-