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 Details

    • attributeList

      protected List<org.imixs.workflow.ItemCollection> attributeList
    • dataViewService

      @Inject protected DataViewService dataViewService
    • dataViewDefinitions

      protected List<org.imixs.workflow.ItemCollection> dataViewDefinitions
  • Constructor Details

    • DataViewDefinitionController

      public DataViewDefinitionController()
  • Method Details

    • init

      @PostConstruct public void init()
    • getDefinitions

      public List<org.imixs.workflow.ItemCollection> getDefinitions()
    • findDefinitionByProcessRef

      public List<org.imixs.workflow.ItemCollection> findDefinitionByProcessRef(String id)
      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

      public String getViewURI(org.imixs.workflow.ItemCollection dataDef)
      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

      public void load(String uniqueid)
      Overrides:
      load in class org.imixs.workflow.faces.data.AbstractDataController
    • create

      public void create()
      creates an empty new dataview definition
    • save

      public void save() throws org.imixs.workflow.exceptions.AccessDeniedException
      This method saves the current document.
      Throws:
      org.imixs.workflow.exceptions.AccessDeniedException - - if user has insufficient access rights.
    • openTestView

      public String openTestView()
    • getAttributeList

      public List<org.imixs.workflow.ItemCollection> getAttributeList()
    • addAttribute

      public void addAttribute()
      Adds a new attribute object.
    • removeAttribute

      public void removeAttribute(String name)
      Removes an attribute item from the list
      Parameters:
      name - - name of attribute
    • moveAttributeUp

      public void moveAttributeUp(String name)
      Moves an attribute item up in the list List attributeList
      Parameters:
      name - - name of attribute
    • moveAttributeDown

      public void moveAttributeDown(String name)
      Moves an attribute item up down the list List attributeList
      Parameters:
      name - - name of attribute