com.groiss.wf.html
Class WorklistAdapter

java.lang.Object
  extended by com.groiss.wf.html.WorklistAdapter
All Implemented Interfaces:
Worklist

public class WorklistAdapter
extends java.lang.Object
implements Worklist

Adapter for Worklist interface with empty methods.


Constructor Summary
WorklistAdapter()
           
 
Method Summary
 void getAdditionalData(java.util.List<ActivityInstance> instances, java.util.List<java.lang.String> splitResult)
          Your chance to collect data.
 HTMLPage getHTMLPage()
          Replace the standard page or return null.
 java.util.List<ActivityInstance> getList()
          Non null overwrites the list, should return list of ActivityInstances.
 java.lang.Object getTitle()
          Non null overwrites the title.
 void init(javax.servlet.http.HttpServletRequest req, int wltype, Application appl, User u)
          Deprecated. since 6.3 use init(HttpServletRequest, WorklistDescription, User) instead
 void init(javax.servlet.http.HttpServletRequest req, WorklistDescription wl, User u)
          You can init your class with the request.
 java.lang.String lineStyle(ActivityInstance ai, java.lang.String style)
          Change the style of the line.
 java.util.List<Pair<java.lang.String,java.lang.String>> listFilters(java.util.List<ActivityInstance> lines)
          Return a list of pairs containing id and name of self defined filters.
 void modifyColumns(java.util.List<ColumnDescription> colDescs)
          You get the header as we suggest it, a list of reserved keywords, like "id","process", "task".
 void modifyTableHeader(java.util.List<Pair<java.lang.String,java.lang.Object>> header)
          Deprecated. since 8.0 use modifyColumns(List) instead
 void modifyTableLine(ActivityInstance ai, KeyedList<java.lang.String,java.lang.Object> line)
          Your chance to modify the line, called for each table line.
 void modifyTableLine(ActivityInstance ai, java.util.List<java.lang.Object> line)
          Deprecated. since 6.3 use modifyTableLine(ActivityInstance, KeyedList) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorklistAdapter

public WorklistAdapter()
Method Detail

init

public void init(javax.servlet.http.HttpServletRequest req,
                 WorklistDescription wl,
                 User u)
Description copied from interface: Worklist
You can init your class with the request. For your convenience, we tell you the type of the worklist, the application, and the user

Specified by:
init in interface Worklist
Parameters:
req - the request
wl - the worklist description
u - the user

init

@Deprecated
public void init(javax.servlet.http.HttpServletRequest req,
                            int wltype,
                            Application appl,
                            User u)
Deprecated. since 6.3 use init(HttpServletRequest, WorklistDescription, User) instead


getHTMLPage

public HTMLPage getHTMLPage()
Description copied from interface: Worklist
Replace the standard page or return null.

Specified by:
getHTMLPage in interface Worklist

getTitle

public java.lang.Object getTitle()
Description copied from interface: Worklist
Non null overwrites the title.

Specified by:
getTitle in interface Worklist

getList

public java.util.List<ActivityInstance> getList()
Description copied from interface: Worklist
Non null overwrites the list, should return list of ActivityInstances.

Specified by:
getList in interface Worklist

getAdditionalData

public void getAdditionalData(java.util.List<ActivityInstance> instances,
                              java.util.List<java.lang.String> splitResult)
Description copied from interface: Worklist
Your chance to collect data.

Specified by:
getAdditionalData in interface Worklist
Parameters:
instances - the activity instances
splitResult - a list of strings containing the oids of the process

modifyTableHeader

@Deprecated
public void modifyTableHeader(java.util.List<Pair<java.lang.String,java.lang.Object>> header)
Deprecated. since 8.0 use modifyColumns(List) instead


modifyColumns

public void modifyColumns(java.util.List<ColumnDescription> colDescs)
Description copied from interface: Worklist
You get the header as we suggest it, a list of reserved keywords, like "id","process", "task". You can change this header as you like. The resulting header is used to build the table lines: for the keywords we add the corresponding column, for other names we add "null" elements.

Specified by:
modifyColumns in interface Worklist
Parameters:
colDescs - list of header fields

modifyTableLine

public void modifyTableLine(ActivityInstance ai,
                            KeyedList<java.lang.String,java.lang.Object> line)
Description copied from interface: Worklist
Your chance to modify the line, called for each table line. Making the list empty removes the item from the worklist.

Specified by:
modifyTableLine in interface Worklist
Parameters:
ai - the activity instance
line - the line

modifyTableLine

@Deprecated
public void modifyTableLine(ActivityInstance ai,
                                       java.util.List<java.lang.Object> line)
Deprecated. since 6.3 use modifyTableLine(ActivityInstance, KeyedList) instead


lineStyle

public java.lang.String lineStyle(ActivityInstance ai,
                                  java.lang.String style)
Description copied from interface: Worklist
Change the style of the line.

Specified by:
lineStyle in interface Worklist
Parameters:
ai - the activity instance
style - a style class

listFilters

public java.util.List<Pair<java.lang.String,java.lang.String>> listFilters(java.util.List<ActivityInstance> lines)
Description copied from interface: Worklist
Return a list of pairs containing id and name of self defined filters.

Specified by:
listFilters in interface Worklist
Parameters:
lines - contains the ActivityInstances which will be shown.


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.