Class SetChangedStatusTask
java.lang.Object
ch.tocco.nice2.dms.spi.content.persist.SetChangedStatusTask
- All Implemented Interfaces:
PersistTask<PrimaryKey,
Void>
This persist task sets publish status "changed" on a entity.
The entity of type
entityName
must provide a
relationship "relPublish_status" to the "Publish_status" entity.
The status "changed" is only set if the current status is "published".-
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.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
SetChangedStatusTask
-
-
Method Details
-
run
public Void run(Optional<PrimaryKey> key, CommandContext commandContext) throws PersistException, InterruptedException - Specified by:
run
in interfacePersistTask<PrimaryKey,
Void> - Throws:
PersistException
InterruptedException
-