public class ODFWorkflowHelper extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected ODFHelper |
_odfHelper
The ODF helper
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected WorkflowProvider |
_workflowProvider
The workflow provider
|
static String |
ROLE
The component role.
|
static int |
VALIDATED_STEP_ID
The validate step id
|
Constructor and Description |
---|
ODFWorkflowHelper() |
Modifier and Type | Method and Description |
---|---|
private void |
_checkReferencedContents(Collection<String> refContentIds,
Map<String,String> invalidatedContent) |
private void |
_checkValidateStep(WorkflowAwareContent content,
Map<String,String> invalidatedContent) |
private String |
_getTitle(Content content) |
Map<String,Object> |
canValidContent(List<String> contentIds)
Check if the contents can be validated.
|
boolean |
isInValidatedStep(WorkflowAwareContent content)
Determines if a content is already in validated step
|
void |
service(ServiceManager manager) |
getLogger, setLogger
public static final int VALIDATED_STEP_ID
protected AmetysObjectResolver _resolver
protected WorkflowProvider _workflowProvider
protected ODFHelper _odfHelper
public ODFWorkflowHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<String,Object> canValidContent(List<String> contentIds)
contentIds
- The id of contents to checkpublic boolean isInValidatedStep(WorkflowAwareContent content)
content
- The content to testprivate void _checkValidateStep(WorkflowAwareContent content, Map<String,String> invalidatedContent)
private void _checkReferencedContents(Collection<String> refContentIds, Map<String,String> invalidatedContent)