Package nl.vpro.domain.media.support
Class PublishableObjectAccess
- java.lang.Object
-
- nl.vpro.domain.media.support.PublishableObjectAccess
-
public class PublishableObjectAccess extends Object
- Since:
- 5.4
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
markPublished(@NonNull PublishableObject<?> object)
Sets the workflow as it should be when published.static void
setWorkflow(@NonNull PublishableObject<?> object, Workflow workflow)
-
-
-
Method Detail
-
setWorkflow
public static void setWorkflow(@NonNull PublishableObject<?> object, Workflow workflow)
-
markPublished
public static void markPublished(@NonNull PublishableObject<?> object)
Sets the workflow as it should be when published. e.g. a workflow likeWorkflow.FOR_DELETION
becomesWorkflow.DELETED
. I.e. it sets the workflow toWorkflow.getPublishedAs()
- Since:
- 5.35
-
-