Package org.imixs.workflow.office.views
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.ViewControllerThe 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrganigramController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProcessDatasource()Returns a json structure with the process dataorg.imixs.workflow.ItemCollectiongetSelectedNode()returns the currently selected node ItemCollection or null if no node was selectedStringgetSelectedNodeID()returns the currently selected node id or null if no node was selectedStringgetSpaceDatasource()Returns a json structure with the space datavoidloadNode()Loads the selected node by its ID.voidsetSelectedNode(org.imixs.workflow.ItemCollection selectedNode)voidsetSelectedNodeID(String selectedNodeID)
-
-
-
Method Detail
-
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.
-
-