Package org.imixs.workflow.dataview
Class DataViewDefinitionController
java.lang.Object
org.imixs.workflow.faces.data.AbstractDataController
org.imixs.workflow.dataview.DataViewDefinitionController
- All Implemented Interfaces:
Serializable
@Named
@SessionScoped
public class DataViewDefinitionController
extends org.imixs.workflow.faces.data.AbstractDataController
The DataViewDefinitionController is used to configure a dataview definition
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.imixs.workflow.ItemCollection>protected List<org.imixs.workflow.ItemCollection>protected DataViewServiceFields inherited from class org.imixs.workflow.faces.data.AbstractDataController
data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new attribute object.voidcreate()creates an empty new dataview definitionList<org.imixs.workflow.ItemCollection>Finds all dataview definitions assigned to a process by its nameList<org.imixs.workflow.ItemCollection>org.imixs.workflow.ItemCollectiongetData()Returns the current workItem.List<org.imixs.workflow.ItemCollection>getViewURI(org.imixs.workflow.ItemCollection dataDef) This method returns a unique view URI to be used zu display the View Data.voidinit()voidvoidmoveAttributeDown(String name) Moves an attribute item up down the list ListattributeList voidmoveAttributeUp(String name) Moves an attribute item up in the list ListattributeList voidremoveAttribute(String name) Removes an attribute item from the listvoidsave()This method saves the current document.Methods inherited from class org.imixs.workflow.faces.data.AbstractDataController
close, getDefaultType, getDocumentService, isNewWorkitem, onLoad, reset, setDefaultType, startConversation
-
Field Details
-
attributeList
-
dataViewService
-
dataViewDefinitions
-
-
Constructor Details
-
DataViewDefinitionController
public DataViewDefinitionController()
-
-
Method Details
-
init
@PostConstruct public void init() -
getDefinitions
-
findDefinitionByProcessRef
Finds all dataview definitions assigned to a process by its name- Parameters:
name-- Returns:
-
getData
public org.imixs.workflow.ItemCollection getData()Returns the current workItem. If no workitem is defined the method Instantiates a empty ItemCollection.- Returns:
- - current workItem or null if not set
-
getViewURI
This method returns a unique view URI to be used zu display the View Data. The uri contains a unique random ID to support caching over different browser tabs- Returns:
-
load
- Overrides:
loadin classorg.imixs.workflow.faces.data.AbstractDataController
-
create
public void create()creates an empty new dataview definition -
save
public void save() throws org.imixs.workflow.exceptions.AccessDeniedExceptionThis method saves the current document.- Throws:
org.imixs.workflow.exceptions.AccessDeniedException- - if user has insufficient access rights.
-
openTestView
-
getAttributeList
-
addAttribute
public void addAttribute()Adds a new attribute object. -
removeAttribute
Removes an attribute item from the list- Parameters:
name- - name of attribute
-
moveAttributeUp
Moves an attribute item up in the list ListattributeList - Parameters:
name- - name of attribute
-
moveAttributeDown
Moves an attribute item up down the list ListattributeList - Parameters:
name- - name of attribute
-