public Map<String, CmsWorkflow> getWorkflows(CmsObject cms) {

        Map<String, CmsWorkflow> result = new LinkedHashMap<String, CmsWorkflow>();
        List<CmsWorkflowAction> actions = new ArrayList<CmsWorkflowAction>();
        String publishLabel = getLabel(cms, Messages.GUI_WORKFLOW_ACTION_PUBLISH_0);
        CmsWorkflowAction publishAction = new CmsWorkflowAction(ACTION_PUBLISH, publishLabel, true, true);
        actions.add(publishAction);
        String workflowLabel = getLabel(cms, Messages.GUI_WORKFLOW_PUBLISH_0);
        CmsWorkflow publishWorkflow = new CmsWorkflow(WORKFLOW_PUBLISH, workflowLabel, actions);
        result.put(WORKFLOW_PUBLISH, publishWorkflow);
        return result;
    }
public Map < String , CmsWorkflow > getWorkflows ( CmsObject cms ) { Map < String , CmsWorkflow > result = new LinkedHashMap < String , CmsWorkflow > ( ) ; List < CmsWorkflowAction > actions = new ArrayList < CmsWorkflowAction > ( ) ; String publishLabel = getLabel ( cms , Messages . GUI_WORKFLOW_ACTION_PUBLISH_0 ) ; CmsWorkflowAction publishAction = new CmsWorkflowAction ( ACTION_PUBLISH , publishLabel , true , true ) ; actions . add ( publishAction ) ; String workflowLabel = getLabel ( cms , Messages . GUI_WORKFLOW_PUBLISH_0 ) ; CmsWorkflow publishWorkflow = new CmsWorkflow ( WORKFLOW_PUBLISH , workflowLabel , actions ) ; result . put ( WORKFLOW_PUBLISH , publishWorkflow ) ; return result ; }
@see org.opencms.workflow.I_CmsWorkflowManager#getWorkflows(org.opencms.file.CmsObject)