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.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 -
Method Summary
Modifier and TypeMethodDescriptionReturns a json structure with the process dataorg.imixs.workflow.ItemCollectionreturns the currently selected node ItemCollection or null if no node was selectedreturns the currently selected node id or null if no node was selectedReturns a json structure with the space datavoidloadNode()Loads the selected node by its ID.voidsetSelectedNode(org.imixs.workflow.ItemCollection selectedNode) voidsetSelectedNodeID(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
-
Constructor Details
-
OrganigramController
public OrganigramController()
-
-
Method Details
-
getSelectedNodeID
returns the currently selected node id or null if no node was selected- Returns:
-
setSelectedNodeID
-
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
Returns a json structure with the process data- Returns:
-
getSpaceDatasource
Returns a json structure with the space data- Returns:
-
loadNode
public void loadNode()Loads the selected node by its ID.
-