org.alfresco.web.ui.repo.component
Class UINodeWorkflowInfo

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
              extended by org.alfresco.web.ui.repo.component.UINodeWorkflowInfo
All Implemented Interfaces:
javax.faces.component.StateHolder

public class UINodeWorkflowInfo
extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent

JSF component that displays information about the workflows a node is involved in.

The node to show workflow information on.


Field Summary
protected  Node value
           
 
Constructor Summary
UINodeWorkflowInfo()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context)
           
 void encodeEnd(javax.faces.context.FacesContext context)
           
 java.lang.String getFamily()
           
 Node getValue()
          Get the value, this will be a node representing a piece of content or a space
protected  void renderAdvancedWorkflowInfo(javax.faces.context.FacesContext context, Node node, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.dictionary.DictionaryService ddService, org.alfresco.service.cmr.workflow.WorkflowService workflowService, javax.faces.context.ResponseWriter out, java.util.ResourceBundle bundle)
          Renders the advanced workflow details for the given node.
protected  void renderSimpleWorkflowInfo(javax.faces.context.FacesContext context, Node node, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.dictionary.DictionaryService ddService, javax.faces.context.ResponseWriter out, java.util.ResourceBundle bundle)
          Renders the simple workflow details for the given node.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setValue(Node value)
          Set the value, either a space or content node.
 
Methods inherited from class org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
outputAttribute
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected Node value
Constructor Detail

UINodeWorkflowInfo

public UINodeWorkflowInfo()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

getValue

public Node getValue()
Get the value, this will be a node representing a piece of content or a space

Returns:
the value

setValue

public void setValue(Node value)
Set the value, either a space or content node.

Parameters:
value - the value

renderSimpleWorkflowInfo

protected void renderSimpleWorkflowInfo(javax.faces.context.FacesContext context,
                                        Node node,
                                        org.alfresco.service.cmr.repository.NodeService nodeService,
                                        org.alfresco.service.cmr.dictionary.DictionaryService ddService,
                                        javax.faces.context.ResponseWriter out,
                                        java.util.ResourceBundle bundle)
                                 throws java.io.IOException
Renders the simple workflow details for the given node.

Parameters:
context - Faces context
node - The node
nodeService - The NodeService instance
ddService - The Data Dictionary instance
out - The response writer
bundle - Message bundle to get strings from
Throws:
java.io.IOException

renderAdvancedWorkflowInfo

protected void renderAdvancedWorkflowInfo(javax.faces.context.FacesContext context,
                                          Node node,
                                          org.alfresco.service.cmr.repository.NodeService nodeService,
                                          org.alfresco.service.cmr.dictionary.DictionaryService ddService,
                                          org.alfresco.service.cmr.workflow.WorkflowService workflowService,
                                          javax.faces.context.ResponseWriter out,
                                          java.util.ResourceBundle bundle)
                                   throws java.io.IOException
Renders the advanced workflow details for the given node.

Parameters:
context - Faces context
node - The node
nodeService - The NodeService instance
ddService - The Data Dictionary instance
workflowService - The WorkflowService instance
out - The response writer
bundle - Message bundle to get strings from
Throws:
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.