Class DataViewDefinitionController

java.lang.Object
org.imixs.workflow.faces.data.AbstractDataController
org.imixs.workflow.office.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

    Fields
    Modifier and Type
    Field
    Description
    protected List<org.imixs.workflow.ItemCollection>
     
    protected List<org.imixs.workflow.ItemCollection>
     

    Fields inherited from class org.imixs.workflow.faces.data.AbstractDataController

    data
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a new attribute object.
    static List<org.imixs.workflow.ItemCollection>
    computeDataViewItemDefinitions(org.imixs.workflow.ItemCollection dataViewDefinition)
    Returns a List of ItemCollection instances representing the view column description.
    void
    creates an empty new dataview definition
    List<org.imixs.workflow.ItemCollection>
    Finds all dataview definitions assigned to a process by its name
    List<org.imixs.workflow.ItemCollection>
     
    org.imixs.workflow.ItemCollection
    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.
    void
     
    void
    load(String uniqueid)
     
    void
    Moves an attribute item up down the list List attributeList
    void
    Moves an attribute item up in the list List attributeList
     
    void
    Removes an attribute item from the list
    void
    This method saves the current document.

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

    close, getDefaultType, getDocumentService, isNewWorkitem, onLoad, reset, setDefaultType, startConversation

    Methods inherited from class java.lang.Object

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

    • attributeList

      protected List<org.imixs.workflow.ItemCollection> attributeList
    • 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
    • computeDataViewItemDefinitions

      public static List<org.imixs.workflow.ItemCollection> computeDataViewItemDefinitions(org.imixs.workflow.ItemCollection dataViewDefinition)
      Returns a List of ItemCollection instances representing the view column description. Each column has the items: name,label,format,convert
      Parameters:
      dataViewDefinition -
      Returns:
    • 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