Package nl.vpro.domain.media.support
Class PublishableObjectAccess
java.lang.Object
nl.vpro.domain.media.support.PublishableObjectAccess
Some methods that are not part of the public API, but are needed for testing or occosionally for maintenance.
E.g. normally you have no business in
<em>setting</em> the workflow),
that why the method is protected. If if you need to do it anyway, you can use this class.
- Since:
- 5.4
- Author:
- Michiel Meeuwissen
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
markPublished
(@NonNull PublishableObject<?> object) Sets the workflow as it should be when published.static void
setWorkflow
(@NonNull PublishableObject<?> object, Workflow workflow) Just calls the (protected)PublishableObject.setWorkflow(Workflow)
.
-
Method Details
-
setWorkflow
Just calls the (protected)PublishableObject.setWorkflow(Workflow)
. -
markPublished
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
-