public class OwObjectHistoryView extends OwLayout
Display the history of an object.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwLayout.OwDispatchRegion, OwLayout.OwLayoutViewRefrence
Modifier and Type | Field and Description |
---|---|
protected OwObjectCollection |
m_historyEntries
the history entries
|
protected int |
m_iMaxSize
max number of history entries to be retrieved
|
protected int |
m_iViewMask
filters the views to be displayed
|
protected OwObject |
m_object
object to find the parents of
|
protected OwObjectListView |
m_ObjectListView
objectlist that displays the history entries
|
protected Collection |
m_propertyColumnList
List with property names as columninfos if no searchTemplate_p is provided
|
protected OwSearchCriteriaView |
m_SearchCriteriaView
displays the filter criteria
|
protected OwSearchTemplate |
m_searchtemplate
the searchtemplate to be used for filtering history entries
|
static int |
MENU_REGION
region identifier for the layout
|
static int |
OBJECT_LIST_REGION
region identifier for the layout
|
static int |
SEARCH_CRITERIA_REGION
region identifier for the layout
|
static int |
VIEW_MASK_HISTORY_SCOPE_CASE
mask value for the history view, enable case (bpm) history
|
static int |
VIEW_MASK_HISTORY_SCOPE_OBJECT
mask value for the history view, enable object history
|
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
OwObjectHistoryView(OwSearchTemplate searchTemplate_p,
Collection columnInfoList_p,
int iMaxSize_p)
constructs a history view to display the history of an object
|
Modifier and Type | Method and Description |
---|---|
protected Collection |
createColumnInfo(Collection propertyList_p)
create a list of OwFieldColumnInfo out of a property string list
|
String |
getFormName()
get the form used for the edit fields
|
protected boolean |
hasViewMask(int iViewMask_p)
check if view should be displayed or is masked out
|
protected void |
init()
init the view after the context is set
|
protected void |
onActivate(int iIndex_p,
Object oReason_p)
activate the target from a navigation module.
|
protected void |
onRender(Writer w_p)
called when the view should create its HTML content to be displayed
|
void |
onSubmitSearch(javax.servlet.http.HttpServletRequest request_p,
Object user_p)
called when user clicked submit search
|
void |
setObjectRef(OwObject obj_p)
set the object to find the filed records for
|
void |
setViewMask(int iViewMask_p)
determine the views to be displayed by masking them with their flag
|
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion, renderRegion
activate, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onUpdate, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
public static final int OBJECT_LIST_REGION
public static final int SEARCH_CRITERIA_REGION
public static final int MENU_REGION
public static final int VIEW_MASK_HISTORY_SCOPE_OBJECT
public static final int VIEW_MASK_HISTORY_SCOPE_CASE
protected int m_iViewMask
protected OwObject m_object
protected OwObjectListView m_ObjectListView
protected OwSearchCriteriaView m_SearchCriteriaView
protected OwObjectCollection m_historyEntries
protected OwSearchTemplate m_searchtemplate
protected int m_iMaxSize
protected Collection m_propertyColumnList
public OwObjectHistoryView(OwSearchTemplate searchTemplate_p, Collection columnInfoList_p, int iMaxSize_p) throws Exception
searchTemplate_p
- OwSearchTemplate to use to filter and display the history events, or null if no search is availablecolumnInfoList_p
- List with property names as columninfos if no searchTemplate_p is providediMaxSize_p
- int max number of history entries to be retrievedException
public void setViewMask(int iViewMask_p)
iViewMask_p
- bitmask according to VIEW_MASK_SYSTEM_... flagsprotected boolean hasViewMask(int iViewMask_p)
iViewMask_p
- bitmask according to VIEW_MASK_SYSTEM_... flagsprotected Collection createColumnInfo(Collection propertyList_p) throws Exception
Exception
protected void init() throws Exception
public void onSubmitSearch(javax.servlet.http.HttpServletRequest request_p, Object user_p) throws Exception
Exception
public String getFormName()
getFormName
in class OwView
public void setObjectRef(OwObject obj_p) throws Exception
obj_p
- OwObjectException
protected void onActivate(int iIndex_p, Object oReason_p) throws Exception
onActivate
in class OwView
iIndex_p
- int tab index of NavigationoReason_p
- User Object which was submitted when target was attached to the navigation moduleException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.