org.kuali.rice.edl.impl.components
Class WorkflowDocumentState

java.lang.Object
  extended by org.kuali.rice.edl.impl.components.WorkflowDocumentState
All Implemented Interfaces:
EDLModelComponent

public class WorkflowDocumentState
extends Object
implements EDLModelComponent

Generates document state based on the workflow document in session.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
WorkflowDocumentState()
           
 
Method Summary
static void addActions(Document dom, Element documentState, List actions)
           
static List<String> determineValidActions(WorkflowDocument wfdoc)
           
static boolean isAnnotatable(List actions)
          Determines whether to display the annotation text box Currently we will show the annotation box if ANY of the possible actions are annotatable.
static boolean isEditable(EDLContext edlContext, List actions)
           
static boolean listContainsItems(List list, Object[] items)
           
 void updateDOM(Document dom, Element configElement, EDLContext edlContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowDocumentState

public WorkflowDocumentState()
Method Detail

updateDOM

public void updateDOM(Document dom,
                      Element configElement,
                      EDLContext edlContext)
Specified by:
updateDOM in interface EDLModelComponent

determineValidActions

public static List<String> determineValidActions(WorkflowDocument wfdoc)
                                          throws WorkflowException
Throws:
WorkflowException

isEditable

public static boolean isEditable(EDLContext edlContext,
                                 List actions)

addActions

public static void addActions(Document dom,
                              Element documentState,
                              List actions)

listContainsItems

public static boolean listContainsItems(List list,
                                        Object[] items)

isAnnotatable

public static boolean isAnnotatable(List actions)
Determines whether to display the annotation text box Currently we will show the annotation box if ANY of the possible actions are annotatable. But what happens if we have an un-annotatable action? Hey, why don't we just make all actions annotatable.

Parameters:
actions - list of possible actions
Returns:
whether to show the annotation text box


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.