com.groiss.dms
Class DMSTableAdapter

java.lang.Object
  extended by com.groiss.dms.DMSTableAdapter
All Implemented Interfaces:
DMSTableHandler

public class DMSTableAdapter
extends java.lang.Object
implements DMSTableHandler

The default implementation of a DMSTableHandler.

Author:
robert

Field Summary
 
Fields inherited from interface com.groiss.dms.DMSTableHandler
ATTACH_NOTE, CHANGE_TYPE, CHANGED_AT, CLIPBOARD, COPY, CREATE_VERSION, CUT, DELETE, DOWNLOAD, FOLDER_FORM, FOLDER_PROPS, FORM, INFO, LINK, NAME, NEW, NOTES, OID, PASTE, REFRESH, REPLACE, RO, RO_REC, RW, SEARCH, SEARCH_ALL, SEARCH_FIELD, SEND_TO, SIGN, SIZE, SPACE, START_PROCESS, STATUS, TYPE, UPWARD, VERSIONS, WEBFOLDER
 
Constructor Summary
DMSTableAdapter()
           
 
Method Summary
 HTMLPage getHTMLPage()
          returns null
 java.util.List<DMSObject> getList(java.util.List<DMSObject> objects)
          returns the list of passed objects unchanged
 java.lang.String getTitle()
          returns null
 void init(javax.servlet.http.HttpServletRequest req, DMSFolder folder, User u, int mode)
          empty implementation
 java.lang.String lineStyle(DMSObject obj, java.lang.String style)
          returns the passed style
 void modifyActions(java.util.List<Pair<java.lang.String,java.lang.Object>> actions)
          empty implementation
 void modifyColumns(java.util.List<ColumnDescription> colDescs)
          You get the columns as we suggest it as a list of ColumnDescription (see the corresponding statics defined in this interface as values for the ids of the ColumnDescriptions, e.g.
 void modifyTableHeader(java.util.List<Pair<java.lang.String,java.lang.Object>> header)
          Deprecated. since ep 8.0, implement modifyColumns(List) instead
 void modifyTableLine(DMSObject obj, java.util.Map<java.lang.String,java.lang.Object> line)
          empty implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMSTableAdapter

public DMSTableAdapter()
Method Detail

init

public void init(javax.servlet.http.HttpServletRequest req,
                 DMSFolder folder,
                 User u,
                 int mode)
empty implementation

Specified by:
init in interface DMSTableHandler
Parameters:
req - the request
folder - the folder
u - the user
mode - is DMSTableHandler.RW or DMSTableHandler.RO

getHTMLPage

public HTMLPage getHTMLPage()
returns null

Specified by:
getHTMLPage in interface DMSTableHandler

getTitle

public java.lang.String getTitle()
returns null

Specified by:
getTitle in interface DMSTableHandler

getList

public java.util.List<DMSObject> getList(java.util.List<DMSObject> objects)
returns the list of passed objects unchanged

Specified by:
getList in interface DMSTableHandler

modifyTableHeader

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

empty implementation

Specified by:
modifyTableHeader in interface DMSTableHandler
Parameters:
header - a list of pairs with keyword and label

modifyColumns

public void modifyColumns(java.util.List<ColumnDescription> colDescs)
Description copied from interface: DMSTableHandler
You get the columns as we suggest it as a list of ColumnDescription (see the corresponding statics defined in this interface as values for the ids of the ColumnDescriptions, e.g. DMSTableHandler.NAME) You can change these columns as you like. The resulting column list is used to build the table: for all system definied columns we add the corresponding column value, for other ids we add "null" elements.

Specified by:
modifyColumns in interface DMSTableHandler
Parameters:
colDescs - a list of column descriptions

modifyTableLine

public void modifyTableLine(DMSObject obj,
                            java.util.Map<java.lang.String,java.lang.Object> line)
empty implementation

Specified by:
modifyTableLine in interface DMSTableHandler
Parameters:
obj - the DMSObject
line - the line as map holding the ids and values of the columns

modifyActions

public void modifyActions(java.util.List<Pair<java.lang.String,java.lang.Object>> actions)
empty implementation

Specified by:
modifyActions in interface DMSTableHandler
Parameters:
actions - a list of pairs holding the set of actions. Pair.first holds the identifier of the action (see Programming Guide), Pair.second holds the action

lineStyle

public java.lang.String lineStyle(DMSObject obj,
                                  java.lang.String style)
returns the passed style

Specified by:
lineStyle in interface DMSTableHandler


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