Class OrganigramController

java.lang.Object
org.imixs.workflow.faces.data.ViewController
org.imixs.workflow.office.views.OrganigramController
All Implemented Interfaces:
Serializable

@Named @ViewScoped public class OrganigramController extends org.imixs.workflow.faces.data.ViewController
The OrganigramController generates the JSON data structure used by the Orgchart (https://github.com/dabeng/OrgChart).

The controller provices two data structures 'datasourceProcesses' and 'datasourceSpaces'. The structure looks like this:

 {
    'name' : 'Prozesse',
    'id' : 'root',
    'title' : 'Organisations Bereiche',
    'children' : [
            {
                'name' : 'Controlling',
                'id' : 'unter-id1',
                'title' : 'Invoices',
                'className' : 'process'
                
            }, {
                'name' : 'HR',
                'title' : 'Human Source processes',
                'className' : 'process'
            }
           ]
    };
 
Author:
rsoika
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a json structure with the process data
    org.imixs.workflow.ItemCollection
    returns the currently selected node ItemCollection or null if no node was selected
    returns the currently selected node id or null if no node was selected
    Returns a json structure with the space data
    void
    Loads the selected node by its ID.
    void
    setSelectedNode(org.imixs.workflow.ItemCollection selectedNode)
     
    void
    setSelectedNodeID(String selectedNodeID)
     

    Methods inherited from class org.imixs.workflow.faces.data.ViewController

    getPageIndex, getPageSize, getQuery, getSortBy, getWorkitems, init, isEndOfList, isLoadStubs, isSortReverse, loadData, reset, setEndOfList, setLoadStubs, setPageIndex, setPageSize, setQuery, setSortBy, setSortReverse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OrganigramController

      public OrganigramController()
  • Method Details

    • getSelectedNodeID

      public String getSelectedNodeID()
      returns the currently selected node id or null if no node was selected
      Returns:
    • setSelectedNodeID

      public void setSelectedNodeID(String selectedNodeID)
    • getSelectedNode

      public org.imixs.workflow.ItemCollection getSelectedNode()
      returns the currently selected node ItemCollection or null if no node was selected
      Returns:
    • setSelectedNode

      public void setSelectedNode(org.imixs.workflow.ItemCollection selectedNode)
    • getProcessDatasource

      public String getProcessDatasource()
      Returns a json structure with the process data
      Returns:
    • getSpaceDatasource

      public String getSpaceDatasource()
      Returns a json structure with the space data
      Returns:
    • loadNode

      public void loadNode()
      Loads the selected node by its ID.